PDA

View Full Version : New to OpenGL: Blender Model to OpenGL code



JRW
05-02-2001, 04:17 AM
Does anybody know how to take a model from Blender and then generate OpenGL C/C++ code from it? I've tried Blender -> VRML -> 3D Explorer and that has mixed results.

[This message has been edited by JRW (edited 05-02-2001).]

12-09-2001, 06:21 AM
argh..

12-09-2001, 06:29 AM
sorry for my broken english !
i'v created a wrl exporter for my opengl game (wrl generated by blender) at now that load all stuff but have problem to handle matrix transform and normal vector compute
so the light is badly rendered with Gl and sometime bad position of wrl object
i will be happy if anyone can help me to patch this problem.
the source code is available (c++) just ask!
Sayonara!
xgally@yahoo.com

Spiral Man
12-09-2001, 10:14 AM
the best option would be to learn python, and then write a python exporter for blender that exports into your own format. this is what i did, and it works well, even though i cant stand using python, its better than nothing, and im a lot more familiar with my own format than somebody else's, plus, the format contains only what i need...

NOAH IV
12-11-2001, 07:17 AM
Hi Spiral Man,

Could you show me how to do that using phyton?

Sure you don't need to send me all your phyton code if you don't want... just a short example would be nice.

Thanks

rixed
12-12-2001, 02:44 AM
Ive put the little python exporter I use on my site : http://rixed.free.fr/pub/export.py

This is incomplete and to simple, but functional. Have a look if you want to start using blender python API.

NOAH IV
12-12-2001, 04:20 AM
Thanks a lot, rixed!

12-12-2001, 11:32 AM
i'v all info to make my loader
;-) merci rixed