Can't get Embergen VDB shading right AT ALL...

Maxon Cinema 4D (Export script developed by abstrax, Integrated Plugin developed by aoktar)

Moderators: ChrisHekman, aoktar

Jukyan
Licensed Customer
Posts: 28
Joined: Thu Nov 03, 2016 3:18 pm

Hi there,

For an important theater show I must render a dragon spitting fire simulation,
I have a part of the .VDB here :
julienbach.de/files/SpitFire.7z

But I can't get the shading right, I did many tuts embergen/octane,
and i never get the nice shading, i just get ugly overburned stuff and crazy extreme gradient values to get anything its depressing...

I just need it to look like good normal basic flames with a little bit of smoke like the embergen viewport here :
julienbach.de/files/SpitFire04.mp4

Can someone help me and try and if you get something close to send me the material ?!
That'd be super helpful, im stuck with a very bad look and my deadline is close :(
User avatar
bepeg4d
Octane Guru
Posts: 10356
Joined: Wed Jun 02, 2010 6:02 am
Location: Italy
Contact:

Hi,
please try with this version, and play with max Value in Volume Gradient node in Emission, and with Scatter value, to have more or less smoke:
SpitFire_b.zip
(31.79 KiB) Downloaded 51 times
IMG_5077.jpeg
ciao,
Beppe
Jukyan
Licensed Customer
Posts: 28
Joined: Thu Nov 03, 2016 3:18 pm

