isl-org / spear

SPEAR: A Simulator for Photorealistic Embodied AI Research
MIT License
224 stars 15 forks source link

Fix: when multiple modalities are requested, incorrect image observations are returned #268

Closed RachithP closed 6 months ago

RachithP commented 6 months ago

Fix #267

Issue is in CameraSensor.cpp. The names used for TextureRenderTarget2D and SceneCaptureComponent2D are not unique. This leads to incorrect behavior when reading/writing from/to corresponding image modality buffers, as data is being overwritten.

Fix is to have unique names for TextureRenderTarget2D and SceneCaptureComponent2D.