Jump to content
  • Advertisement


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


[java] Display lists and a 3D brain

This topic is 5370 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 there, I was wondering if someone could help me out... I''m developing an application on Java that loads a 3d brain and allows manipulation on it. the problem is that i use display lists to improve performance and i have to recompile the display list to include any changes in the manipulations. eg wireframe mode. Is there any way to pass any change in the values without having to stop, recompile and display again ? Even when recompiling, i get a message: GLUT: Warning in (unamed): GL error: invalid enumerant Hope to get some light on this!

Share this post

Link to post
Share on other sites
This is an OpenGL specific issue, you''d got much more answers by posting in the OpenGL forum.

Anyway, since OpenGL is stated based you can set the current state _before_ calling the list.

For example, you could have :


glCallList(list); //render stuff

So in your display list you put only "render calls" (glBegin / glEnd, glDrawElement,...) and before calling the display list you modify the state (position, materials,...).

Share this post

Link to post
Share on other sites
Guest Anonymous Poster
Basically the rule is, use display lists (because they''re easy and very efficient) if the object mesh remains static. If you''re simply trying to implement a wireframe mode, by all means use overnhet''s method, but if you want people to transform vertices directly, then you have reached the limitation of display lists. What I would recommend is the equally powerful Vertex Arrays method to draw your mesh.

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.

We are the game development community.

Whether you are an indie, hobbyist, AAA developer, or just trying to learn, GameDev.net is the place for you to learn, share, and connect with the games industry. Learn more About Us or sign up!

Sign me up!