Jump to content

Uniform Volume Shader with specular/reflection


asnowcappedromance

Recommended Posts

Hey guys,

I'm trying to render points as volumes using the uniform volume shader with specularity/reflection.
I calculated a gradient attribute on my points (to emulate normals) and plugged that into my shader, but I'm having no success as all.
The same technique works if I convert my points to a volume and then use a gradient vector field, however I'd like to get it to work without having to convert my points into a volume.

Attached a screenshot of my current shader and also a hip file.

Any ideas how to get that to work?

Thanks,

Manu 

uniform_volume_spec_material.JPG

uniform_volume_spec_test.hiplc

Link to comment
Share on other sites

woooow 5 days and not a single reply, what's up Odforce?

Turns out all I had to do was to transform the point gradient attribute from world to camera space and use the PBR Metallic instead of the PBR reflect. Works really well.
Would love to know what's wrong with the PBR Reflect though, why isn't that working as expected? It does if I'm using volumes and a vector3 gradient field ...

Thanks to Andrea Sbabo for the tip to use PBR metallic!

  • Like 3
Link to comment
Share on other sites

  • 3 years later...
On 2/12/2018 at 11:36 PM, asnowcappedromance said:

woooow 5 days and not a single reply, what's up Odforce?

Turns out all I had to do was to transform the point gradient attribute from world to camera space and use the PBR Metallic instead of the PBR reflect. Works really well.
Would love to know what's wrong with the PBR Reflect though, why isn't that working as expected? It does if I'm using volumes and a vector3 gradient field ...

Thanks to Andrea Sbabo for the tip to use PBR metallic!

hey Manuel - can share a simple hip file plz or explain a little more? 

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...