fsstudio-team / ZeroSimROSUnity

Robotic simulation in Unity with ROS integration.
https://roboticsimulationservices.com/
MIT License
168 stars 21 forks source link

Image Sensor Not Rendering #4

Closed micahpearlman closed 3 years ago

micahpearlman commented 3 years ago

From: @EdvardGrodem in issue #3

images from cameras do not encode correctly and appears blue in Rviz. Does anyone know how to fix this?

micahpearlman commented 3 years ago

I suspect that this is an issue with the underlying Unity rendering driver. The image/camera renders require Vulkan drivers (OpenGL will likely not work). Can you verify that the Vulkan driver is setup properly as outlined in: https://github.com/fsstudio-team/ZeroSimROSUnity#setting-up-a-new-unity-project

micahpearlman commented 3 years ago

I just tested OpenGL on my system. It does render and I can visualize in RViz but the colors are incorrect. Are you sure the camera is attached to something in the scene and not falling through the floor or pointed in a unexpected direction? Can you try to set the debug parameter in the ZORGBCamera compontent, see image below. The camera sensor image should be rendered when Unity is running (it will be upside down, that is okay).

set_camera_debug

EdvardGrodem commented 3 years ago

Yes, enabling Vulken fixed the issue! I had some stability problems and forgot that I turned it off to test if that improved stability. Thanks a lot!