-
Notifications
You must be signed in to change notification settings - Fork 221
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Cannot import XML file into Sionna #608
Comments
It seems that Mitsuba is unable to locate the mesh files. Could they be in a sub-folder of |
Yes, the meshes are in a subfolder of london_whitehall. Inside the folder I have the XML file and the meshes folder. I checked inside the XML file, and this is the example of that specific building.
Also, I am using Ubuntu and WSL for Sionna. When I try to export the xml file directly to the folder in WSL, I get some errors in Blender and the xml file does not export correctly. So I am exporting it in a folder on my local disk and then copying and pasting the xml file and meshes folder into the sionna scenes folder inside Ubuntu WSL. Could this be a reason for this not working? |
Hello @pablocanosanroman, A few people have reported similar issues in the past, but so far it was always due to actual problems with the files not being there. |
This is the file being loaded when using
It is the correct path to the XML file I want to load. At least the ply file that is giving me the error is in the meshes folder and has the right name. There are so many files, so checking it one by one would take me forever. And about permissions, how do I check if I have permissions to access the ply file? Also, I found out that if I try to open the ply file in the jupyter notebook I get this message. And this is the message I get in VS code if I try opening it through the file explorer. |
The last two messages ("not UTF-8 encoded", "unsupported text encoding") should be fine because the .ply files are typically stored in binary format for efficiency. To check permissions, you can use e.g. You mentioned that you added your scene as Another thing to check is that the scene loads correctly when only using Mitsuba. For example: import mitsuba as mi
mi.set_variant("cuda_ad_rgb") # Or "llvm_ad_rgb" if that's what you plan to use
scene = mi.load_xml("/full/path/to/london_whitehall/LondonWhitehall.xml")
print(scene) |
It seems that the permissions are fine. When I write the command in ubuntu, I get this output. I did try using just the path, and the same error appears. When I try loading the XML with mitsuba I get this error. Which I do not understand because I am using CUDA at the moment.
|
Hello, I am still having this problem, does anyone know a possible solution? Thank you in advance. |
Could you please share the full scene (including mesh files), I can try locally to see if there's anything wrong with the scene itself. |
Here I upload a zip file with the xml file and meshes. Do you also need the blender file? |
I made it work! The problem was that when I exported the xml file in Blender I was exporting it to a specific folder on my C drive and I was then moving the files into a WSL folder (Where I have Sionna installed). When I locate the xml file directly in the c drive it works.
|
I looked at the scene file that you send over and I think I figured it out. In the XML file, there are a few shapes that are referring to the "same" building, but with names that use different capitalization. For example ( <shape type="ply" id="mesh-Soho_Coffee_co_-itu_marble" name="mesh-Soho_Coffee_co_-itu_marble">
<string name="filename" value="meshes/Soho_Coffee_co_-itu_marble.ply"/>
<boolean name="face_normals" value="true"/>
<ref id="mat-itu_marble" name="bsdf"/>
</shape>
...
<shape type="ply" id="mesh-Soho_Coffee_Co_-itu_marble" name="mesh-Soho_Coffee_Co_-itu_marble">
<string name="filename" value="meshes/Soho_Coffee_Co_-itu_marble.ply"/>
<boolean name="face_normals" value="true"/>
<ref id="mat-itu_marble" name="bsdf"/>
</shape> Because you exported the scenes on Windows, which uses a case insensitive file system, the similarly-named meshes were only being written into only 1 file. In other words, the error message from your first post:
was correct. There is really no file named |
In the end, only 3 shapes had this issue:
You could maybe go back to Blender, search the objects list and check if those buildings were accidentally duplicated. |
Oh nice thank you! |
Hello,
I am trying create my own scene with Blender using OpenStreetMaps. I have followed this tutorial: Sionna RT: Scene Creation with Blender using OpenStreetMap and when it is time to load the scene in sionna I get this error:
I am using this code to load the scene:
scene = load_scene(sionna.rt.scene.londonWhitehall)
I have added londonWhitehall in the scene.py file, so I can access it easily, so added this line in that file:
londonWhitehall = str(files(scenes).joinpath("london_whitehall/LondonWhitehall.xml"))
I have followed the discussion #357 to try fix it but nothing I have tried has worked. Do you know any way to fix this?
The text was updated successfully, but these errors were encountered: