HI guys,
I'm integrating the RoomPlan framework into my app.
I'm able to scan a room and extract the nodes from the CaptureStructure object. So far, I can rebuild the 3D object in the SceneView, but I can't render the openings and the windows correctly. I'm struggling to add these two objects correctly in the wall, in order to make the wall transparent where they are supposed to be.
If I export the CaptureStructure
into a usda
file and then I load it directly in the SceneView, all the doors, windows and openings are correctly rendered, therefore I do believe that I'm doing something wrong.
Could you please tell me what I'm doing wrong?
I added here a screenshot of my problem:
I have also a prototype, which you can run and see the problem I'm talking about: https://github.com/renanstig/3d-scenekit-prototype
Hello @czczxczx,
Let's consider the window in your example, the issue isn't that the window is not transparent (it is), the issue is that the wall is there as well, which results in the rendering you are seeing.
There is no API available to directly solve this problem, but you can implement a solution yourself.
A couple of quick ideas that are implementable:
-
Break up the wall geometry into smaller pieces, remove the piece that intersects with the window.
-
Create a texture for the entire wall that includes the window at the appropriate texture coordinates.
Best regards,
Greg