x

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"

Office Holiday

Epic Games' offices will be on holiday from June 22nd to July 7th. During this period support will be limited. Our offices will reopen on Monday, July 8th. 

How do I add a ground horizon of a chosen color to the skysphere?

I would like to know how to modify the sky sphere to potentially fix the problem shown below: alt text When viewed from high above, you can definitely see the edge of the level (somewhat exaggerated here so it is clear what I am talking about). Is there a way to change the skysphere lower half (e.g. "where the ground would be") to be a chosen color (in this case, the color of the ground)? I would like to make the part of the sky that appears bright pink to be the color of the ground.

Product Version: UE 4.17
Tags:
more ▼

asked Aug 06 '18 at 11:00 PM in Using UE4

avatar image

Compguy321
12 5 8 10

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

2 answers: sort voted first

I have found a way that works that yields the desired effect AND still lets you use the Unreal Skysphere. Just make what I call a "ground sphere" within it, with a transparent top half. I have made an "inverse sphere" in Blender that can work as a "ground sphere". I have made this available to the public here: [SkySphere][1]
[1]: https://drive.google.com/drive/u/0/folders/1_haL9ahasoeVllxB_MEG8p-E2CJ_dq03

  1. Download and import the .fbx skysphere that I made in the link above into Unreal Engine (or create your own inverse sphere)

  2. Download the .png image at that link: GroundSphereWhite.png, and import it into Unreal Engine, or make your own such image (transparent top half, white bottom half).

  3. a. Make a material in Unreal Engine and edit it: Change the material settings to Masked

    b. Change the lighting setting of the material to not lit

    c. Drag the GroundSphereWhite imported image in to the blueprint

    d. Multiply the image top pin by a color (const 3 vector)

    e. Promote that color to a parameter, and name it color

    f. Create a pin from the result of that into the emissive box

  4. Make a new instance of the material, and name it something appropriate for the level (e.g. M_Mars_Background_Ground)

  5. Drag the imported skysphere into your level, and apply your newly created material instance. You might need to rotate the sphere some to get it in the right position (not sure why this happened to me).

  6. Set the new skysphere's setting to not cast shadows (uncheck the box - cast shadows)

  7. Adjust the color parameter of your instance material (e.g. M_Mars_Background_Ground) until it matches nicely with the ground of the level.

Now, hopefully you have a landscape that looks like it goes on and on, without being able to see the square edges of the level because it blends in with the new background! You may need to add something to block the reflection from the sun in the background if your ground is shiny, or make the ground not shiny (roughness = 1, and / or specular = 0).

Hope this helps! I might make a YouTube tutorial on it later, especially if someone here requests it.

more ▼

answered Jun 01 '19 at 06:14 PM

avatar image

Compguy321
12 5 8 10

avatar image Compguy321 Jun 08 '19 at 04:39 PM

In fact, I released the update now, this shows the before and after: https://steamcommunity.com/games/857860/announcements/detail/1589121999159819030

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

An alternate way (which I used on Venus for Planetary Settlers) is to make very large planes, make a color that matches the ground color, and add 4 such planes on the outskirts of the level. This method seems to work better on levels that have significant amounts of fog. However, if there isn't fog in the level, my main way, posted above seems to work better. I have used the other (accepted answer) "ground sphere" method to fix most of my levels in Planetary Settlers, which that update should be out by 7/1/2019.

more ▼

answered Jun 01 '19 at 06:23 PM

avatar image

Compguy321
12 5 8 10

(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