jPCT-AE - a 3d engine for Android > Support

Picking the part of object

(1/1)

kupiecu:
Hello
I'm try to do something like this: I have a object. I use a "getMaxPolygonID()" and result is 21 part of object. I want click on part of object (something like click on polygon number1, or better click on group of the poligon ex. (polygon1 + polygon2) and do whatever. I think about "Interact2D", "VisList" and "Polygon Menager" , but I have no idea about this. So my question is, How I can realize samething like:

1)Split object into pieces.
2)Group selected pieces to object

Or, maybe it's different way to do this.

PS. It's my four question, and I'm very glad of jpct support in this forum. It's very helpful and quick.

edit: I found a "getPolygonIDs" from CollisionEvent.. hmm it's what I want?

EgonOlsen:

--- Quote from: kupiecu on December 02, 2013, 02:50:22 pm ---edit: I found a "getPolygonIDs" from CollisionEvent.. hmm it's what I want?

--- End quote ---
I think so.

kupiecu:
hmm I still no idea. I think but I'm close to a solution of picking, but I still don't know how I can split my object to smallest part. Something like: I have a object and this object have ex. 10 triangle. (triangle = poligon??) And I want split my object to 2 object (each of them has to have 5 triangle?). Then I want ex. translate only one of them. ::)

I know that mayby it's easy or writing in documentation, but as you probably can see, my english is poor, so please help me.

EgonOlsen:
Splitting an object at runtime is actually not supported, because it would require a complete rebuild in the vm's memory as well as on the gpu and that would be the exact same thing as creating a new model from scratch. That said, it might help to know exactly what you want to use this feature for to find a solution.

Navigation

[0] Message Index

Go to full version