Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to access cull mode and double sided programmatically within BodyEntity?

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?

Settings

like image 295
Mochi Avatar asked Oct 18 '25 10:10

Mochi


1 Answers

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.

like image 89
Andy Jazz Avatar answered Oct 22 '25 06:10

Andy Jazz



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!