We use cookies to ensure that we give you the best experience on our website. If you continue to use this site we will assume that you are happy with it.

Shadows for transparency and 2-sided materials.

Home Forums Bug Reports and Feature Requests Shadows for transparency and 2-sided materials.

Tagged: ,

Viewing 8 posts - 1 through 8 (of 8 total)
  • Author
    Posts
  • #61769
    masonb
    Customer

    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.

    #61773
    kdv
    Participant

    Currently 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#shadowSide

    Solving any problems with Puzzles or JS code. Fast and expensive.

    #61948
    masonb
    Customer

    Currently 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#shadowSide

    So 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?

    #61949
    kdv
    Participant

    I 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 image

    The 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

    Solving any problems with Puzzles or JS code. Fast and expensive.

    #61972
    masonb
    Customer

    I 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 image

    The 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 5 months, 2 weeks ago by masonb.
    #61974
    kdv
    Participant

    Do 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.

    Solving any problems with Puzzles or JS code. Fast and expensive.

    #62012
    masonb
    Customer

    Do 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.
    #62081
    masonb
    Customer

    Do 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.
Viewing 8 posts - 1 through 8 (of 8 total)
  • You must be logged in to reply to this topic.