MarginallyClever / Robot-Overlord-App

Simulation and control software for robots
https://www.marginallyclever.com/
GNU General Public License v2.0
168 stars 49 forks source link

Importing plugins causes texture mapping problem #177

Closed i-make-robots closed 9 months ago

i-make-robots commented 11 months ago

Describe the bug Texture on Meca500 broken for all but J0 sometimes.

To Reproduce Steps to reproduce the behavior:

  1. start app
  2. load meca500 v1
  3. delete meca 500 node from entity manager.
  4. load meca500 v2

Expected behavior image

Screenshots image

Platform (please complete the following information):

Additional context Does not happen if meca500 is loaded first.

i-make-robots commented 11 months ago

If I load v2, then v1, then v2 again... both v2 are fine. Does not appear to happen for any other robot.

i-make-robots commented 11 months ago

The plugins store models like

[USERPATH]\RobotOverlord\Plugins\MarginallyClever\Mecademic-Meca500\1.0.0
[USERPATH]\RobotOverlord\Plugins\MarginallyClever\Mecademic-Meca500\2.0.0

but when they are loaded both are copied to [USERPATH]\RobotOverlord\Scene\meca500 which writes over one model with another. The texture loading is not the problem. The OBJ texture coordinates are the problem because the import process is stepping on its own toes.