jPCT - a 3d engine for Java > Support

PolygonManager.getTransformedVertex is Unreliable

<< < (2/3) > >>

AGP:
OK, I wrote circles around the event thread. The code is ugly as it stands and it's still not working. It's now being called by the game loop, which is in the main thread.

EgonOlsen:
Well, then just output some debug information. It's impossible to tell why it's not working as expected without any further information.

AGP:
Might it be a child/parent thing? My planes get added as children of a dummy pivot and the pivot gets translated, not the individual planes themselves...

EgonOlsen:

--- Quote from: AGP on March 03, 2017, 09:49:35 pm ---Might it be a child/parent thing?

--- End quote ---
No, that shouldn't matter. The used matrix is the same one that is used for all other transformations (including for rendering) and it takes the parent objects into account just as it should.

AGP:
The product of getTransformedVertex() often didn't work. I re-wrote boardSpaceFromWorld by getting the transformed centers of all surounding planes, and now it works every time.

Navigation

[0] Message Index

[#] Next page

[*] Previous page

Go to full version