Home › Forums › Bug Reports and Feature Requests › Shadows for transparency and 2-sided materials.
- This topic has 7 replies, 2 voices, and was last updated 1 year, 7 months ago by masonb.
-
AuthorPosts
-
2023-04-05 at 5:30 pm #61769masonbCustomer
Currently I can’t find a way to make 2 sided materials get a shadow from the back side, and any partially transparent materials still cast the shadow of the full mesh. (Picture with increased lights attached for reference)
Quite frankly it makes any scene optimized by using cutout planes look terrible. Is there any plan to rectify this in the future? and if not, can I put it on the table? Because it’s pretty big deal breaker.2023-04-05 at 8:40 pm #61773kdvParticipantCurrently I can’t find a way to make 2 sided materials get a shadow from the back side
The way is rather simple
https://www.soft8soft.com/docs/api/en/materials/Material.html#shadowSidePuzzles and JS coding. Fast and expensive.
If you don’t see the meaning in something it primarily means that you just don’t see it but not the absence of the meaning at all.
2023-04-10 at 6:49 pm #61948masonbCustomerCurrently I can’t find a way to make 2 sided materials get a shadow from the back side
The way is rather simple
https://www.soft8soft.com/docs/api/en/materials/Material.html#shadowSideSo I see that you’re referencing the two sided materials, and yes that is currently turned on in the verge settings for the material. After some fiddling around I found that my issue was actually a setting on my light, which I had deleted and re-instanced in 3ds Max.
But as for the cutout planes, I see what you have achieved in the pictures, but I’m not actually sure how you’ve done it. Can you elaborate a little?
2023-04-10 at 7:29 pm #61949kdvParticipantI gave you a reference to the particular parameter: shadowSide
About the screenshots:
object.material.side = v3d.DoubleSide
– in both cases double-sided
object.material.shadowSide = v3d.FrontSide
– the first image
object.material.shadowSide = v3d.BackSide
– the second imageThe plane has a flipped square in the center.
If you want both sides casting shadows at the same time use
object.material.shadowSide = v3d.DoubleSide
Puzzles and JS coding. Fast and expensive.
If you don’t see the meaning in something it primarily means that you just don’t see it but not the absence of the meaning at all.
2023-04-11 at 1:23 pm #61972masonbCustomerI gave you a reference to the particular parameter: shadowSide
About the screenshots:
object.material.side = v3d.DoubleSide
– in both cases double-sided
object.material.shadowSide = v3d.FrontSide
– the first image
object.material.shadowSide = v3d.BackSide
– the second imageThe plane has a flipped square in the center.
If you want both sides casting shadows at the same time use
object.material.shadowSide = v3d.DoubleSide
Ahhh, okay. I couldn’t see the geometry there so I thought you had a single quad and you were trying to show me a cutout.
Do you have any idea about the cutout/transparency shadows?- This reply was modified 1 year, 7 months ago by masonb.
2023-04-11 at 1:29 pm #61974kdvParticipantDo you have any idea about the cutout/transparency shadows?
I don’t know what exactly you want to get. More details. If you don’t want semi-transparent materials casting shadows then just disable shadows for them.
Puzzles and JS coding. Fast and expensive.
If you don’t see the meaning in something it primarily means that you just don’t see it but not the absence of the meaning at all.
2023-04-12 at 1:42 pm #62012masonbCustomerDo you have any idea about the cutout/transparency shadows?
I don’t know what exactly you want to get. More details. If you don’t want semi-transparent materials casting shadows then just disable shadows for them.
I’m trying to planes with cutout materials. So for example, this grass is a plane with a texture on it. I’m trying to get the shadow to be that of the grass, rather than that of the entire plane.
Attachments:
You must be logged in to view attached files.2023-04-14 at 5:21 pm #62081masonbCustomerDo you have any idea about the cutout/transparency shadows?
I don’t know what exactly you want to get. More details. If you don’t want semi-transparent materials casting shadows then just disable shadows for them.
For example, I have a single quad that I’ve applied a cutout material to in order to make it look like grass. When it cast a shadow, I would expect it to cast the shadow of the grass (since it’s a mask) but as you can see in the example, it is only casting the shadow of the full quad.
Attachments:
You must be logged in to view attached files. -
AuthorPosts
- You must be logged in to reply to this topic.