jPCT - a 3d engine for Java > Support

Painting a Mouse Cursor-Selected Polygon

<< < (2/4) > >>

EgonOlsen:
Not sure...what exactly do you want to achieve? Is that supposed to be a marker that moves or a permanent selection?

AGP:
I'm trying to do this: https://www.dropbox.com/s/wprxc3w7mw8mry3/Dune2.png?dl=0

EgonOlsen:
In that case, you might have a know order in which the terrain has been build. I would rather rely on that instead of extracting the lost information from the mesh again. If you have to do it that way, then you could find a polygon's adjacent polygons by comparing the vertices.

AGP:
In this particular case, I created the plane with the Primitives class. Is that no good or is there some kind of loop I could undergo to map the triangles?

EgonOlsen:
Yes, you could use a combination of a vertex controller and the PolygonManager to map your polygons. I can't find an example for this ATM, but I'm pretty sure that I did similar things in the past.

Navigation

[0] Message Index

[#] Next page

[*] Previous page

Go to full version