Part of the Khronos Group
OpenGL.org

The Industry's Foundation for High Performance Graphics

from games to virtual reality, mobile phones to supercomputers

Results 1 to 8 of 8

Thread: New to OpenGL: Blender Model to OpenGL code

  1. #1
    Junior Member Newbie
    Join Date
    Feb 2001
    Posts
    11

    New to OpenGL: Blender Model to OpenGL code

    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).]

  2. #2
    Guest

    Re: New to OpenGL: Blender Model to OpenGL code

    argh..

  3. #3
    Guest

    Re: New to OpenGL: Blender Model to OpenGL code

    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

  4. #4
    Junior Member Regular Contributor
    Join Date
    Apr 2001
    Posts
    103

    Re: New to OpenGL: Blender Model to OpenGL code

    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...

  5. #5
    Intern Contributor
    Join Date
    Jan 2001
    Posts
    60

    Re: New to OpenGL: Blender Model to OpenGL code

    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

  6. #6
    Intern Contributor
    Join Date
    Sep 2001
    Location
    paris, france
    Posts
    73

    Re: New to OpenGL: Blender Model to OpenGL code

    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.

  7. #7
    Intern Contributor
    Join Date
    Jan 2001
    Posts
    60

    Re: New to OpenGL: Blender Model to OpenGL code

    Thanks a lot, rixed!

  8. #8
    Guest

    Re: New to OpenGL: Blender Model to OpenGL code

    i'v all info to make my loader
    ;-) merci rixed

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •