Hm, hard to see what is the problem. Use the debugger - put assert before statement that crashes: …
Sure, here is the whole function for context but I'll excise the parts you requested and put them …
Show us more code. How BitmapAccess and BitmapPixelOffset is declared and how values are calculate…
EDIT: Thanks Mmozeiko! Bug found, not nearly as insidious as my ego would have hoped, turns out th…
EDITED: sorry, nevermind! :dry:
Yeah, looking forward to :woohoo:
Lenny —
This is relevant as Casey has worked on this game. Congrats!
I think the calculation is like this: [/i]Hence: You would calculate MetersToPixels according to…
It's the focal length that was the surprising thing to me, not the camera distance, but I guess ma…
Well, there's just a lot of stuff to talk about here, so I'd rather wait until we go do the final …
elle —
I figured out the problem because I understand it now, thanks in part to you. The bug wasn't obvio…
Yes, the room is several meters wide so viewing it from 20m distance makes sense.
My first thought was that the z value which is 1.0f hardcoded gets multiplied by 1 over some meter…
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…
We will cross that bridge when we come to it, but in general I suspect we can solve it by just hav…
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…
I apologize if this has been asked already, I have't watched the Q/A sessions for all the episodes…
For bigger matrices, do as much as you can to avoid computing an explicit inverse. Inverse matric…
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…
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,…
This is same as: where y=1. Thus you are setting values on row of screen. If you want to have th…
My guess would be that he chose Gauss elimination because it is very easy to explain and show how …
Thank you for your reply an the enlightenment :) So yeah, that was what I thought, but I am also n…
elle —
I managed to visualize the issue. My drawing code shows 17x9 tiles every screen. grid[0tilesX+17] …
For small matrices (2x2, 3x3) you just write equations directly and use it. Cramer's rule will hel…