Plane
Hey there, I was curious, is there a kind of variable that can store a plane? Like, hold three (x,y,z) coordinates in one variable? Or do I have to make an array or something?
I dont have a clue. But perhaps you would get better answers if you told us the language you are using.
Well you need a vec4(it''s an array of four floats).
for a plane you need to store four values, first the normal of the plane then the distance from origo.
if you want to store a polygon then you would need an array of 3 int''s refering to another list of vertics.
---------------------------------
For an overdose of l33tness, flashbang.nu
for a plane you need to store four values, first the normal of the plane then the distance from origo.
if you want to store a polygon then you would need an array of 3 int''s refering to another list of vertics.
---------------------------------
For an overdose of l33tness, flashbang.nu
www.flashbang.se | www.thegeekstate.com | nehe.gamedev.net | glAux fix for lesson 6 | [twitter]thegeekstate[/twitter]
This topic is closed to new replies.
Advertisement
Popular Topics
Advertisement
Recommended Tutorials
Advertisement