gazebosim / gazebosim/gz-rendering

Difficult to orbit around heightmaps

Open
#598 2 comments 0 reactions 0 assignees View on GitHub
bug help wanted ogre2.x
Dominant language
C++
Stars
81
Forks
90
Avg merge
1d 13h
Merged PRs (30d)
10

Description

## Environment
* OS Version: Ubuntu Focal
* Source or binary build? Source, `main` or `ign-rendering6`

## Description
* Expected behavior: Using the mouse to orbit around a heightmap should be as easy as orbiting around other meshes.
* Actual behavior: It looks like the ray doesn't intersect the heightmap and I'm orbiting around an arbitrary point in space.

See how it moves much more when orbiting the sphere than on the heightmap:

![heightmap_orb_2](https://user-images.githubusercontent.com/5751272/160941638-39cb32e3-c0a3-4410-b0c3-12eec60dffd0.gif)

This becomes more problematic the further you are. Here's an example with a large heightmap. Orbiting the grid is much easier:

![heightmap_orbit](https://user-images.githubusercontent.com/5751272/160941186-24760b55-bfb9-471f-bedf-6edc8db73328.gif)

## Steps to reproduce

1. `ign gazebo heightmap.sdf`
2. Orbit around the heightmap and the other models

## Additional context

I remember we had the same issue on Gazebo classic a while back:

* Issue: https://github.com/osrf/gazebo/issues/2049
* PR diff: https://github.com/osrf/gazebo/compare/482a93b0877be937651ff85413ece0ca7718b23a..9a92f437ef54261bbdbd09243a8a7b7fdb0fa95b

Contributor guide

Open the contributing guide

Research direction

Start by reproducing the issue with `ign gazebo heightmap.sdf`, comparing orbiting the heightmap with the other models and the grid. Review the linked Gazebo classic issue and PR diff for prior context. Done means mouse orbiting around heightmaps is as easy and stable as orbiting around other meshes, including at larger distances.

Written by the indexing model from the issue text.

Assessment

Tech stack
cpp
Domain
computer-graphics
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.