|[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]|
Thanks a lot for the answers Jean François, David, Jocelyn and Chris.
Your information is very useful for me.
Subject: Re: dxf to OpenGL??
Date: Fri, 7 Nov 2008 10:02:03 -0800
OpenGL does not mandate or specify any file formats. There are no "OpenGL files" to speak of.
If you already can read dxf and dwg file, than it seems to me you have everything you need. Just use the appropriate OpenGL commands to load up the data. I recommend reading about buffer objects (to allocate storage for vertex attributes such as position, normal and so forth), vertex arrays (for letting OpenGL know in which buffer objects you've laid out the geometry and how it is structured) and the batch draw commands (DrawArrays, DrawElements) for drawing your data.
If you need textures as well, look into the APIs for that (TexImage & friends).
In addition, you may also want to use shaders for your lighting, in which case you can choose between NVIDIA's Cg language, ARB assembly or GLSL.
For more information, http://www.opengl.org has the specification for OpenGL and GLSL, as well as the extension registry. Finally, the OpenGL man pages (http://opengl.org/sdk/docs/man/) are quite useful.
Alternatively, I suppose, you could convert those dxf or dwg files to some other format, such as OBJ, and then find an OpenGL loader for that format.
But as Jocelyn said, if you already have the parsing done, your work is half-done.
On 7-Nov-08, at 09:47, Priscila J.V. wrote:
Votre correspondant a choisi Hotmail et profite d'un stockage quasiment illimité. Créez un compte Hotmail gratuitement !
_______________________________________________ Do not post admin requests to the list. They will be ignored. Mac-opengl mailing list (email@hidden) Help/Unsubscribe/Update your Subscription: This email sent to email@hidden
|>dxf to OpenGL?? (From: Priscila J.V. <email@hidden>)|
|>Re: dxf to OpenGL?? (From: Jean-Francois Roy <email@hidden>)|
Visit the Apple Store online or at retail locations.
Copyright © 2011 Apple Inc. All rights reserved.