AeroGel-like object
Posted: Sat Feb 15, 2020 11:03 am
Hi there
Since I wanted to create an aerogel-like object, I first read the LuxCore SDL Reference Manual because I want to handle the scene file programmably.
Also, when I checked the forum posts, I found an explanation using Blender. If I use Blender, I checked if an exporter was available.
Finally, I plan to use the volume settings of 3-spheres in LuxCoreTestScenes.
The following is a scene file. Is there any advice?
scene.camera.lookat = -1390.0 -4000. 1365.0 -1390.0 1000. 1365.0
scene.camera.fieldofview = 39.1463
################################################################################
scene.volumes.vol_air.type = homogeneous
scene.volumes.vol_air.absorption = 0.1 0.1 0.1
scene.volumes.vol_air.scattering = 0.04 0.04 0.04
scene.volumes.vol_air.asymmetry = 0.0 0.0 0.0
scene.volumes.vol_air.multiscattering = 0
################################################################################
scene.materials.Khaki.type = matte
scene.materials.Khaki.kd = 0.5 0.5 0.5
scene.materials.HalveRed.type = matte
scene.materials.HalveRed.kd = 0.70003 0. 0.
scene.materials.DarkGreen.type = matte
scene.materials.DarkGreen.kd = 0. 0.4 0.
scene.materials.Light.type = matte
scene.materials.Light.emission = 10. 10. 10.
scene.materials.Light.kd = 0.75 0.75 0.75
scene.materials.glass-mid.type = glass
scene.materials.glass-mid.kt = 0.9 0.9 0.9
scene.materials.glass-mid.kr = 0.9 0.9 0.9
scene.materials.glass-mid.volume.exterior = vol_air
scene.materials.glass-mid.cauchyc = 0.25
################################################################################
scene.objects.Khaki.material = Khaki
scene.objects.Khaki.ply = C:\LuxCoreRender\LuxCoreTestScenes\scenes\cubic_cloud\Khaki.ply
scene.objects.HalveRed.material = HalveRed
scene.objects.HalveRed.ply = C:\LuxCoreRender\LuxCoreTestScenes\scenes\cubic_cloud\HalveRed.ply
scene.objects.DarkGreen.material = DarkGreen
scene.objects.DarkGreen.ply = C:\LuxCoreRender\LuxCoreTestScenes\scenes\cubic_cloud\DarkGreen.ply
scene.objects.Cloud.material = glass-mid
scene.objects.Cloud.ply = C:\LuxCoreRender\LuxCoreTestScenes\scenes\cubic_cloud\cube.ply
################################################################################
scene.objects.Grey.material = Light
scene.objects.Grey.ply = C:\LuxCoreRender\LuxCoreTestScenes\scenes\cubic_cloud\Grey.ply
Since I wanted to create an aerogel-like object, I first read the LuxCore SDL Reference Manual because I want to handle the scene file programmably.
Also, when I checked the forum posts, I found an explanation using Blender. If I use Blender, I checked if an exporter was available.
Finally, I plan to use the volume settings of 3-spheres in LuxCoreTestScenes.
The following is a scene file. Is there any advice?
scene.camera.lookat = -1390.0 -4000. 1365.0 -1390.0 1000. 1365.0
scene.camera.fieldofview = 39.1463
################################################################################
scene.volumes.vol_air.type = homogeneous
scene.volumes.vol_air.absorption = 0.1 0.1 0.1
scene.volumes.vol_air.scattering = 0.04 0.04 0.04
scene.volumes.vol_air.asymmetry = 0.0 0.0 0.0
scene.volumes.vol_air.multiscattering = 0
################################################################################
scene.materials.Khaki.type = matte
scene.materials.Khaki.kd = 0.5 0.5 0.5
scene.materials.HalveRed.type = matte
scene.materials.HalveRed.kd = 0.70003 0. 0.
scene.materials.DarkGreen.type = matte
scene.materials.DarkGreen.kd = 0. 0.4 0.
scene.materials.Light.type = matte
scene.materials.Light.emission = 10. 10. 10.
scene.materials.Light.kd = 0.75 0.75 0.75
scene.materials.glass-mid.type = glass
scene.materials.glass-mid.kt = 0.9 0.9 0.9
scene.materials.glass-mid.kr = 0.9 0.9 0.9
scene.materials.glass-mid.volume.exterior = vol_air
scene.materials.glass-mid.cauchyc = 0.25
################################################################################
scene.objects.Khaki.material = Khaki
scene.objects.Khaki.ply = C:\LuxCoreRender\LuxCoreTestScenes\scenes\cubic_cloud\Khaki.ply
scene.objects.HalveRed.material = HalveRed
scene.objects.HalveRed.ply = C:\LuxCoreRender\LuxCoreTestScenes\scenes\cubic_cloud\HalveRed.ply
scene.objects.DarkGreen.material = DarkGreen
scene.objects.DarkGreen.ply = C:\LuxCoreRender\LuxCoreTestScenes\scenes\cubic_cloud\DarkGreen.ply
scene.objects.Cloud.material = glass-mid
scene.objects.Cloud.ply = C:\LuxCoreRender\LuxCoreTestScenes\scenes\cubic_cloud\cube.ply
################################################################################
scene.objects.Grey.material = Light
scene.objects.Grey.ply = C:\LuxCoreRender\LuxCoreTestScenes\scenes\cubic_cloud\Grey.ply