Thank you Beppe for your quick reaction !
At least something thats looks like a fire shows up in the viewport...
Now I can't get it the other way around, like in the embergen example : its currently the aged part of the fire that gets emissive where it should be smoke, and its the young part that shouldbe flame-ish that looks like smoke...
Can't get it around by flipping the gradient... What a mess that thing is its driving me crazy >.<
By any chance, can you have something that just look like a normal flaming stream and not like some gaz explosion ?! (like in the embergen example ??
Im sorry but i've been trying hard for some time and just never got anything better these settings are really counter intuitive.
skientia
Licensed Customer
Posts: 264
Joined: Tue Mar 12, 2024 1:50 am
Contact:

The unsatisfactory results seem to be missing from the post (not attached as image files). It would be helpful to view these render outputs.

The demonstrations on this Octane VDB page is utilizing Embergen free demo files for the Pyro section, however it's not the same data set.

There are some "tips" that may be helpful or may not be of any aid.

Image
skientia
Licensed Customer
Posts: 264
Joined: Tue Mar 12, 2024 1:50 am
Contact:

[Removed duplicate]
Last edited by skientia on Fri May 23, 2025 3:47 pm, edited 5 times in total.
skientia
Licensed Customer
Posts: 264
Joined: Tue Mar 12, 2024 1:50 am
Contact:

Look 04, with "smoke" and a different frame (0100)
SpitFire-vdb-look-4.jpeg
SpitFire-vdb-look-4-frame-0100.jpeg
Path tracing kernel, high enough Scatter Depth, AgX Punchy are some of the most important settings.

Material group (ORBX "as code"):

Code: Select all

<?xml version='1.0' encoding='utf-8'?>
<OCS2 version='14020000'>
 <graph id='1' type='1' name='clipboard'>
  <graph id='3308' type='1' name='vdb-shading-look-04' position='424.25 -2'>
   <attr name='color' type='8'>1 1 1</attr>
   <node id='3310' type='98' name='Volume medium' position='-101.77777 56.5'>
    <attr name='compatibilityVersion' type='2'>13000200</attr>
    <attr name='volumeUsePercentageStep' type='1'>0</attr>
    <pin name='scale'>
     <node id='3311' type='6'>
      <attr name='value' type='8'>0.175 0 0</attr>
     </node>
    </pin>
    <pin name='rayMarchStepPercent'>
     <node id='3312' type='6'>
      <attr name='value' type='8'>2.5 0 0</attr>
     </node>
    </pin>
    <pin name='shadowRayMarchStepPercent'>
     <node id='3313' type='6'>
      <attr name='value' type='8'>1 0 0</attr>
     </node>
    </pin>
    <pin name='stepIncrease'>
     <node id='3314' type='6'>
      <attr name='value' type='8'>0 0 0</attr>
     </node>
    </pin>
    <pin name='useRayStepLengthForShadowRays'>
     <node id='3315' type='11'>
      <attr name='value' type='1'>1</attr>
     </node>
    </pin>
    <pin name='singleScatterFactor'>
     <node id='3316' type='6'>
      <attr name='value' type='8'>100 0 0</attr>
     </node>
    </pin>
    <pin name='volumePadding'>
     <node id='3317' type='6'>
      <attr name='value' type='8'>0 0 0</attr>
     </node>
    </pin>
    <pin name='absorption'>
     <node id='3318' type='33'>
      <attr name='value' type='8'>1 1 1</attr>
     </node>
    </pin>
    <pin name='invertAbsorption'>
     <node id='3319' type='11'>
      <attr name='value' type='1'>0</attr>
     </node>
    </pin>
    <pin name='scattering'>
     <node id='3320' type='33'>
      <attr name='value' type='8'>1 1 1</attr>
     </node>
    </pin>
    <pin name='scatteringRamp'>
     <node id='3321' type='95'>
      <attr name='controlpoints' type='2'>0</attr>
      <pin name='gradientInterpolationType'>
       <node id='3322' type='57'>
        <attr name='value' type='2'>2</attr>
       </node>
      </pin>
      <pin name='gradientInterpolationColorSpace'>
       <node id='3323' type='57'>
        <attr name='value' type='2'>0</attr>
       </node>
      </pin>
      <pin name='min'>
       <node id='3324' type='6'>
        <attr name='value' type='8'>0.0049999999 0.0049999999 0.0049999999</attr>
       </node>
      </pin>
      <pin name='max'>
       <node id='3325' type='6'>
        <attr name='value' type='8'>1 1 1</attr>
       </node>
      </pin>
      <pin name='maxGridValue'>
       <node id='3326' type='6'>
        <attr name='value' type='8'>0.025 0 0</attr>
       </node>
      </pin>
     </node>
    </pin>
    <pin name='phase'>
     <node id='3327' type='60'>
      <pin name='scattering_direction'>
       <node id='3328' type='6'>
        <attr name='value' type='8'>0 0 0</attr>
       </node>
      </pin>
     </node>
    </pin>
    <pin name='emission'>
     <node id='3329' type='54'>
      <pin name='efficiency or texture'>
       <node id='3330' type='32'>
        <pin name='wavelength'>
         <node id='3331' type='31'>
          <attr name='value' type='6'>0.80000001</attr>
         </node>
        </pin>
        <pin name='width'>
         <node id='3332' type='31'>
          <attr name='value' type='6'>0.07</attr>
         </node>
        </pin>
        <pin name='power'>
         <node id='3333' type='31'>
          <attr name='value' type='6'>1</attr>
         </node>
        </pin>
       </node>
      </pin>
      <pin name='power'>
       <node id='3334' type='6'>
        <attr name='value' type='8'>1 0 0</attr>
       </node>
      </pin>
      <pin name='surfaceBrightness'>
       <node id='3335' type='11'>
        <attr name='value' type='1'>0</attr>
       </node>
      </pin>
      <pin name='keepInstancePower'>
       <node id='3336' type='11'>
        <attr name='value' type='1'>0</attr>
       </node>
      </pin>
      <pin name='doubleSided'>
       <node id='3337' type='11'>
        <attr name='value' type='1'>0</attr>
       </node>
      </pin>
      <pin name='distribution'>
       <node id='3338' type='31'>
        <attr name='value' type='6'>1</attr>
       </node>
      </pin>
      <pin name='sampling_rate'>
       <node id='3339' type='6'>
        <attr name='value' type='8'>1 0 0</attr>
       </node>
      </pin>
      <pin name='lightPassId'>
       <node id='3340' type='9'>
        <attr name='value' type='4'>1 0 0</attr>
       </node>
      </pin>
      <pin name='illumination'>
       <node id='3341' type='11'>
        <attr name='value' type='1'>1</attr>
       </node>
      </pin>
      <pin name='visibleOnSpecular'>
       <node id='3342' type='11'>
        <attr name='value' type='1'>1</attr>
       </node>
      </pin>
      <pin name='visibleOnScatteringVolumes'>
       <node id='3343' type='11'>
        <attr name='value' type='1'>1</attr>
       </node>
      </pin>
      <pin name='transparentEmission'>
       <node id='3344' type='11'>
        <attr name='value' type='1'>1</attr>
       </node>
      </pin>
      <pin name='castShadows'>
       <node id='3345' type='11'>
        <attr name='value' type='1'>1</attr>
       </node>
      </pin>
     </node>
    </pin>
    <pin name='emissionRamp' connect='3346'/>
   </node>
   <node id='3346' type='95' name='Volume gradient' position='28.222229 0'>
    <attr name='controlpoints' type='2'>0</attr>
    <pin name='gradientInterpolationType'>
     <node id='3347' type='57'>
      <attr name='value' type='2'>3</attr>
     </node>
    </pin>
    <pin name='gradientInterpolationColorSpace'>
     <node id='3348' type='57'>
      <attr name='value' type='2'>0</attr>
     </node>
    </pin>
    <pin name='min'>
     <node id='3349' type='6'>
      <attr name='value' type='8'>0 0 0</attr>
     </node>
    </pin>
    <pin name='max'>
     <node id='3350' type='6'>
      <attr name='value' type='8'>1 1 1</attr>
     </node>
    </pin>
    <pin name='maxGridValue' connect='3351'/>
   </node>
   <node id='3351' type='6' name='FLOAT_SLIDER' position='73.555542 -56.5'>
    <attr name='value' type='8'>15000 0 0</attr>
   </node>
   <node id='3309' type='30013' name='Volume medium' position='-101.77777 156.5'>
    <attr name='group' type='10'></attr>
    <attr name='description' type='10'></attr>
    <pin name='input' connect='3310'/>
   </node>
  </graph>
 </graph>
</OCS2>
Jukyan
Licensed Customer
Posts: 28
Joined: Thu Nov 03, 2016 3:18 pm

Alright,
so see in the picture here ,
whatever how i play with emissive gradient, it affects the tail, the smoke part...
Image


I neet the blowtorch to be like fire, like this :
Image
and its just immossible to get anything near...
what do I get wrong ?!
skientia
Licensed Customer
Posts: 264
Joined: Tue Mar 12, 2024 1:50 am
Contact:

Here's a slightly tweaked version, closed to the reference. Render viewport (Standalone 2025) and ORBX code material group attached.

The key is in the ramps, provided that the rest is accordingly set and in place. Values may be off (no context) but can be proportionally tweaked according to the project file.

ORBX of the whole demo project file can be made available if necessary.
Jukyan-SpitFire-update.jpg

Code: Select all

<?xml version='1.0' encoding='utf-8'?>
<OCS2 version='14020000'>
 <graph id='1' type='1' name='clipboard'>
  <graph id='100' type='1' name='vdb-shading-look-05' position='527.25 88'>
   <attr name='color' type='8'>1 1 1</attr>
   <node id='102' type='98' name='Volume medium' position='-101.77777 56.5'>
    <attr name='compatibilityVersion' type='2'>13000200</attr>
    <attr name='volumeUsePercentageStep' type='1'>0</attr>
    <pin name='scale'>
     <node id='103' type='6'>
      <attr name='value' type='8'>0.175 0 0</attr>
     </node>
    </pin>
    <pin name='rayMarchStepPercent'>
     <node id='104' type='6'>
      <attr name='value' type='8'>2.5 0 0</attr>
     </node>
    </pin>
    <pin name='shadowRayMarchStepPercent'>
     <node id='105' type='6'>
      <attr name='value' type='8'>1 0 0</attr>
     </node>
    </pin>
    <pin name='stepIncrease'>
     <node id='106' type='6'>
      <attr name='value' type='8'>0 0 0</attr>
     </node>
    </pin>
    <pin name='useRayStepLengthForShadowRays'>
     <node id='107' type='11'>
      <attr name='value' type='1'>1</attr>
     </node>
    </pin>
    <pin name='singleScatterFactor'>
     <node id='108' type='6'>
      <attr name='value' type='8'>50 0 0</attr>
     </node>
    </pin>
    <pin name='volumePadding'>
     <node id='109' type='6'>
      <attr name='value' type='8'>0 0 0</attr>
     </node>
    </pin>
    <pin name='absorption'>
     <node id='110' type='33'>
      <attr name='value' type='8'>1 1 1</attr>
     </node>
    </pin>
    <pin name='invertAbsorption'>
     <node id='111' type='11'>
      <attr name='value' type='1'>0</attr>
     </node>
    </pin>
    <pin name='scattering'>
     <node id='112' type='33'>
      <attr name='value' type='8'>1 1 1</attr>
     </node>
    </pin>
    <pin name='scatteringRamp'>
     <node id='113' type='95'>
      <attr name='controlpoints' type='2'>0</attr>
      <pin name='gradientInterpolationType'>
       <node id='114' type='57'>
        <attr name='value' type='2'>2</attr>
       </node>
      </pin>
      <pin name='gradientInterpolationColorSpace'>
       <node id='115' type='57'>
        <attr name='value' type='2'>0</attr>
       </node>
      </pin>
      <pin name='min'>
       <node id='116' type='6'>
        <attr name='value' type='8'>0.0049999999 0.0049999999 0.0049999999</attr>
       </node>
      </pin>
      <pin name='max'>
       <node id='117' type='6'>
        <attr name='value' type='8'>1 1 1</attr>
       </node>
      </pin>
      <pin name='maxGridValue'>
       <node id='118' type='6'>
        <attr name='value' type='8'>0.025 0 0</attr>
       </node>
      </pin>
     </node>
    </pin>
    <pin name='phase'>
     <node id='119' type='60'>
      <pin name='scattering_direction'>
       <node id='120' type='6'>
        <attr name='value' type='8'>0.23900001 0 0</attr>
       </node>
      </pin>
     </node>
    </pin>
    <pin name='emission'>
     <node id='121' type='54'>
      <pin name='efficiency or texture'>
       <node id='122' type='32'>
        <pin name='wavelength'>
         <node id='123' type='31'>
          <attr name='value' type='6'>0.80000001</attr>
         </node>
        </pin>
        <pin name='width'>
         <node id='124' type='31'>
          <attr name='value' type='6'>0.07</attr>
         </node>
        </pin>
        <pin name='power'>
         <node id='125' type='31'>
          <attr name='value' type='6'>1</attr>
         </node>
        </pin>
       </node>
      </pin>
      <pin name='power'>
       <node id='126' type='6'>
        <attr name='value' type='8'>1 0 0</attr>
       </node>
      </pin>
      <pin name='surfaceBrightness'>
       <node id='127' type='11'>
        <attr name='value' type='1'>0</attr>
       </node>
      </pin>
      <pin name='keepInstancePower'>
       <node id='128' type='11'>
        <attr name='value' type='1'>0</attr>
       </node>
      </pin>
      <pin name='doubleSided'>
       <node id='129' type='11'>
        <attr name='value' type='1'>0</attr>
       </node>
      </pin>
      <pin name='distribution'>
       <node id='130' type='31'>
        <attr name='value' type='6'>1</attr>
       </node>
      </pin>
      <pin name='sampling_rate'>
       <node id='131' type='6'>
        <attr name='value' type='8'>1 0 0</attr>
       </node>
      </pin>
      <pin name='lightPassId'>
       <node id='132' type='9'>
        <attr name='value' type='4'>1 0 0</attr>
       </node>
      </pin>
      <pin name='illumination'>
       <node id='133' type='11'>
        <attr name='value' type='1'>1</attr>
       </node>
      </pin>
      <pin name='visibleOnSpecular'>
       <node id='134' type='11'>
        <attr name='value' type='1'>1</attr>
       </node>
      </pin>
      <pin name='visibleOnScatteringVolumes'>
       <node id='135' type='11'>
        <attr name='value' type='1'>1</attr>
       </node>
      </pin>
      <pin name='transparentEmission'>
       <node id='136' type='11'>
        <attr name='value' type='1'>1</attr>
       </node>
      </pin>
      <pin name='castShadows'>
       <node id='137' type='11'>
        <attr name='value' type='1'>1</attr>
       </node>
      </pin>
     </node>
    </pin>
    <pin name='emissionRamp' connect='138'/>
   </node>
   <node id='138' type='95' name='Volume gradient' position='28.222229 0'>
    <attr name='controlpoints' type='2'>3</attr>
    <pin name='gradientInterpolationType'>
     <node id='139' type='57'>
      <attr name='value' type='2'>3</attr>
     </node>
    </pin>
    <pin name='gradientInterpolationColorSpace'>
     <node id='140' type='57'>
      <attr name='value' type='2'>1</attr>
     </node>
    </pin>
    <pin name='min'>
     <node id='141' type='6'>
      <attr name='value' type='8'>0 0 0</attr>
     </node>
    </pin>
    <pin name='max'>
     <node id='142' type='6'>
      <attr name='value' type='8'>0 0 0</attr>
     </node>
    </pin>
    <pin name='maxGridValue' connect='149'/>
    <pin name='Position 1' dynamicType='2'>
     <node id='143' type='6' name='Float value'>
      <attr name='value' type='8'>0.047325104 0 0</attr>
     </node>
    </pin>
    <pin name='Value 1' dynamicType='2'>
     <node id='144' type='6' name='Float value'>
      <attr name='value' type='8'>0.025 0.025 0.025</attr>
     </node>
    </pin>
    <pin name='Position 2' dynamicType='2'>
     <node id='145' type='6' name='Float value'>
      <attr name='value' type='8'>0.055555556 0 0</attr>
     </node>
    </pin>
    <pin name='Value 2' dynamicType='2'>
     <node id='146' type='6' name='Float value'>
      <attr name='value' type='8'>0 0 0</attr>
     </node>
    </pin>
    <pin name='Position 3' dynamicType='2'>
     <node id='147' type='6' name='Float value'>
      <attr name='value' type='8'>0.020576132 0 0</attr>
     </node>
    </pin>
    <pin name='Value 3' dynamicType='2'>
     <node id='148' type='6' name='Float value'>
      <attr name='value' type='8'>0 0 0</attr>
     </node>
    </pin>
   </node>
   <node id='149' type='6' name='FLOAT_SLIDER' position='73.555542 -56.5'>
    <attr name='value' type='8'>68200 0 0</attr>
   </node>
   <node id='101' type='30013' name='Volume medium' position='-101.77777 156.5'>
    <attr name='group' type='10'></attr>
    <attr name='description' type='10'></attr>
    <pin name='input' connect='102'/>
   </node>
  </graph>
 </graph>
</OCS2>
skientia
Licensed Customer
Posts: 264
Joined: Tue Mar 12, 2024 1:50 am
Contact:

If copying the ORBX does not result in similar or identical results, it may be the VDB import parameters (default in Standalone, with all three loaded: density, flames, temperature).
Jukyan
Licensed Customer
Posts: 28
Joined: Thu Nov 03, 2016 3:18 pm

Allright,
thanks for the effort !
But these are all too smokey and not flamey , especially at the source...
This effect is important to get right,
at the end I tried with redshift and (unfortunately) got a much closer look... without headache.
it still sucks compared to the Embergen sim though...
http://julienbach.de/files/DragonSpitFire_POV9_01.mp4
Post Reply

Return to “Maxon Cinema 4D”