Skip to content

Commit

Permalink
GafferScene : Enable "USDPointInstancerAdaptor"
Browse files Browse the repository at this point in the history
  • Loading branch information
murraystevenson committed Feb 10, 2025
1 parent fd81d55 commit c2f9352
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 3 deletions.
7 changes: 7 additions & 0 deletions Changes.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,14 @@
1.5.x.x (relative to 1.5.5.0)
=======

Features
--------

- USD : Added automatic expansion of USD PointInstancers at render time.
- This can be controlled on a per-instancer basis using a `gafferUSD:pointInstancerAdaptor:enabled` boolean attribute.
- Which point cloud primitive variables are promoted to user attributes can be controlled using a `gafferUSD:pointInstancerAdaptor:attributes` string attribute.
- May be disabled entirely with `GafferScene.SceneAlgo.deregisterRenderAdaptor( "USDPointInstancerAdaptor" )`.
- Viewer : Added "Expand USD Instancers" item to the Expansion menu. Defaults to on for all renderers except OpenGL.

1.5.5.0 (relative to 1.5.4.1)
=======
Expand Down
4 changes: 1 addition & 3 deletions startup/GafferScene/usdPointInstancerAdaptor.py
Original file line number Diff line number Diff line change
Expand Up @@ -42,8 +42,6 @@

try:
import GafferUSD
# Disabled while we work on a solution for automatically remapping prototype paths
# when pointclouds have been reparented in the scene hierarchy.
# GafferScene.SceneAlgo.registerRenderAdaptor( "USDPointInstancerAdaptor", GafferUSD._PointInstancerAdaptor, "SceneView *Render", "*" )
GafferScene.SceneAlgo.registerRenderAdaptor( "USDPointInstancerAdaptor", GafferUSD._PointInstancerAdaptor, "SceneView *Render", "*" )
except ImportError :
pass

0 comments on commit c2f9352

Please sign in to comment.