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"

real time shadow and lightmap in the mobile.

I'm developing a mobile game using Unreal Engine 4.8. If I set DirectionalLight as Movable to make realtime shadow for Characters, it applies to Static Mesh as wel.

I want to use a light map for Static Mesh only and use realtime shadow for characters. Is it possible?

Product Version: UE 4.8
Tags:
more ▼

asked Jun 15 '15 at 02:35 PM in Rendering

avatar image

sharbong
13 5 9 13

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

2 answers: sort voted first

The shadows you want, like the video metallario posted, are possible in mobile using the Modulated shadows.

  • Place a stationary Directional Light in your scene.

  • Enable Modulated shadows for that light.

  • Build lighting.

Now, your movable actors have real time shadows and your static ones don't (only the baked shadows). And, just like in Taichi Panda, the movable shadow will be visible even over the static shadows. But it's a small price to pay imo. Some PS2 games were like that, if I remember correctly.

I'm using UE 4.12 preview 3 for that. But Modulated Shadows have been around since 4.9.

more ▼

answered May 11 '16 at 12:59 AM

avatar image

RVillani
1.1k 28 39 90

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

Hi!

No it is impossible. Main problem is a light not can filtering static and dynamic objects. And dynamic shadows are calculated for all objects in the scene.

more ▼

answered Jun 15 '15 at 03:09 PM

avatar image

svv3dUDN
8.4k 254 42 399

avatar image sharbong Jun 15 '15 at 03:18 PM

So you means... there is no way to use dynamic light in mobile device with reasonable memory usage?

avatar image svv3dUDN Jun 15 '15 at 03:46 PM

Yep. Because it is limitation of mobile systems.

avatar image metallario Jul 18 '15 at 03:03 PM

Hi, if this is a limitation for mobile systems, could you please explain why on this game they HAVE dynamic shadows only on characters????

https://www.youtube.com/watch?v=DZMyi0betXY

Thanks

avatar image Guigsy1865 Jul 18 '15 at 07:00 PM

Right now that is a limitation of Mobile systems. If you're using a Directional light that is stationary (meaning that it will use dynamic lighting within a range and static at further distances) you cannot set the static objects to only use static lighting. That part is not setup in the engine. This was bugged at one point but that's the way it's supposed to work and there is no intention of changing it.

Right now, you can only have a single directional light that uses any dynamic lighting. At some point in the future dynamic lighting for point and spot lights will be implemented, but there hasn't been anything announced yet that I'm aware of.

As for the game you've linked, there is nothing said about it being used in Unreal Engine 4, there is nothing said about what engine is being used. The video is also over an hour long. It's hard to answer questions when it's showing what looks like a finished game that may have had it's own engine, it's own programmers who may have implemented features that are not in other engines yet, or by default. The thing is that Mobile is hard to develop for because it's inherently more limited than desktops. It requires more performance optimizations that can't just be handled with a flick of a switch. There really isn't just an easy answer for a very broad question like that. :/

(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