Scene texture maps resize policy

Discussion related to the LuxCore functionality, implementations and API.
juangea
Donor
Donor
Posts: 332
Joined: Thu Jan 02, 2020 6:23 pm

Re: Scene texture maps resize policy

Post by juangea »

Awesome, I missed it somehow, I’ll check it later and report back the improvement, thanks! :)
User avatar
Sharlybg
Donor
Donor
Posts: 3101
Joined: Mon Dec 04, 2017 10:11 pm
Location: Ivory Coast

Re: Scene texture maps resize policy

Post by Sharlybg »

Even in a small scene like this it save me arround 80mb. Will test in a more complexe one :
Image resize.jpg
Support LuxCoreRender project with salts and bounties

Portfolio : https://www.behance.net/DRAVIA
juangea
Donor
Donor
Posts: 332
Joined: Thu Jan 02, 2020 6:23 pm

Re: Scene texture maps resize policy

Post by juangea »

I get a full blender crash:

Code: Select all

bpy.context.space_data.context = 'SCENE'  # Property
bpy.context.scene.camera = bpy.data.objects["CamIN_comedor_salon"]  # Property
bpy.context.scene.exclude = True  # Property
bpy.context.scene.exclude = True  # Property
bpy.context.scene.exclude = True  # Property
bpy.context.space_data.params.filename = "int_villa_dor_resize_test.blend"  # Property
Saved "int_villa_dor_resize_test.blend"  # Info
bpy.context.space_data.context = 'RENDER'  # Property
bpy.context.scene.luxcore.config.image_resize_policy.enabled = True  # Property
bpy.ops.node.select(wait_to_deselect_others=False, mouse_x=1652, mouse_y=442, extend=False, deselect_all=True)  # Operator

