www.jpct.net

jPCT - a 3d engine for Java => Support => Topic started by: Bryan on November 03, 2012, 06:37:39 PM

Title: VertexController mesh size
Post by: Bryan on November 03, 2012, 06:37:39 PM
I've been messing a bit with an editor for somebody and am trying to deform the terrain.

I can get the polygon they clicked on which is fine, but in the VertexController the mesh size is only 1024 (the terrain region is currently 32x32 with 2 triangles per 'tile'). So I was wondering how exactly the getDestinationMesh()
Title: Re: VertexController mesh size
Post by: EgonOlsen on November 03, 2012, 08:01:01 PM
That's because jPCT combines vertices by default. If you don't want that, disable that behaviour either by using Object3D.disableVertexSharing(); or by Loader.setVertexOptimization(false);...depending on if you create the object yourself in code or import it via Loader.
Title: Re: VertexController mesh size
Post by: Bryan on November 03, 2012, 09:40:29 PM
Awesome I will check that out when I get back on the computer. I figured it would be something easy like that, thanks! 

I really like working with the library so thank you for that too.