I tried to create a simple test scene for testing the displacement with just one plan and one shader. as long as i render it in Blender it was okay but when i try to save it by FileSaver it saves the completely wrong file with 3 objects and wrong materials.
I do not know why but i attached the project and lux Scene file for more investigation.
Filesaver problems
Forum rules
Please upload a testscene that allows developers to reproduce the problem, and attach some images.
Please upload a testscene that allows developers to reproduce the problem, and attach some images.
Filesaver problems
Omid Ghotbi (TAO)
Last update information
viewtopic.php?p=34390#p34390
My Artstation https://www.artstation.com/omidghotbi
My Instagram https://www.instagram.com/omid.ghotbi
Last update information
viewtopic.php?p=34390#p34390
My Artstation https://www.artstation.com/omidghotbi
My Instagram https://www.instagram.com/omid.ghotbi
Filesaver problems
Filesaver won't help you investigate shapes anyway, it only saves the end result mesh of the shape evaluation.
I would recommend to check the LuxCore samples, the LuxCore shape source code and the BlendLuxCore implementation instead.
I would recommend to check the LuxCore samples, the LuxCore shape source code and the BlendLuxCore implementation instead.
Re: Filesaver problems
I was wonder because the export scene can not be render with luxCore Stand alone
Omid Ghotbi (TAO)
Last update information
viewtopic.php?p=34390#p34390
My Artstation https://www.artstation.com/omidghotbi
My Instagram https://www.instagram.com/omid.ghotbi
Last update information
viewtopic.php?p=34390#p34390
My Artstation https://www.artstation.com/omidghotbi
My Instagram https://www.instagram.com/omid.ghotbi
Re: Filesaver problems
You have some locale related problem in .scn:TAO wrote: ↑Thu Mar 25, 2021 1:43 pm I tried to create a simple test scene for testing the displacement with just one plan and one shader. as long as i render it in Blender it was okay but when i try to save it by FileSaver it saves the completely wrong file with 3 objects and wrong materials.
I do not know why but i attached the project and lux Scene file for more investigation.
Code: Select all
scene.objects.25263679124080.material = "Material2526377125768"
scene.objects.25263679124080.ply = "mesh-00002.ply"
scene.objects.25263679124080.camerainvisible = 0
scene.objects.25263679124080.id = 1326,487202
scene.objects.25263679124080.transformation = 1 0 0 0 0 1 0 0 0 0 1 0 0 0 0 1
And there are problems in in .ply too:
Code: Select all
element vertex 4,225
property float x
property float y
property float z
property float nx
property float ny
property float nz
property float s
property float t
element face 8,192
property list uchar uint vertex_indices
end_header
Re: Filesaver problems
Oh, I did not see that coming because this problem is fixed in MaxLuxCore, did not expect that to happen in the blender too.
Why is happen with blender I'm using the English version of windows and with no other language pack installed on my PC.
That is a bit strange.
Why is happen with blender I'm using the English version of windows and with no other language pack installed on my PC.
That is a bit strange.
Omid Ghotbi (TAO)
Last update information
viewtopic.php?p=34390#p34390
My Artstation https://www.artstation.com/omidghotbi
My Instagram https://www.instagram.com/omid.ghotbi
Last update information
viewtopic.php?p=34390#p34390
My Artstation https://www.artstation.com/omidghotbi
My Instagram https://www.instagram.com/omid.ghotbi
Re: Filesaver problems
Thank you for the explanation but why there are 3 objects exported by FileSaver?
Omid Ghotbi (TAO)
Last update information
viewtopic.php?p=34390#p34390
My Artstation https://www.artstation.com/omidghotbi
My Instagram https://www.instagram.com/omid.ghotbi
Last update information
viewtopic.php?p=34390#p34390
My Artstation https://www.artstation.com/omidghotbi
My Instagram https://www.instagram.com/omid.ghotbi
Re: Filesaver problems
Because they are defined, even if not all used. In LuxCore, this is true for all geometries, textures, materials, etc.: if you define them they exist, even if not directly used in the current rendering (they may be in the future, after a scene edit).
You have to call RemoveUnusedImageMaps()/RemoveUnusedTextures()/RemoveUnusedMaterials()/RemoveUnusedMeshes() to remove all definition not used by the current rendering.
Re: Filesaver problems
I see that's why there is 3 object instead of 2 when I save the scene by filesaver in a blender. honestly, I expect just 2 objects one for plane and one for displacement, and not 3.Dade wrote: ↑Sat Mar 27, 2021 11:37 amBecause they are defined, even if not all used. In LuxCore, this is true for all geometries, textures, materials, etc.: if you define them they exist, even if not directly used in the current rendering (they may be in the future, after a scene edit).
You have to call RemoveUnusedImageMaps()/RemoveUnusedTextures()/RemoveUnusedMaterials()/RemoveUnusedMeshes() to remove all definition not used by the current rendering.
Unfortunately, I got bad news from my family I'll try to check later.
Thank you.
Omid Ghotbi (TAO)
Last update information
viewtopic.php?p=34390#p34390
My Artstation https://www.artstation.com/omidghotbi
My Instagram https://www.instagram.com/omid.ghotbi
Last update information
viewtopic.php?p=34390#p34390
My Artstation https://www.artstation.com/omidghotbi
My Instagram https://www.instagram.com/omid.ghotbi