Jump to content

Sign in to follow this  
Skote

Texture facing camera or be static?

Recommended Posts

Hi, trying to explain what I'm trying to achieve:

 

* I have a rotating 3D object (a 3D scan with a material) and a static camera

* I want to add a gradient to the alpha channel that makes the material transparent if it's close to the camera or far from the camera, but opaque at a specific distance

* I tried doing this with falloff set to camera but it didn't work. Maybe I'm just missing something in the falloff settings?

* I can't really do it with just rotating the UV in the opposite direction, since I need the material of the object to rotate with it

* So essentially: I want the object and it's material to rotate, but the gradient for the alpha channel to be static or always face the camera

 

Does it make sense? Sorry, I'm a bit tired.

 

Thanks for your help!

DesiredAlpha.png

Material.png

Share this post


Link to post

No, that does makes sense 🙂 You need a different mapping for the alpha channel than you need for the rest of the material, which you should be able to do with  projection shader. Not that I have ever tried that in this context, but it should work in theory - you should need flat mapping on Y+ for the alpha and UV mapping for the rest of it... I'll do a few tests myself if I get time later...

 

CBR

Share this post


Link to post

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

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.

Sign in to follow this  

  • Recently Browsing   0 members

    No registered users viewing this page.

Latest Topics

Latest Comments

×
×
  • Create New...