ReflectionVector node - coercion failed parameters.reflectionvector: float3 float2

Hi, I’m trying to set up custom cube maps in the material editor and I’m getting this error:

I have had coercion failed errors before and I normally use mask and append:

The error still occurs. I have also tried just masking red and green. Any ideas?

Thanks!

https://docs.unrealengine.com/latest/INT/Engine/Rendering/Materials/ExpressionReference/Vector/index.html#reflectionvectorws

Mask R and G from reflection vector and then plug it to the texture’s UV input.

Thanks a lot, Jacky. That fixed the error, even though the cubemap itself looks crazy. Perhaps because my UVs aren’t set up for cubemaps. CameraVectorWS might be more suitable for what I need.

Hey. I stopped using the ReflectionVectorWS node because it wasn’t actually what I needed. I just wanted to pan the texture depending on the direction you were looking at it. I eventually found 2 solutions:

Pan up and down for shiny hair band:

Pan up, down and side to side for fake reflections on a sphere:

Hope that helps!

Hi! I had a similar setup for an experiment on achieving a mirror material, but i cannot seem to find the way to control the coordinates of the reflectionvectorWS node, and if you look in your renders, they have an offset i cannot adress. have you found any work around this?

thanks in advance!!!

Thanks Snow! I will try it as soon as i can and if i find something interesting i will share it right away.