osrf / gzweb

Web client for Gazebo classic simulation
http://gazebosim.org/gzweb
Other
63 stars 60 forks source link

DAE ERROR Load files in complex robots are renderd as the first dae loaded #202

Open RDaneelOlivav opened 3 years ago

RDaneelOlivav commented 3 years ago

I'm executing thi in Ubuntu 20, noetic. The dae files have this strange issue that the first dae loads perfectly, after that all the other just load as a glitched copy of the first. Any ideas what could be happening here?

Screenshot from 2021-01-07 20-52-25 Screenshot from 2021-01-07 20-52-57

Tried to reexport the dae files but still happens.

No error messages in the web browser console as far as I see and it happens with lot of my simulations. It seems just random , but always appears when multiple daes are used

RDaneelOlivav commented 3 years ago

Fixed!

Its related to the materials and other names that are the same in all the daes. This normally is caused because you created and exported it piece by piece and all the elements use the same default material name ( for example in blender). In this newest version of gzweb its not dealt properly and it just inherits the first material into the rest of elements, glitching.

Solution: just edit the daes and change the material, UVmapping and shapename ) by unique names. That made the trick

Screenshot from 2021-01-08 17-55-57

duwudi commented 3 years ago

@RDaneelOlivav I think I have the same problem, that's been causing me some confusion for a long time! Thanks a lot for the suggestion.

You mention the "newest version of gzweb", which gzweb version are you running? And are you aware of an older version where this isn't an issue?