0
Completed

How to fix the Screen Pos UVs to not resize with the position of the camera?

Juan De La Torre 9 years ago updated by Freya Holmér (Developer) 9 years ago 1

Hi there!


I was wondering if is possible to fix the Screen Pos UVs at some point so they don't resize depending on the position of the camera.


Image 510


This is how it looks like when the camera is close to the object:


Image 511


And this is how it looks when I'm not that close..


Image 512


Any ideas?


Thanks guys!

Answer

+1
Answer
Completed

This is a tricky one, because if you do that, it's no longer screen UVs in a way.
But you can probably get the effect you need using the object position node, the view position node and math :)

You can start by scaling it by the distance to the camera, and then you need to somehow offset it based on *where* in the screen the object is. I'd head to the forums to ask people for details on this

+1
Answer
Completed

This is a tricky one, because if you do that, it's no longer screen UVs in a way.
But you can probably get the effect you need using the object position node, the view position node and math :)

You can start by scaling it by the distance to the camera, and then you need to somehow offset it based on *where* in the screen the object is. I'd head to the forums to ask people for details on this