I've just installed blender (blender.org) and made some beginner objects.
It's nothing special.
The purpose is to see if I can import these objects into an OpenGL program
and draw them on screen using OpenGL API.
Does anyone know about this?
Which file format to use? How to find specs for the file format? How to
import?
--
Jacob
Blender has a great interface for writing plugins.
Also, it has a huge list of export filters. Thus, you should see if
any file format fits your needs, and try reading that.
Export your model into a OBJ file, then you can use my OBJ C++ loader, at :
http://www.jadeware.net/dev.html
You should be able to send your vertice and texture coordinates to OpenGL..
JM
The C++ library is not finished in 100% yet, but is you are interested I
can "show you the code".
Regards
Krzysiek
After finding out how simple the OBJ format really is when only using the
most simple features I wrote my own reader yesterday - it simply reads
objects, vertices, vertex normals and faces and then draws the object on
screen using OpenGL. Good exercise for a 3D-modelling/OpenGL beginner.
The next thing I should look at is textures I guess. I'm not really into
that yet.
Thanks for the help and for the references.
--
Jacob