Advertisement

lesson 32. buffer problem

Started by March 18, 2008 02:58 PM
0 comments, last by Caste 16 years, 7 months ago
In the Selection() function. 1>It might be a stupid question, but I dont understand why one object uses 4 buffer array elements. I.e. in the tutorial, it mentions that buffer[loop*4+1] is the distance, bla bla. Cheers
/*----------------------------------------------------------------------------------------------------------------------------------*/Enthusiastic and wild about game development. Any opportunity would get me sink into any fantastic game-revolution era.
Quote: Each hit takes 4 items in the buffer. The first item is the number of names on the name stack when the hit occured. The second item is the minimum z value of all the verticies that intersected the viewing area at the time of the hit. The third item is the maximum z value of all the vertices that intersected the viewing area at the time of the hit and the last item is the content of the name stack at the time of the hit (name of the object). We are only interested in the minimum z value and the object name in this tutorial.


Doesn't this part of the tutorial explain it?

This topic is closed to new replies.

Advertisement