Jump to content
  • Advertisement

Archived

This topic is now archived and is closed to further replies.

Al-hhu

Diplay LISt by 3D exploration

This topic is 6475 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

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

Share this post


Link to post
Share on other sites
Advertisement
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 )

ECLIPSE DE SOLEIL PAR NOTRE LUNE...lunasol

Share this post


Link to post
Share on other sites
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

Share this post


Link to post
Share on other sites
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.

ECLIPSE DE SOLEIL PAR NOTRE LUNE...lunasol

Share this post


Link to post
Share on other sites

  • Advertisement
×

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

Participate in the game development conversation and more when you create an account on GameDev.net!

Sign me up!