Jump to content
  • Advertisement
Sign in to follow this  
infinitbelt

OpenGL Plane in OpenGL

This topic is 3059 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, Does anybody have any suggestions on how to create an airplane model in OpenGL (or have an example of a simple one)? I need to make the plane circle around but I just can't seem to create the plane model. I have tried gluCylinder, but couldn't get that to work. Thanks!

Share this post


Link to post
Share on other sites
Advertisement
It's going to be hard to make a plane using gluCylinder, you'd need to at minimum add some more calls to draw triangles for the wings and tail, as well as something for the nose. Even then it would look pretty bad.

Probably your best bet is to use a modeling program to build the model (I used to use Wings3D for aircraft) and then export and load the model into your program. If you don't want (or have time, or the ability) to write code to load the model from a file, you can always export to a human readable format like .obj and then manually add the render calls to draw the triangles in the .obj file to get it working. If you are going to have more than just the one plane model, though, writing an importer would be really helpful in saving you a ton of time in the long run.

Share this post


Link to post
Share on other sites
Is this for a homework assignment of some sort? If the purpose of the model is simply functional (rather than to 'look good'), you should be able to render it programmatically using, say, a cylinder and three triangles (two for the wings, one for the tail fin).

You said you 'couldn't get gluCylinder() to work'. Given that information, the best response I can come up with is, 'Write your code differently' :) If you need better help than that, you'll need to show what you've tried, and explain in what way it didn't work.

Share this post


Link to post
Share on other sites
Sign in to follow this  

  • 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!