AntoineRichard / OmniLRS

SpaceR and SRL Lunar simulation
Other
54 stars 16 forks source link

Largescale DEM render artifacts at the edges #33

Open TL-4319 opened 1 month ago

TL-4319 commented 1 month ago

Hi Antoine,

Hope all is going well. I have a quick question regarding a rendering artifact at the edge of the DEM when using the large scale environment. I attached the images.

The first image show the artifacts when zoomed out which seems to be some weird behavior at the edges of the downloaded DEM. Screenshot from 2024-10-11 16-33-02

The second image shows that it does get rendered from an attached camera. I also see the artifact when viewing from RVIZ. Screenshot from 2024-10-11 16-33-17

My quick fix for it now is to move the starting position of the robot to be further center of the loaded DEM so i don't even see the artifacts but I wonder if there is a way to fix it correctly.

Thanks in advance

AntoineRichard commented 1 month ago

Hi there!

These are not rendering artifacts. That is the intended behavior. It is either that, or just a black background. If you'd rather not see it let me know. I can add a parameter in the environment config.

TL-4319 commented 1 month ago

I would like to not render those for our application. Please let me know when you have added the feature. Thanks

AntoineRichard commented 1 month ago

Alright, I need to modify the GPU accelerated terrain rendering, I'm a bit busy this week, but I'll try to do it before the end of next week. If you want to do it before that, I can explain how to go about it on discord.

Best,

Antoine

TL-4319 commented 1 month ago

I'm in no rush for that at the moment because of other projects at the same time. Thank you!