spear-sim / spear

SPEAR: A Simulator for Photorealistic Embodied AI Research
MIT License
243 stars 18 forks source link

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

Closed RachithP closed 8 months ago

RachithP commented 8 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.