On 2011-03-22 at 21:47, Richard Hughes wrote: > I'm guessing the easiest way to achieve this would be to make each > node in the mesh an actor with x, y and z and then use something like > clutter_stage_set_perspective() to set some global perspective to > illustrate the depth. And then group all the actors in the mesh as a > new actor with custom shape. > > If this is out of scope for clutter, and I should be using gtkglext > and hardcore low level GL, then please let me know. Otherwise I'm > hopeful for advice. Thanks.
I would not use a ClutterActor for each node: it would not scale, and it would probably not do what you want. what I would do is create a custom actor and use the Cogl API to create a vertex buffer with all the nodes in the graph and their color. you can then change the modelview matrix of the actor by overriding the apply_transform() virtual function, and modify the matrix to be applied inside the pointer events handlers (e.g. motion left → rotate the matrix on the Y axis, motion downward → rotate the matrix on the X axis). you can look at Mash[0], which is a project that creates an actor from a PLY 3D model. ciao, Emmanuele. [0] http://wiki.clutter-project.org/wiki/Mash -- Emmanuele Bassi, Intel Open Source Technology Center _______________________________________________ clutter-app-devel-list mailing list [email protected] http://lists.clutter-project.org/listinfo/clutter-app-devel-list
