Hi to all,
I have to make a project in c++ using GLUT and Blender.
There is someone that know how can I export the 3D models from blender and import them in my source code?
What are the commands in c++?
Blender & OpenGL
Moderators: jesterKing, stiv
-
- Posts: 0
- Joined: Tue Jul 06, 2004 1:13 pm
Just export to a Wavefront .obj file and use that instead.
Why? Because loading Blender files directly is most probably not going to be easy, while .obj files are piece of cake.
There's also a lot of tutorials on the web that use the .obj format to load a file, you can find them at NeHe, gametutorials, etc, etc.
Why? Because loading Blender files directly is most probably not going to be easy, while .obj files are piece of cake.
There's also a lot of tutorials on the web that use the .obj format to load a file, you can find them at NeHe, gametutorials, etc, etc.
Actually, obj is not a very well defined format, so you'll have to make your parser jump through hoops if you want to support all the variations use on all the tuts on the web.zupermonkey wrote:Just export to a Wavefront .obj file and use that instead.
Why? Because loading Blender files directly is most probably not going to be easy, while .obj files are piece of cake.
There's also a lot of tutorials on the web that use the .obj format to load a file, you can find them at NeHe, gametutorials, etc, etc.
RAW, as suggested by SirDude, is probably the simplest format you can use.
Martin
Life is what happens to you when you're busy making other plans.
- John Lennon
- John Lennon