Skyboxes - apparently a title needs to be 10 characters at least so here they are

Hi All!

So I am following some youtube videos on how to do custom skyboxes - lots of fun - except they don’t work.

They all seem to suggest the same way of doing things as per this vid:

However I can’t get it to work (see additional images in thread as I am new here and apparently I can only put in 1 embedded image until i level up or something)

The Absolute World Position is slightly different - which makes me unsure of which type it is outputting in this vid (and all other vids discussing this) - however no matter which I use (Vector3 or Vector2) and how I rejig things - i still get an error somewhere.

I’ve tried breaking the vector into it’s constituent parts and passing that to the UV - but again - no dice.

How do you do skyboxes in 5.6.1?

The shader error is a conversion one. You are plugin a Vector2 in a place where Vector3 is expected. Try to reconnect your Absolute world position like so and show us the new error that you get:

P.S. This setup works with no errors although the achieved result is questionable:

In general use “Mask” to reduce the vector type size (Vector3 → Vector2) and “Append” to increase it. (Vector2 → Vector3)

OMG…like i swear i tried that and it threw up errors down in the texture param - saying it couldn’t convert a vector3 into a vector2 or summat…

but now…it seems to work fine…

Really appreciate it! I don’t think I would have tried this (again) if you’d not suggested it!

ok next question - why is the texture so zoomed in? and how to i zoom it out? or scale it down? i don’t seem to have access to any texture coordinate stuff or UV

Yea you are plugging some arbitrary values in the UV.

You can get the object’s UVs like so:

Then again it might be easier to explain what are you trying to achieve.

1 Like