Multiple 3D Objects

Jul 14, 2013 at 4:30pm

Multiple 3D Objects

Hey guys, hoping this’ll be an easy one…

I have a single OBJ file that I’ve created in Cinema4D with multiple meshes in it. Let’s say there’s three meshes: a cube, a rectangle, and a pyramid.

What I’d like to do is load the single OBJ file, and then use three separate instances of jit.gl.handle on each of the meshes, so that I can move/rotate each of those meshes individually.

Can I do this? If so, how?

If not, can I export the cube, rectangle, and pyramid individually as separate OBJs and render them all three simultaneously, and put three serparate jit.gl.handles on those?

Any other thoughts?

Thanks!

#256001
Jul 15, 2013 at 11:29am

simplest is probably to export each mesh as a separate file.

however, it is possible to export as a single file, and control meshes individually.
generally, you want to make sure each mesh is positioned at the origin.

you will then be able to bind an anim.node to each mesh, allowing for control of each mesh’s node’s transform.

basic example:

<code>

– Pasted Max Patch, click to expand. –

</code>

#256117
Jul 17, 2013 at 9:31pm

This worked perfectly – thank you!

#256338

You must be logged in to reply to this topic.