donn <[email protected]> writes:

> One thing I have only found hints about, via google, is how to break
> out of 2.5D and into 3D. I would like to have little 3D icons in my
> application. I know clutter is not geared towards this, but does
> anyone have some suggestions about how I could build small 'models'
> (with vertex colours and/or uv textures?
>
> Ideally, I would like to go from Blender out to a small file and into
> clutter.
>
> One thought I had was to build a model up from many little
> clutter.Rectangles, all placed and rotated in space to fake a
> model. Sounds a little demanding though.

If you want to render a 3D model it would be a lot more efficient if you
could use the CoglVertexBuffer API. This lets you collect for example a
set of vertices with texture coordinates as a series of triangles and
render them efficiently.

If you want to export from Blender I would recommend using the PLY
format. This is a relatively simple text or binary format that Blender
supports well. There is a handy library for reading this format called
RPly¹. I'm not sure how easy that would be to use from Python though.

I have some code which wraps a Ply model as a ClutterActor and renders
it through a CoglVertexBuffer which I've been using for a game. We may
want to consider having something similar in Clutter core.

- Neil

¹ http://www.tecgraf.puc-rio.br/~diego/professional/rply/
--
To unsubscribe send a mail to [email protected]

Reply via email to