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"

Bug with directional lights and translucent sprite material (w shadows)

No matter what I do, every time I try to light a translucent sprite material with a directional light my sprite gets strange, black artifacts when I enable volumetric shadows. I'm pretty sure this is a bug or maybe it has something to do with self shadowing? I'm not sure.

Any help would be appreciated. alt text

Product Version: Not Selected
artifact2.jpg (1.3 MB)
more ▼

asked Mar 22 '15 at 05:40 AM in Rendering

avatar image

Johnny Galvatron
96 8 11 23

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

1 answer: sort voted first

Hi Johnny,

This is not actually a bug, but an artifact of using "cast volumetric translucent shadows" with highly opaque objects.

alt text

The better course of action here is to use a masked material to generate correct shading.

alt text

I hope this helps.

more ▼

answered Mar 24 '15 at 02:22 PM

avatar image

Tim Hobson ♦♦ STAFF
48.7k 888 103 880

avatar image Johnny Galvatron Mar 24 '15 at 03:57 PM

Does this mean I cannot have a sprite that appears to "glow," with high transparent edges, yet casts a shadow?

avatar image Tim Hobson ♦♦ STAFF Mar 24 '15 at 05:29 PM

You can use the emissive input to get your sprite to "glow." In the examples below I just used the base color of my texture plugged into a multiply with a constant value of 1 in pin B. I then plugged the multiply into the emissive slot.

Here are the results and the problems that come with that.

Everything appears without the artifacts that cast volumetric translucent shadow causes. alt text

The problem comes in shadows. Since it's using an emissive material shadows will hide the artifacts, but make it not possible to cast shadows onto your sprite. alt text

glow1.png (318.3 kB)
glow2.png (211.5 kB)
avatar image Johnny Galvatron Mar 25 '15 at 01:31 AM

Thanks for your help Tim! You've been great!

(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