www.jpct.net

jPCT - a 3d engine for Java => Support => Topic started by: dear_stephen on May 29, 2007, 01:07:05 pm

Title: Replace the Mesh of an Object
Post by: dear_stephen on May 29, 2007, 01:07:05 pm
Hi

I would like to change the form of an object in realtime, however in doing so there may be new verticies added.

For this reason I can't use the GenericVertexController.

What actions do I need to additionally perform in order to do something like...

Object3D newObject = getAnObjectWithADifferentForm();
oldObject.setMesh(newObject.getMesh());



Stephen
Title: Re: Replace the Mesh of an Object
Post by: EgonOlsen on May 29, 2007, 02:09:49 pm
You can't do that. If the mesh size changes, it's actually a new object and has to be treated like one.