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
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…
»
Mārtiņš Možeiko
My guess would be that he chose Gauss elimination because it is very easy to explain and show how …
»
John Lorre
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] …
»
Mārtiņš Možeiko
For small matrices (2x2, 3x3) you just write equations directly and use it. Cramer's rule will hel…
»