RealityKit PyshicallyBaseMaterial Displacement

Anyone can advise a newbie how to apply a displacement texture map image to a PyshicallyBaseMaterial in RealityKit?

I applied the diffuse texture to PyshicallyBaseMaterial.BaseColor, roughness texture to PyshicallyBaseMaterial.Roughness, normal texture to PyshicallyBaseMaterial.Normal but have no idea what to do with a displacement texture.

Answered by Graphics and Games Engineer in 691700022

Glad to hear you are using our new APIs! Unfortunately, displacement mapping is not supported within RealityKit. However, I did find a feature request for this in our internal issue tracking system, so the team is aware of the request. The good news is that you might be able to implement displacement mapping yourself using the CustomMaterial APIs. Additionally, I would encourage you to file a feature request on Feedback Assistant for this feature, and provide a bit of info about your use case. This helps us determine demand for particular features and help guide our feature planning for future OS releases.

Accepted Answer

Glad to hear you are using our new APIs! Unfortunately, displacement mapping is not supported within RealityKit. However, I did find a feature request for this in our internal issue tracking system, so the team is aware of the request. The good news is that you might be able to implement displacement mapping yourself using the CustomMaterial APIs. Additionally, I would encourage you to file a feature request on Feedback Assistant for this feature, and provide a bit of info about your use case. This helps us determine demand for particular features and help guide our feature planning for future OS releases.

RealityKit PyshicallyBaseMaterial Displacement
 
 
Q