AeroGel-like object

Use this forum for general user support and related questions.
Post Reply
minimal_surface
Posts: 9
Joined: Sat Jul 21, 2018 7:05 pm

AeroGel-like object

Post by minimal_surface » Sat Feb 15, 2020 11:03 am

Hi there

Since I wanted to create an aerogel-like object,
aerogel.jpg
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

User avatar
Dade
Developer
Posts: 4657
Joined: Mon Dec 04, 2017 8:36 pm
Location: Italy

Re: AeroGel-like object

Post by Dade » Sat Feb 15, 2020 12:28 pm

minimal_surface wrote:
Sat Feb 15, 2020 11:03 am
Since I wanted to create an aerogel-like object,
[...]
The following is a scene file. Is there any advice?
It depends on what you want to improve: rendering performance, realism, etc. It could help to post a "Rendering" Vs. "Real picture" if you are unhappy of the result. I'm not sure how exactly an aero-gel is supposed to look :?:
Support LuxCoreRender project with salts and bounties

minimal_surface
Posts: 9
Joined: Sat Jul 21, 2018 7:05 pm

Re: AeroGel-like object

Post by minimal_surface » Sat Feb 15, 2020 12:49 pm

I don't want rigor in the results.
I want to know how to write something like a cloud.

User avatar
Dade
Developer
Posts: 4657
Joined: Mon Dec 04, 2017 8:36 pm
Location: Italy

Re: AeroGel-like object

Post by Dade » Sat Feb 15, 2020 12:55 pm

Support LuxCoreRender project with salts and bounties

minimal_surface
Posts: 9
Joined: Sat Jul 21, 2018 7:05 pm

Re: AeroGel-like object

Post by minimal_surface » Sat Feb 15, 2020 1:13 pm

I also looked at how to use Blender.
Directly, I want to know how to describe homogeneous media in LuxCore SDL.

For example, in the scene file posted earlier, the cube will not be homogenous media and will be drawn in black.
image.png

User avatar
Dade
Developer
Posts: 4657
Joined: Mon Dec 04, 2017 8:36 pm
Location: Italy

Re: AeroGel-like object

Post by Dade » Sat Feb 15, 2020 2:01 pm

minimal_surface wrote:
Sat Feb 15, 2020 1:13 pm
I also looked at how to use Blender.
Directly, I want to know how to describe homogeneous media in LuxCore SDL.

For example, in the scene file posted earlier, the cube will not be homogenous media and will be drawn in black.
image.png
You should use NULL material (not glass) so the surface is totally transparent than define an interior volume, you have defined only the exterior but not the interior.

Something like: https://github.com/LuxCoreRender/LuxCor ... losion.scn (you need to download the referred .vdb from sample models of https://www.openvdb.org/download/ or to replace the heterogeneous volume with an homogeneous one).
Support LuxCoreRender project with salts and bounties

minimal_surface
Posts: 9
Joined: Sat Jul 21, 2018 7:05 pm

Re: AeroGel-like object

Post by minimal_surface » Sat Feb 15, 2020 4:15 pm

I did not know that there are abundant samples in the LuxCore directory.
Finally, I reached the point while comparing the meaning of the words in the explanation with the drawing results.
I would like to enjoy customization, thank you.
image.png
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.001 0.001 0.001
scene.volumes.vol_air.scattering = 0.001 0.001 0.001
scene.volumes.vol_air.asymmetry = 0.0 0.0 0.0
scene.volumes.vol_air.multiscattering = 1
################################################################################
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 = null
scene.materials.glass-mid.kt = 1 1 1
#scene.materials.glass-mid.kr = 0.9 0.9 0.9
scene.materials.glass-mid.volume.interior = vol_air
#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.glass-mid.material = glass-mid
scene.objects.glass-mid.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

Post Reply