Posts

Post marked as solved
10 Replies
4.9k Views
Hi there!I'm trying to add a png image as texture in a material, but the transparency is not carried over. Areas that should have transparency have a black color instead. I've tried the different materials UnlitMaterial and SimpleMaterial. How can I fix this?Thanksvar profileMaterial = UnlitMaterial() profileMaterial.baseColor = try! .texture(.load(named: "profilePicture.png")) let profileMesh = MeshResource.generatePlane(width: 0.2, height: 0.2) let profilePlane = ModelEntity.init(mesh: profileMesh, materials: [profileMaterial])
Posted
by ajons.
Last updated
.
Post not yet marked as solved
5 Replies
1.5k Views
Is there a way to get the orientation/normal where a raycast hits a featurePoint? Like how the cursor in Apples Measure app follows the curvature of worldmap objects (not limited to a horizontal or vertical plane): https://www.youtube.com/watch?v=HbLe4rHQI_IThanks
Posted
by ajons.
Last updated
.
Post not yet marked as solved
0 Replies
436 Views
Hi!Is there a way to get the normal along the curvature of a surface where a ray hits on a feature point-filtered raycast? I.e on a ball or a cylinder. Am I using the correct api for this?arView.hitTest(tapLocation, types: .featurePoint)Thanks
Posted
by ajons.
Last updated
.