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"

Light Function material and Cubemaps

Hello,

I'm trying to get fake shadows from a lamp using a material light function. I'm already using simple light functions with spotlights and 2D textures, but I would like to push that more, using point lights and cubemaps.

I baked a cubemap in Max around a lamp prop, and I'm trying to make it work with a light function material, but I'm stuck at that point. Here is what I have:

alt text

I've only found one thread about this topic here, but it didn't really helped me. I've tried 2 types of cubemaps, DDS generated with ATI Cubemapgen and HDR spherical. So far the light function seems to be totally ignored by my light actor. Other light material function we have in bank are working fine, but they all use 2D textures.

Product Version: UE 4.20
Tags:
lfmat.jpg (290.8 kB)
more ▼

asked Feb 06 '19 at 09:17 PM in Rendering

avatar image

ThomasDidier
6 1

avatar image AlexeyLM Mar 27 '19 at 03:39 PM

It seems the best way is to use several Spots with LightFunctions. In this discussion, you will surely find the answer to your question https://polycount.com/discussion/190402/ue4-learning-lighting-art/p2 .

avatar image ThomasDidier Mar 27 '19 at 05:51 PM

Hey! I have found a workaround in the end, thanks :) Turns out the LightFunction projection is already using a spherical map out of the box, so nothing was required shader-wise, I just had to find the correct coordinate when baking a shadow and that was it!

(comments are locked)
10|2000 characters needed characters left

0 answers: sort voted first
Be the first one to answer this question
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