sionna icon indicating copy to clipboard operation
sionna copied to clipboard

Have problem to load_scene into sionna

Open as057923553 opened this issue 1 year ago • 2 comments

These following are error messages. image image

These following are my files image image

These following are my Blender screen image

Could anyone hlep me, please.

as057923553 avatar Oct 20 '24 07:10 as057923553

Hello,

  1. install the last sionna (0.19)
  2. Control the slashes in the path (you are in windows it seems!!!!)
  3. create your scene with the video tutorial on YouTUBE. Create Blender Scene /OSM and test if is all OK. If it's you have created the scene in wrong way.

Fedomer avatar Oct 21 '24 06:10 Fedomer

Hello @as057923553,

On top of what @Fedomer suggested, could you try making sure that all your meshes and materials in Blender have names that only use alphanumeric characters? And then re-export and trying again. In theory any characters should work, but it's worth trying, especially on Windows.

Please also make sure that the meshes/ directory contains all meshes referenced in the XML file.

merlinND avatar Oct 21 '24 08:10 merlinND

Thanks for your help! I had already followed the youtube video to make it! However, I still have some problems.

@Fedomer The reason why I used sionna 0.14 was because this problem. image When I used 0.19 version and import Paths2CIR. It could not import name 'Paths2CIR' from 'sionna.rt' And I found that from 0.19, 0.18, 0.17, 0.15 to 0.14 version, only 0.14 can import 'Paths2CIR' . So I used sionna 0.14 eventually without any import error. image

For slashes problem. If I copy the path from the file , it have error : file does not exist! image But after I change the opposite direction of slashes. It work !

@merlinND After I check the names, it success !!! Thanks for your help! But I encounter a new promlem I point 2 address to show the tx and rx ,but it is the wrong point in the jupyter. I can't figure it out~ image image image image

In blender I point the building which is cylinder and cube building, but in the jupyter, the place is different.

image

1.The scene was successfully maken, but the position is not totally correcrt. 2.I don't know why there are some problem for this code image

I really appreciate all your help!!!

as057923553 avatar Oct 25 '24 13:10 as057923553

Hello @as057923553,

About the correspondence between Blender's 3D cursor and placing TX/RX in Sionna, it might be that the coordinate system gets converted when exporting the scene. You could try swapping the Y and Z coordinates.

merlinND avatar Oct 28 '24 08:10 merlinND

Hello @as057923553 ,

  • at first in version >0.14 the function is moved now you calculate CIR in paths see example RT introduction in v0.19 : a_, tau_ = paths.cir(num_paths=75) I suggest you to move to the last release this is an hot project that increase a lot the functionality.

  • Problem in X,Y consider to export mitsuba with Y Forward and Z Up and it will be OK.

  • If you need to map Latitude e Longitude in your scene keep your FLOOR exactly as big as needed for containing all the building and not more then with the bounding box of OSM create a function like this using geodesic lib: X,Y = ut.LatLon2XY(Latitude, Longitude) then

scene.add(Receiver(name='UE01',
                            position=[X,Y,1.6],
                            orientation=[0,0,0]))

Fedomer avatar Oct 28 '24 14:10 Fedomer

Thank you so much for all your help; I’ve now resolved the issue with exporting from Mitsuba. It turned out that my original exported file had the -Y and Z coordinates instead of the Y and Z coordinates.

@Fedomer , I’ll follow your advice to use version 0.19 of Sionna. I also successfully tried using version 0.19 over the weekend to explore things with Sionna. Additionally, thank you for all the valuable suggestions.

@merlinND , thank you for teaching me so much, which has allowed me to start exploring Sionna more thoroughly. All the issues I was facing are now resolved.

Thank you both for your great support!

as057923553 avatar Nov 04 '24 02:11 as057923553

Thanks @Fedomer for your post! Glad we were able to help.

merlinND avatar Nov 04 '24 08:11 merlinND