Previous Thread  Next Thread

chat icon Connect Blender + OpenGL + Python

pollopippo

Posted: Fri Aug 24, 2012 7:34 am
Joined: 24 Aug 2012
Posts: 2
Hi.
I don't understand how to connect Blender + OpenGL + Python.
I have create a cube 3d in blender.
Now i want to use this cube in my python script in which use opegl to move the cube.
IN particular I use the OpenGL functions:
- glRotatef
- glTranslatef
- glScalef
Can i make this???
Help please! Sad
Reply with quote


CoDEmanX

Posted: Fri Aug 24, 2012 10:10 pm
Joined: 05 Apr 2009
Posts: 732
what's the target environment?

do you want to animate the cube inside of blender, rendering it later to a video?

do you have an OpenGL application (like written in C++ or C#) and want to import models from blender?
_________________
I'm sitting, waiting, wishing, building Blender in superstition...
Reply with quote


pollopippo

Posted: Fri Aug 31, 2012 10:41 am
Joined: 24 Aug 2012
Posts: 2
HI!
I want animate the cube in my python script (in which use openGL library).
My application is in Python and i want import cube in this my script..... when i want to rotate the cube.
My problem is: can i use blender cube in python script and animate this cube normally with OpenGL? How?
Thanks!
Reply with quote


CoDEmanX

Posted: Fri Aug 31, 2012 9:49 pm
Joined: 05 Apr 2009
Posts: 732
if i got you right, you coded a python application which draws 3d content in a window using opengl.

i would export a cube / models to a common format like OBJ and write an importer for mesh geometry for your app (i bet there are examples on the web)

you could then use any opengl features i guess
_________________
I'm sitting, waiting, wishing, building Blender in superstition...
Reply with quote


 
Jump to:  
Powered by phpBB © 2001, 2005 phpBB Group