Diplay LISt by 3D exploration
hi,
i use 3d exploration to generate display list
but when i code the programm with the display list
i see anything,
but i''ve include all that the programm need,
build a display list,
texture coord,
standart texture ( who is generated by 3d exploration)
call display list...
i don''t see what''s the problem !
ciao
al
Do youjust ask the program to display it ?
(you can find me on IRC : #opengl on undernet)
hi,
it''s may be due to that 3dexploration declare "lid" (what the function Gen3DObjectList() return) as a local vatiable. But for a real answer give us more clues (show us your code )
lunasol
it''s may be due to that 3dexploration declare "lid" (what the function Gen3DObjectList() return) as a local vatiable. But for a real answer give us more clues (show us your code )
lunasol
sorry but i''ve solve the problem,
the programm must call Gen3DObjectList()
but i''ve a new problem
>>>>texture were not rendered .
3d exploration have generation coord . with bmp loader but the object are white whitout texture
i''ve include glBindTexture before calling the display list .
ciao
al
the programm must call Gen3DObjectList()
but i''ve a new problem
>>>>texture were not rendered .
3d exploration have generation coord . with bmp loader but the object are white whitout texture
i''ve include glBindTexture before calling the display list .
ciao
al
hi
you have to bind textures inside the display list code like this:
glNewList(lid, GL_COMPILE);
glBindTexture( GL_TEXTURE_2D, myTexture);
glBegin (GL_TRIANGLES);
....
....
glEnd ();
glEndList();
btw 3dexploration normalize texture coordinates. I''ve heard that a recent release fix this problem. Check it out.
lunasol
you have to bind textures inside the display list code like this:
glNewList(lid, GL_COMPILE);
glBindTexture( GL_TEXTURE_2D, myTexture);
glBegin (GL_TRIANGLES);
....
....
glEnd ();
glEndList();
btw 3dexploration normalize texture coordinates. I''ve heard that a recent release fix this problem. Check it out.
lunasol
This topic is closed to new replies.
Advertisement
Popular Topics
Advertisement