# backtrace
./bin/blender(BLI_system_backtrace+0x33) [0xa786aa3]
./bin/blender() [0xf6a059]
/lib/x86_64-linux-gnu/libc.so.6(+0x41950) [0x7f53ce7da950]
/home/jgea/.config/blender/2.93/scripts/addons/BlendLuxCore/bin/pyluxcore.so(_ZN3slg8ImageMap19InstrumentationInfo15ThreadAddSampleERKN7luxrays2UVE+0x6a) [0x7f537e386eea]
/home/jgea/.config/blender/2.93/scripts/addons/BlendLuxCore/bin/pyluxcore.so(_ZNK3slg8ImageMap8GetFloatERKN7luxrays2UVE+0x1e) [0x7f537e357dde]
/home/jgea/.config/blender/2.93/scripts/addons/BlendLuxCore/bin/pyluxcore.so(_ZNK3slg15ImageMapTexture13GetFloatValueERKNS_8HitPointE+0xa9) [0x7f537e45af79]
/home/jgea/.config/blender/2.93/scripts/addons/BlendLuxCore/bin/pyluxcore.so(_ZNK3slg11BandTexture13GetFloatValueERKNS_8HitPointE+0x2f3) [0x7f537e412ad3]
/home/jgea/.config/blender/2.93/scripts/addons/BlendLuxCore/bin/pyluxcore.so(_ZNK3slg7Texture4BumpERKNS_8HitPointEf+0x3a) [0x7f537e47acfa]
/home/jgea/.config/blender/2.93/scripts/addons/BlendLuxCore/bin/pyluxcore.so(_ZNK3slg12ScaleTexture4BumpERKNS_8HitPointEf+0x152) [0x7f537e474e72]
/home/jgea/.config/blender/2.93/scripts/addons/BlendLuxCore/bin/pyluxcore.so(_ZNK3slg8Material4BumpEPNS_8HitPointE+0x29) [0x7f537e387d99]
/home/jgea/.config/blender/2.93/scripts/addons/BlendLuxCore/bin/pyluxcore.so(_ZN3slg4BSDF4InitEbbRKNS_5SceneERKN7luxrays3RayERKNS4_6RayHitEfPKNS_14PathVolumeInfoE+0x1c8) [0x7f537e499b58]
/home/jgea/.config/blender/2.93/scripts/addons/BlendLuxCore/bin/pyluxcore.so(_ZNK3slg5Scene9IntersectEPN7luxrays18IntersectionDeviceEiPNS_14PathVolumeInfoEfPNS1_3RayEPNS1_6RayHitEPNS_4BSDFEPNS1_8RGBColorEPKSC_PNS_12SampleResultEb>
/home/jgea/.config/blender/2.93/scripts/addons/BlendLuxCore/bin/pyluxcore.so(+0xb6f844) [0x7f537e5bc844]
/home/jgea/.config/blender/2.93/scripts/addons/BlendLuxCore/bin/pyluxcore.so(+0x1f9e5b2) [0x7f537f9eb5b2]
/lib/x86_64-linux-gnu/libpthread.so.0(+0x9590) [0x7f53cef29590]
/lib/x86_64-linux-gnu/libc.so.6(clone+0x43) [0x7f53ce8b2223]

# Python backtrace

I'll try to isolate it with an example .blend, right now is a big scene.
juangea
Donor
Donor
Posts: 332
Joined: Thu Jan 02, 2020 6:23 pm

Re: Scene texture maps resize policy

Post by juangea »

Yep, we tried with two different scenes, under linux it is crashing.

As I said, I'll try to assemble an example scene.
juangea
Donor
Donor
Posts: 332
Joined: Thu Jan 02, 2020 6:23 pm

Re: Scene texture maps resize policy

Post by juangea »

@dade and @B.Y.O.B. I sent you a file that is crashing under linux

UPDATE: Even a simple new scene with a cube and one texture crashes under linux.
User avatar
Sharlybg
Donor
Donor
Posts: 3101
Joined: Mon Dec 04, 2017 10:11 pm
Location: Ivory Coast

Re: Scene texture maps resize policy

Post by Sharlybg »

380mb saved on the house schminke:
Hause SCH Mem.jpg
Had some crashes with the displacement textures on the ground but
It stop crashing when removed the displacement part of the material.
Support LuxCoreRender project with salts and bounties

Portfolio : https://www.behance.net/DRAVIA
User avatar
Sharlybg
Donor
Donor
Posts: 3101
Joined: Mon Dec 04, 2017 10:11 pm
Location: Ivory Coast

Re: Scene texture maps resize policy

Post by Sharlybg »

Displacement crash it for sure here is the file. To be able to render just disconnect the displacement node from the material output.

Download file
https://drive.google.com/file/d/1xF6-Zv ... sp=sharing
Support LuxCoreRender project with salts and bounties

Portfolio : https://www.behance.net/DRAVIA
juangea
Donor
Donor
Posts: 332
Joined: Thu Jan 02, 2020 6:23 pm

Re: Scene texture maps resize policy

Post by juangea »

I don’t have displacement in my scene, and I even tried with a simple cube and one simple texture connected to a disney shader.

Are you on Linux?
User avatar
Dade
Developer
Developer
Posts: 5672
Joined: Mon Dec 04, 2017 8:36 pm
Location: Italy

Re: Scene texture maps resize policy

Post by Dade »

juangea wrote: Thu Jun 17, 2021 4:01 pm @dade and @B.Y.O.B. I sent you a file that is crashing under linux
I haven't received any file.
juangea wrote: Thu Jun 17, 2021 4:01 pm UPDATE: Even a simple new scene with a cube and one texture crashes under linux.
You may be doing something wrong in the update of files, it is working fine here.
Support LuxCoreRender project with salts and bounties
User avatar
Dade
Developer
Developer
Posts: 5672
Joined: Mon Dec 04, 2017 8:36 pm
Location: Italy

Re: Scene texture maps resize policy

Post by Dade »

Sharlybg wrote: Thu Jun 17, 2021 6:09 pm Displacement crash it for sure here is the file. To be able to render just disconnect the displacement node from the material output.

Download file
https://drive.google.com/file/d/1xF6-Zv ... sp=sharing
I should have fixed this problem.
Support LuxCoreRender project with salts and bounties
Post Reply