PDA

View Full Version : modeling



newbieGL
08-26-2002, 02:25 PM
Hi all,

Anyone have any simple code of creating an aircraft. Please help me.

Thanks in advance.

08-26-2002, 04:48 PM
Code to create an airplane...

If you mean procedurally generated models, you'll need to apply LOTS of HIGH LEVEL math and a ton of other stuff.

If you don't, you're really in the wrong forum; look for something on modelling.

colinisinhere
08-26-2002, 06:46 PM
to make models like that... you should use a 3d modeler and than learn how to render that type of file...

rixed
08-28-2002, 04:29 AM
There is a glut fonction to create an aircraft.
The aircraft somehow looks like a tea pot, anyway.
http://www.opengl.org/discussion_boards/ubb/smile.gif

newbieGL
08-28-2002, 07:25 AM
rixed!
Would you be more specific, please? I'm in hurry to complete this assignment.

Thanks

Gavin
08-28-2002, 07:34 AM
void MyglutAircraft(GLfloat wingspan, GLfloat length, GLfloat circumference)
{
#ifdef PLANE_TO_TEA
glutWireTeapot((GLdouble)(wingspan/length*circumference));
#else
printf("No Plane to Teapot Conversion available\n");
#endif
}

nexusone
08-28-2002, 07:46 AM
There are two way's you can go about it.

One is find a 3D model of a aircraft, then look for a the code needed to load that model format. Lot's of pre drawn 3D model's on the net, just do a search.

If you don't want a very complex or detailed aircraft, then just a few openGL primitives should be able to create a simple one..


Originally posted by newbieGL:
Hi all,

Anyone have any simple code of creating an aircraft. Please help me.

Thanks in advance.