#123391 - adzz182 - Tue Mar 27, 2007 9:40 pm
I am quite new to openGL programming, I know there are many different methods of rendering polygons. As the DS is no processing powerhouse, could someone please explain to me the most resource efficient method.
Right now i am using Blender 3D for Mac OSX to create my 3D environment, i found a partially DS compatible plugin for Blender (which i am currently editing to make it more efficient) which exports your polygon as a long series of glVertex / glNormal calls
Is this an efficient was of drawing polygons, or is using Vertex arrays or maybe Height Maps better?
Thanks alot
Right now i am using Blender 3D for Mac OSX to create my 3D environment, i found a partially DS compatible plugin for Blender (which i am currently editing to make it more efficient) which exports your polygon as a long series of glVertex / glNormal calls
Code: |
Eg, glBegin(1); glNormal3f(0.257637, 0.417096, 0.871548); glVertex3f(0.750000, -1.000000, -0.000000); glNormal3f(0.257546, 0.488174, 0.833857); glVertex3f(0.873768, -0.997926, -0.068859); glNormal3f(0.210730, 0.194952, 0.957884); glVertex3f(0.872332, -0.870509, -0.149090); glNormal3f(0.287729, 0.279122, 0.916105); glVertex3f(0.749025, -0.873358, -0.054499); glEnd(); glBegin(1); etc etc etc |
Is this an efficient was of drawing polygons, or is using Vertex arrays or maybe Height Maps better?
Thanks alot