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"

Access reflection cubemap(s) in material

Hey, does anyone know if it's possible to access the cubemaps that are used to make surfaces appear reflective in a material?

I'm also comfortable changing the engine a bit to expose this, as long as it doesn't require major changes.

Thanks!

Product Version: Not Selected
Tags:
more ▼

asked Feb 03 '15 at 04:32 PM in Rendering

avatar image

ehahnda
1 2 3 4

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

1 answer: sort voted first

Hello ehahnda,

I am not sure what you are trying to do but there is a SceneCaptureCube Actor which you can create a CubeRenderTarget texture for, and you can place that into your Post Process Volume to have your own custom Cubemap.

There is some helpful documentation on Ambient Cubemaps that might provide you with the exact answer you are looking for as well.

Ambient Cubemaps https://docs.unrealengine.com/latest/INT/Engine/Rendering/LightingAndShadows/AmbientCubemap/index.html

If you need more information or assistance let me know.

Cheers,

Andrew Hurley

more ▼

answered Feb 06 '15 at 03:11 PM

avatar image ehahnda Feb 06 '15 at 10:39 PM

Thanks! I might be able to use this for my needs, but this seems like it would be wasteful, since the engine will already be capturing cubemaps for its reflections.

I managed to expose select reflection cubemaps to the material by adding them to the view uniform buffer in this function: FViewInfo::CreateUniformBuffer (in SceneRendering.cpp)

I'm able to access the value using a custom hlsl node (similar to the way AmbientCubemapTint is done)

Things seem to be working good with this so far, but if you can think of any problems with me doing this (like thread safety, resources being deleted, etc) please let me know.

avatar image AndrewHurley Feb 06 '15 at 11:08 PM

Hey ehahnda,

Your approach seems sound especially if it is a similar approach to how the AmbientCubeMapTint is being accessed. Let me know if you come across something that seems questionable.

Cheers,

Andrew Hurley

(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