Re: lil confused
res <[email protected]>
| Newsgroups | gmane.comp.graphics.crystalspace.devel |
|---|---|
| Message-ID | <[email protected]> |
On 03.06.2012 22:46, Naman Gupta wrote: > after executing, debug code results ( for one oceancell) > > First tri x=0 y=3 z=1 > Second tri x=1 y=3 z=4 > First tri x=1 y=4 z=2 > Second tri x=2 y=4 z=5 > First tri x=3 y=6 z=4 > Second tri x=4 y=6 z=7 > First tri x=4 y=7 z=5 > Second tri x=5 y=7 z=8 > > i can't figure out how these tris are working. they are not xyz for sure. Triangle corners are indices into the vertex buffer(s). So ‘first’ uses the position+normal+texcoord+color of the buffers at index 0 for the first corner, index 3 for the second corner, index 1 for the third corner. Likewise, ‘second’ uses index 1 for the first corner, index 3 for the second corner, and index 4 for the third corner. (Corners are typically not named X, Y, Z to not confuse them with actual coordinates.) -f.r. ------------------------------------------------------------------------------ Live Security Virtual Conference Exclusive live event will cover all the ways today's security and threat landscape has changed and how IT managers can respond. Discussions will include endpoint security, mobile security and the latest in malware threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/ _______________________________________________ Crystal-develop mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/crystal-develop
signature.asc
(application/pgp-signature, 262 B)
-----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.12 (GNU/Linux) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/ iEYEARECAAYFAk/L3yIACgkQNCTzcE/07exjPACeJ+u2EfLhwb6wILFXqi5klAxX F3MAoJLOL/ZzaN5ooJuVJdzay2u402rR =Nq2P -----END PGP SIGNATURE-----