using point colour as emissive (age)

   2139   7   1
User Avatar
Member
34 posts
Joined: Aug. 2015
Offline
Hey, if I already have a point colour establish how do I use a principal shader with emissive and base that off age? So the longer the lifespan of the pop is the less emissive it is. And that it keeps the colours and not that one set colour.
User Avatar
Member
67 posts
Joined: Oct. 2018
Offline
Hi!

actually You can use any attribute. But if that is coming from a particle network it is @age and @life (point attributes)
if (@age/@life==1){ // a better test would be (1-@age/@life)<0 (Rounding problems)
    // particle will die next frame
}

// fade the Basecolor (or Basecolour) to black based on particles life
v@emitcolor = (1-@age/@life) * v@Basecolor;

@emitint = (1-@age/@life) * @basicintensity; 

Anyways, you could also use a “countdown” approach, where you decrease the number of frames your particle has to live.

HTH!
Edited by GOgraphR - Dec. 2, 2019 09:45:57
User Avatar
Member
34 posts
Joined: Aug. 2015
Offline
GOgraphR
Hi!

actually You can use any attribute. But if that is coming from a particle network it is @age and @life (point attributes)
if (@age/@life==1){ // a better test would be (1-@age/@life)<0 (Rounding problems)
    // particle will die next frame
}

// fade the Basecolor (or Basecolour) to black based on particles life
v@emitcolor = (1-@age/@life) * v@Basecolor;

@emitint = (1-@age/@life) * @basicintensity; 

Anyways, you could also use a “countdown” approach, where you decrease the number of frames your particle has to live.

HTH!
Sorry for the late reply, thank you I will try this!
User Avatar
Member
34 posts
Joined: Aug. 2015
Offline
GOgraphR
Hi!

actually You can use any attribute. But if that is coming from a particle network it is @age and @life (point attributes)
if (@age/@life==1){ // a better test would be (1-@age/@life)<0 (Rounding problems)
    // particle will die next frame
}

// fade the Basecolor (or Basecolour) to black based on particles life
v@emitcolor = (1-@age/@life) * v@Basecolor;

@emitint = (1-@age/@life) * @basicintensity; 

Anyways, you could also use a “countdown” approach, where you decrease the number of frames your particle has to live.

HTH!
Soo…it doesn't work ;_; there's still no emission. The colours are not bright or glowing they are just normal. Am I putting the wrangle in the right place?
Edited by Cat cay - Dec. 15, 2019 06:58:19

Attachments:
ship_04.hip (852.0 KB)

User Avatar
Member
34 posts
Joined: Aug. 2015
Offline
GOgraphR
Hi!

actually You can use any attribute. But if that is coming from a particle network it is @age and @life (point attributes)
if (@age/@life==1){ // a better test would be (1-@age/@life)<0 (Rounding problems)
    // particle will die next frame
}

// fade the Basecolor (or Basecolour) to black based on particles life
v@emitcolor = (1-@age/@life) * v@Basecolor;

@emitint = (1-@age/@life) * @basicintensity; 

Anyways, you could also use a “countdown” approach, where you decrease the number of frames your particle has to live.

HTH!
It only changes the colour, not the emission…Any help with how to kill off emission with age while using the assigned pointcolour would be great.
Edited by Cat cay - Dec. 21, 2019 22:46:22
User Avatar
Member
67 posts
Joined: Oct. 2018
Offline
It is almost not “visible” have a look at the attached picnic…
Use the “Image->Inspect image” in the Image viewer.

The leftmost has an emitint of 5 while the rightmost has a value of 10k…

An other option might be to use “Geometry Light” (EmitInt.004.picnc)
Edited by GOgraphR - Dec. 22, 2019 21:20:48

Attachments:
EmitInt.003.picnc (3.0 MB)
emitInt.hipnc (658.8 KB)
EmitInt.004.picnc (3.3 MB)
emitInt.hipnc (667.9 KB)

User Avatar
Member
34 posts
Joined: Aug. 2015
Offline
GOgraphR
It is almost not “visible” have a look at the attached picnic…
Use the “Image->Inspect image” in the Image viewer.

The leftmost has an emitint of 5 while the rightmost has a value of 10k…

An other option might be to use “Geometry Light” (EmitInt.004.picnc)
I'm sorry but how do i open a picnc? I can't find “Image” or “Inspect Image” and it's driving me up the wall as I believe it's somewhere obvious but I can't find anywhere online telling me where it is. I've tried looking on the Mplay but no success.
User Avatar
Member
67 posts
Joined: Oct. 2018
Offline
The Image viewer is the one that starts, when you render interactive with houdini, it is usually installed in the same “program group” where you start Houdini from. A picnc is just a pic, but only from the Appretnice version.




BTW: 23 hours left!!
  • Quick Links