15,203 reputation
13571
bio website vectorstorm.org
location Melbourne, Australia
age
visits member for 3 years, 8 months
seen 8 hours ago

Mobygames Profile (not entirely accurate): http://www.mobygames.com/developer/sheet/view/developerId,80048/


Jan
5
reviewed Close Which server platform to choose
Jan
5
reviewed Close Looking for Bezier curve OpenGL open source implemention
Jan
5
reviewed Close Deforming meshes in OpenGL
Dec
28
reviewed Close Are there any resources about performance tweaks?
Dec
24
comment What is the cause of this lighting artifact on my dynamic terrain mesh?
So the idea is, if (fabs(TR-BL) < fabs(TL-BR)) { Make BR-BL-TL and BR-TL-TR } else { Make BR-BL-TR and BL-TL-TR }. Any non-planar quad (such as virtually every quad in a heightmap-based terrain) will 'buckle' as it's turned into triangles for rendering, and that 'buckle' will happen along the new triangle edge that you add, so it's going to run diagonally through the quad, one way or the other. The theory is that you get far fewer buckling-related artifacts if you make sure to put that buckle in between the diagonal vertices which are the most similar to each other.
Dec
24
comment What is the cause of this lighting artifact on my dynamic terrain mesh?
@GenericJoe Sure. When you're converting a quad into two triangles, there are two ways you can do it; to use your terminology, you can either do "BR-BL-TL" and "BR-TL-TR", or you can do "BR-BL-TR" and "BL-TL-TR". The first pair of triangles puts the triangle diagonal between TL and BR, while the second pair puts the triangle diagonal between TR and BL. In your code, you always do the first pair of triangles. When I say "choose the closer of the two diagonals", I mean to check whether the change in height between BR and TL is smaller than the change in height between BL and TR.
Dec
24
revised What is the cause of this lighting artifact on my dynamic terrain mesh?
Rewrote first sentence, in light of Josh's edits to the question.
Dec
24
answered What is the cause of this lighting artifact on my dynamic terrain mesh?
Dec
23
comment How to setup glOrtho and Viewport
@AndonM.Coleman I say again: We're going to have to agree to disagree. Please stop posting further comments on my answer.
Dec
23
comment In-development technologies for improvements in video game graphics and design
"The advancement of the arts, from year to year, taxes our credulity and seems to presage the arrival of that period when human improvement must end." -- Henry Ellsworth, Commissioner of the US Patent Office, in a satiric aside to an 1843 report to Congress reporting a new record high in the submission of new inventions.
Dec
23
comment How to pick a 3D object with known mouse coordinates if the camera is rotated 60 degrees?
As reference for gluUnProject()-based approaches: Using gluUnProject to transform mouse position to world coordinates
Dec
23
revised How to pick a 3D object with known mouse coordinates if the camera is rotated 60 degrees?
Integrating feedback from Lars.
Dec
23
comment How to pick a 3D object with known mouse coordinates if the camera is rotated 60 degrees?
Gah, good clarification, Lars! My brain was elsewhere. I've never actually used gluUnProject(), so I was going based on memory of overheard conversations. You're right; gluUnProject doesn't read back the Z-Buffer itself; that's usually the immediately-prior step in gluUnProject()-based answers, for determining the window 'depth' input value that gluUnProject() wants. Will amend my answer.
Dec
23
revised How to pick a 3D object with known mouse coordinates if the camera is rotated 60 degrees?
Whoops. That'll teach me to edit code in a web page. Missed a few variable-name-fixes, in converting from my actual code.
Dec
23
awarded  Revival
Dec
23
revised How to pick a 3D object with known mouse coordinates if the camera is rotated 60 degrees?
Adjusted camera Matrix accessor function to specify local-to-world. I've seen some bizarre camera APIs which instead provide a world-to-local matrix. That's not what we want, here!
Dec
23
comment How to pick a 3D object with known mouse coordinates if the camera is rotated 60 degrees?
(Actually, a more correct answer would probably be to put the screen on the near clip plane, and would be firing from the pixel's position on the near clip plane, firing directly away from the camera. But this answer was already too wordy/mathy, and this distinction won't make any difference for most games.)
Dec
23
answered How to pick a 3D object with known mouse coordinates if the camera is rotated 60 degrees?
Dec
23
comment Fragment Shader output type error
I've gone over a diff of the two versions of the loading code; the only material differences (besides different indenting and a few modified variable names) is the code for printing out the shader info logs. The original code destroyed shaders and exited when a compile error was reported. The new code does not. (In fact, the new code doesn't even check whether the shader compilation succeeded) Whatever solved the problem, it seems implausible for it to have been related to this code.
Dec
23
reviewed Close How to handle car game circuits in a top-down view?