I am setting my 3d model’s cull mode and double sided properties directly in my usdz file in my Scene graph. However, once it renders live real time, these properties are automatically reset to default. Is there a way I can access these properties programmatically through BodyEntity to ensure they're set when I render the character?
Asked
Active
Viewed 137 times
1 Answers
1
There is a new enum in RealityKit 2.0 for iOS 15 called FaceCulling:
enum MaterialParameterTypes.FaceCulling
with front, back and none cases. You can use it in PhysicallyBasedMaterial or in SimpleMaterial.
There's still no doubleSided property in RealityKit, like the popular property in SceneKit.
Andy Jazz
- 36,357
- 13
- 107
- 175
-
1How would I access this from BodyEntity or ModelEntity in RealityKit? – Mochi Jul 01 '21 at 12:20
-
1Using ModelComponent — https://stackoverflow.com/questions/67408552/change-a-colour-of-an-object/67419742#67419742 – Andy Jazz Jul 01 '21 at 13:06
-
1@Mochi, also read this story, and leave your comment if you wish — https://medium.com/geekculture/the-top-9-most-in-demand-features-for-realitykit-3-0-c1a50f08909d – Andy Jazz Jul 02 '21 at 10:03