uji-ros-pkg / underwater_simulation

UWSim-NET, the Underwater Simulator
97 stars 64 forks source link

Only one structured light projector works simultaneously #50

Open perezsolerj opened 8 years ago

perezsolerj commented 8 years ago

Due to the shaders implementation of this sensor only one structured light projector can work in each scene. In order to make more than one working at the same time array uniforms are required in the shaders so it can project multiple textures on the scene.

Depending on the GLSL version this could be done in different ways as array support for textures was introduced in GLSL 1.3 and modified in GLSL 4.00: http://stackoverflow.com/questions/12030711/glsl-array-of-textures-of-differing-size . Implementation should work in different versions, or at least don't break the current features in them.