Search in
Sort by:

Question Status:

Search help

  • Simple searches use one or more words. Separate the words with spaces (cat dog) to search cat,dog or both. Separate the words with plus signs (cat +dog) to search for items that may contain cat but must contain dog.
  • You can further refine your search on the search results page, where you can search by keywords, author, topic. These can be combined with each other. Examples
    • cat dog --matches anything with cat,dog or both
    • cat +dog --searches for cat +dog where dog is a mandatory term
    • cat -dog -- searches for cat excluding any result containing dog
    • [cats] —will restrict your search to results with topic named "cats"
    • [cats] [dogs] —will restrict your search to results with both topics, "cats", and "dogs"

how to stop skysphere material resizing

How can I stop my background hdri material in my skysphere from resizing depending on how close the camera is to it?

So I want the background image to look exactly the same regardless of how close the player is to it, how do I do this?

I've tried resizing the skysphere up to 4.0 it does nothing at all!

Product Version: UE 4.15
more ▼

asked Sep 03 '18 at 02:37 PM in Rendering

avatar image

51 6 14 23

(comments are locked)
10|2000 characters needed characters left
Viewable by all users

1 answer: sort voted first

Try this material on your sphere:

alt text

Constant3Vector > ReflectionVectorWS > TextureSampleParameterCube (your cubemap goes here) > Emissive Color

This way you only have to make sure that your skysphere is large enough so that the camera doesn't go outside of it when playing, but the texture will look the same regardless of distance.

skysphere.png (93.8 kB)
more ▼

answered Sep 05 '18 at 08:45 AM

avatar image

46 1 2

avatar image Delta1 Sep 24 '18 at 08:58 PM

Zoomcns would you know how to make the skysphere rotate so that a point such as a mountain in the image always faces north in relation to the player?

avatar image zoomcns Sep 25 '18 at 07:23 AM

If you put your skysphere with the above material into a blueprint and put that into your level, you will be able to rotate it.

avatar image Delta1 Sep 25 '18 at 07:45 AM

Would you know how to remove parallax from the player camera viewing the skysphere, depending on player position in the map?

avatar image zoomcns Sep 25 '18 at 08:23 AM

Sorry I'm not sure I understand your question (parallaxing between which elements?). If we are talking about a third person camera where the player character is between the camera and the skysphere background, there will inherently be parallaxing, unless the camera is fixed onto the player.

avatar image Delta1 Sep 25 '18 at 09:04 AM

Hi Zoomcns,

What I'm trying to say is firstly, I need to lock the skysphere so it corresponds to a point in my map, like this so point A on the red skysphere is fixed to point B of the black map location:

alt text

This is the BP, I'm using although I also need to get the material to look like its way off in the distance right now it looks too close to the player, I'm unsure how to do this: alt text

To explain the first point a bit more, I'm trying to lock the mountain to the cylinder so it stays in the same position regardless of where the player is in the map: alt text

Additionally, it would be awesome if I could remedy the parallax as shown in this picture that is the same as the one before but at a different location in the map and its driving me nuts! alt text

Can you see how the cylinder looks like its moved right slightly when the players moved further back

posa.jpg (22.7 kB)
material.jpg (78.6 kB)
midpcloser.jpg (405.3 kB)
midpfar.jpg (442.0 kB)
avatar image zoomcns Sep 25 '18 at 10:41 AM

I can't really think of a proper solution, but a practical one: if you're using a skysphere then it's basically in infinite distance, so if you want a normal object to "stick" to it, then it has to be as far away as the far clipping allows (and scaled up appropriately of course). The further it is, the less parallaxing will occur. You probably won't be able to stop the parallaxing 100%, but if it's far enough then it won't be noticeable.

avatar image Delta1 Sep 25 '18 at 03:34 PM

Ah ok thanks for that, is there anyway do you think I can have a portion of the skysphere to be an indicator of the much smaller level that can be used as a player reference for navigation?

(comments are locked)
10|2000 characters needed characters left
Viewable by all users
Your answer
toggle preview:

Up to 5 attachments (including images) can be used with a maximum of 5.2 MB each and 5.2 MB total.

Follow this question

Once you sign in you will be able to subscribe for any updates here

Answers to this question