Skip to content

Conversation

@mateuszwasilewski
Copy link
Contributor

What does this PR do?

This PR makes size of Pointcloud points rendered by PointCloud Gem depend on distance.
Previously if pointSize is set to 1.0 all points will be rendered with the same size, this causes groups of points that are further to combine into a plane with z fighting while zooming close into groups of points made them dissapear.

After this change size of rendered points depends linearly on distance. This means that dense point clouds can also be seen from small distance.

How was this PR tested?

I imported an example pointcloud and changed camera position to observe different pointcloud size depending of distance.

Screenshots / Logs / Supporting Evidence (if applicable)

Title Previously Now
Look into the distance Screenshot from 2025-12-01 11-17-11 image
Zoom close Screenshot from 2025-12-01 11-18-02 Screenshot from 2025-12-01 11-20-39

Committer Checklist

Please confirm the following before marking this PR as ready for review:

  • Code changes are well-documented
  • Tests have been added or updated
  • Code owners file and CI config were updated if new Gem was added
  • The code is formatted according to the project's style guide
  • The version number has been updated according to the contributing guidelines

Signed-off-by: Mateusz Wasilewski <mateusz.wasilewski@robotec.ai>
Signed-off-by: Mateusz Wasilewski <mateusz.wasilewski@robotec.ai>
@michalpelka
Copy link
Collaborator

Consider:

  • adding normals that makes so much better rendering quality (if available).

@mateuszwasilewski mateuszwasilewski merged commit bff35ab into o3de-2505 Dec 4, 2025
1 check passed
@mateuszwasilewski mateuszwasilewski deleted the mw/pointcloud-size branch December 4, 2025 09:44
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants