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"

Manually set reflection cubemap

Hey, I have a totally dynamic scene and I want the objects in my level to have some reflection. The reflections don't need to be accurate, I have a bunch of custom cubemaps that I want to use to define my environment. I tried using a skylight, but that assigned the cubemap to every object in the scene instead of just objects near the skylight. My goal is to achieve the same effect as multiple spherical reflection capture placed around my scene, but instead of capturing the scene geometry I want to assign my own cubemaps.

I hope you can help me. Cheers

Product Version: Not Selected
Tags:
more ▼

asked Jan 31 '15 at 07:40 PM in Rendering

avatar image

Timothy
6 4 5 7

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

1 answer: sort voted first

Hey Timothy -

You would need to assign your Cubemaps directly in the Materials of the items themselves. You can setup a blueprint controlled volume system to change the cubemap that is used when an object is placed inside of certain volumes that you set up in your level. Here is what a basic material setup would look like:

Material Example

Thank You

Eric Ketchum

reflections02.jpg (187.1 kB)
more ▼

answered Feb 02 '15 at 07:29 PM

avatar image

Lovecraft_K ♦♦ STAFF
36.7k 702 260 735

avatar image Motanum Apr 03 '18 at 04:18 PM

I want to expand on your answer, as it took quite some work to get it working with my materials. I needed to set custom cubemaps, for materials that have various metal values, and to blend with the background. Here is my final script for the reflections. alt text

And finally, before going to the emissive channel, it adds to the emissive color I already have. alt text

This is what my crate with standard ue4 reflections look like. Editor. alt text

In Game alt text

And this is what the manual cubemap looks like on the same model. Editor. alt text

In Game (Sorry for the tiny screen).

alt text

It's not perfect, but it's way miles better than having a black reflection before due to the procedural generation. It blends quite nicely and looks natural. Before:

alt text

(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