Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Importing blender objects into an OpenGL program

100 views
Skip to first unread message

Jacob Jensen

unread,
Oct 29, 2007, 11:01:32 AM10/29/07
to
Hi

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

Gernot Frisch

unread,
Oct 29, 2007, 11:06:02 AM10/29/07
to

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.

Julien MEYER

unread,
Oct 29, 2007, 1:25:23 PM10/29/07
to

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

Krzysiek So?ek

unread,
Oct 31, 2007, 1:18:54 PM10/31/07
to
Jacob Jensen pisze:
Hi,
I have written a python script for blender that purposes ;-) (it exports
current blender scene into text file).
Here you can find a screen shot, of the OpenGL program that loads this
file and display using OpenGL.
http://ksolek.republika.pl/blender/lambo_opengl.png
(full thread at blenderartis.org :
http://blenderartists.org/forum/showthread.php?t=100158)

The C++ library is not finished in 100% yet, but is you are interested I
can "show you the code".

Regards
Krzysiek

Jacob Jensen

unread,
Nov 3, 2007, 11:46:42 AM11/3/07
to
Hi again

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

0 new messages