Rendering Self Illuminated Sprites?

   3915   1   0
User Avatar
Member
77 posts
Joined: July 2006
Offline
Going through the H9 help files, I found out how to get sprites rendering using a material SHOP, with a VEX Decal and a Mantra: Sprite Procedural plugged into the suboutput. The thing I haven't figured out yet is how to make them self illuminating.

Could someone point me towards something in the docs that would show how to do this?

Thanks!
User Avatar
Member
513 posts
Joined:
Offline
You can plug the Color straight into the Cf output, rather than trough an illumination model then Cf.

If you want shadows+Selfillumination then you'll need an illuminance loop.
- Put out down an Illuminance Loop node
- Connect P and N from the global variables node into it.
- Put a Normalize node between the N's (not sure this is required but my shader has it and it works)
- Connect a constant float with the value of 180 into the Angle plug of the Illuminance Loop, if you dont do this the shadows will disapear at a certain angle.
- Jump inside the Illuminance Loop
- Put down a Shadow node and connect its output “color” into the white plug labeled “next”
- Go back up… you'll see that the color from the shadow has been added to the output plugs of the Illuminance Loop.
- The result of this will be B&W shading representing where there is shadow, you can then multiply this with your color map then plug into Cf. and you're done.

you can do all sorts of things to color the shadow however you want… like plug the shadow into a colormix node.

cheers
Sergio
  • Quick Links