Hi All
I know this is not a regular question for this forum. But here goes...
Hi
I am writing an arcade game in OpenGL where I have a lot of cubes with textures to render. I am confused as to the code to be used for calculating the vertex normals of the cube for texturing.
If i have a cube of unit dimension at origin
with edges along the +axes,
what will be the vertex normal of the point say
P( 1,1,1 ). Someone told me it would be
V(1/sqrt(3), 1/sqrt(3), 1/sqrt(3)). Is this true ?
If so, how do you calculate it ?
If there are any CAD/game programmers I am sure they can reply to my question...!
Thanks for your help
abp
I know this is not a regular question for this forum. But here goes...
Hi
I am writing an arcade game in OpenGL where I have a lot of cubes with textures to render. I am confused as to the code to be used for calculating the vertex normals of the cube for texturing.
If i have a cube of unit dimension at origin
with edges along the +axes,
what will be the vertex normal of the point say
P( 1,1,1 ). Someone told me it would be
V(1/sqrt(3), 1/sqrt(3), 1/sqrt(3)). Is this true ?
If so, how do you calculate it ?
If there are any CAD/game programmers I am sure they can reply to my question...!
Thanks for your help
abp