Jump to content
  • Advertisement


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


Help me~! vrml to opengl..

This topic is 6111 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 everyone~ my name is Yongwoo Shin in Korea. I want to use vrml data(human skeleton data) in opengl codes-using VC++.. How can I get the data from vrml file~?? Please help me~ Below is the sample vrml file... http://robotics.snu.ac.kr/~ywshin/sample.wrl Thanks for all~ Edited by - robotica on October 21, 2001 10:37:41 PM

Share this post

Link to post
Share on other sites
Try looking at tutorial 10 on 3d world loading.

The easiest way to tackle this problem is to identity which data is a 3d coordinate, whats a lighting coordinate and any other types of coordinate i.e. texture.

Then write a loading program like the one in tutorial 10 which strips away unesscary components i.e. you dont need the first 3 lines of the vrml file, and inserts the data into the relevant array i.e. 3d coord array.

I dont know how vrml 3d points are structured so your best bet is create a sample file with the first 228 vertices (remove everything else) and try loading them in using gl_points and see what they form, then try gl_lines and eventually gl_quads.

You could do this using your own code or a modified version of lesson 10 (add no of vertices to the top of file and change GL_QUAD to GL_POINTS then recompile).

After you know the file structure writing your own vrml loader should be easy.

Hope this helps, Kiel

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!