Orient a texture in screen space but depending on its bounding box

I would like to generate the uv coordinates in order to orient a texture perpendicular to the camera vector but within the extends of the object

the node “BoundingBoxBased_0-1_UVW” does something similar but orients the texture in three cartesian base planes; how can it be done in screen space but also depended on the dimension of the object?

anybody please?

I tried to do it myself but got stuck at the last step of making the texture move with the actor. lol

Anyways, found this:
https://twitter.com/JKashaar/status/1047979071609757702

Tested and it works:
TextureLookAtCamera

Hope it helps.

4 Likes

that looks pretty much what I’m looking for! thanks a lot! will try it after lunch!

Doesn’t it just amount to having a sprite?..

1 Like

It is, but instead of having a camera facing card it’s a camera facing texture on a volumetric 3d mesh, where only the texture is camera facing so you can still get a sense for the shape of the mesh

I’ve used it in the past mainly for VFX that indicate something to the player, in my case I had a panning striped material that showed where an object was going to be placed. Just using a sprite wouldn’t have conveyed the shape of the object. Having the coordinates scale with the object position gives you a better sense of the depth.

2 Likes

works perfect! thank you and also to @JKashaar (on twitter) of course!

1 Like