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"

How to get dynamic shadows without using a lot of stationary/moving lights?

How can I get dynamic shadows without using a lot of stationary lights, they cause a big performance drop.

Do I need to change a certain amount of them to stationary or just place some stationary lights near the static ones in particular areas to create shadows?

My game currently has almost no shadows on moving objects and it looks kind of weird but I can't change all lights to stationary due to the performance drop.

Product Version: Not Selected
Tags:
more ▼

asked Sep 25 '16 at 12:58 PM in Everything Else

avatar image

MrGoatsy
604 34 26 45

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

1 answer: sort voted first

You can't expect having many shadow-casting lights and good performance at the same time. You can have as many stationary lights as you need, but their shadow-casting performance will depend on number of objects/triangles they are affecting.

To put it straight, you should try to design the level in such way, that no more than 2-3 shadow-casting lights are visible at any given point in the level and number of dynamic objects, affect by those lights is kept to a minimum. If you are working with mobile, the constraints here are even tougher.

more ▼

answered Sep 26 '16 at 09:00 AM

avatar image

Deathrey
7.9k 130 31 293

avatar image MrGoatsy Oct 01 '16 at 09:26 PM

So I basically need to fake it with static lighting and then just put a few stationary lights so that the shadows still look good?

avatar image Deathrey Oct 02 '16 at 12:32 PM

Pretty much yes.

(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