Jump to content

Particle Color -> Emission Color?


goldleaf

Recommended Posts

I've been having a similar problem that Denis was having (http://forums.odforce.net/index.php?/topic/14862-particle-color-to-instance-geometry/); I've tried the point()/pointinstance() method eetu and Denis found working, and that file seems to work in the example hip, but I can't get it to work with Emission Shaders.

Is there something inherent in the shader, or the way instances work, that doesn't allow instances to transmit the particle's color as the emission color for that instance?

Thanks!

shader_emission.hipnc

post-3767-133108612563_thumb.jpg

Link to comment
Share on other sites

That's the difference between fast and full instancing, no instancepoint() evaluation is done. Still you can apply materialSOP and create per point attribute to vary shaders' input parameters. It is actually a little waste to make use of instancepoint() on shop parms in any case btw.

Full instancing is also much faster recently in render time, but there is not much to be done to speed up soho part :)

shader_emission_skk.hipnc

Link to comment
Share on other sites

That's the difference between fast and full instancing, no instancepoint() evaluation is done. Still you can apply materialSOP and create per point attribute to vary shaders' input parameters. It is actually a little waste to make use of instancepoint() on shop parms in any case btw.

Full instancing is also much faster recently in render time, but there is not much to be done to speed up soho part :)

Ah! Thank you! I thought I'd tried to use the Material SOP, but I must have put it in the wrong place (if I recall correctly, I think I tried to put it on the instance itself :/)

And thanks for the tips on the instancepoint() expression! Very useful to know!

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...