We are currently in the process of converting the website to the new design. Some pages, like this one, are still broken. We appreciate your patience.
Mārtiņš Možeiko
No problem. When debugging remember to verify every single assumption you made if you find that so…
»
Ruy Calderon
Hahaha!! Yes, that is the very problem... I looked at the old version of the function again and fo…
»
Mārtiņš Možeiko
What does "the distance it has to travel to get to the end of the allocated block is not constant"…
»
Ruy Calderon
That's the very thing that is so strange about the bug! That was the first thing I did and it is c…
»
Mārtiņš Možeiko
Hm, hard to see what is the problem. Use the debugger - put assert before statement that crashes: …
»
Ruy Calderon
Sure, here is the whole function for context but I'll excise the parts you requested and put them …
»
Mārtiņš Možeiko
Show us more code. How BitmapAccess and BitmapPixelOffset is declared and how values are calculate…
»
Ruy Calderon
EDIT: Thanks Mmozeiko! Bug found, not nearly as insidious as my ego would have hoped, turns out th…
»
Jonathan García
EDITED: sorry, nevermind! :dry:
»
Finalspace
Yeah, looking forward to :woohoo:
»
Lenny
This is relevant as Casey has worked on this game. Congrats!
»
Krzysiek
I think the calculation is like this: [/i]Hence: You would calculate MetersToPixels according to…
»
Casey Muratori
It's the focal length that was the surprising thing to me, not the camera distance, but I guess ma…
»
Casey Muratori
Well, there's just a lot of stuff to talk about here, so I'd rather wait until we go do the final …
»
David E. Weirich
That makes sense.
»
elle
I figured out the problem because I understand it now, thanks in part to you. The bug wasn't obvio…
»
Krzysiek
Yes, the room is several meters wide so viewing it from 20m distance makes sense.
»
Roderic Bos
My first thought was that the z value which is 1.0f hardcoded gets multiplied by 1 over some meter…
»
Richard Dagg
Could the problem with the scaling calculation could be that you are mixing real-world-meters (dis…
»
elle
In HH, we only have a notion of x and y coordinates, yet, one 'chunk' spans multiple screens. I wa…
»
Casey Muratori
We will cross that bridge when we come to it, but in general I suspect we can solve it by just hav…
»
Mārtiņš Možeiko
What do you mean - only use x and y coordinates? Then how will you know where to access screen in …
»
elle
This makes sense and I get it now, but I want to be able to access the tile via only the x&y coord…
»
David E. Weirich
I apologize if this has been asked already, I have't watched the Q/A sessions for all the episodes…
»
Andrew Bromage
For bigger matrices, do as much as you can to avoid computing an explicit inverse. Inverse matric…
»
Mārtiņš Možeiko
There is no way "grid[1tilesYtilesX + 0*tilesX + 0]" will show tile on 7th row, unless your render…
»
elle
Thank you for your time, but the following doesn't show a tile on the first row of the second scre…
»
Mārtiņš Možeiko
For second screen you do this: For N'th screen you do this: Same code as for filling grid array …
»
elle
But what is the general way to access the first row of the second screen to the right? By the way,…
»
Mārtiņš Možeiko
This is same as: where y=1. Thus you are setting values on row of screen. If you want to have th…
»