Is it possible to change the shadow output?

Forums: Is it possible to change the shadow output?
Generic forum to discuss Octane Render, post ideas and suggest improvements.
Forum rules
Please add your OS and Hardware Configuration in your signature, it makes it easier for us to help you analyze problems. Example: Win 7 64 | Geforce GTX680 | i7 3770 | 16GB

Is it possible to change the shadow output?

Postby fivebythree » Thu Apr 06, 2023 4:07 pm

fivebythree Thu Apr 06, 2023 4:07 pm
Hi,

Wracking my head around this. I've tried specular material which gives a bit of an undesired result.

I'd like to assign an rgb value to the output shadow of a single object, but not the rest of the scene.

See the attached video as a primer to better understand what I'm after...
https://www.youtube.com/watch?v=EN_xB9Fkw9M&t=24s


Any help would be greatly appreciated.

thanks,
Dom
STANDALONE WINDOWS10PRO | RTX3090 | XEON 4210 20 CORE | 96GBRam
User avatar
fivebythree
Licensed Customer
Licensed Customer
 
Posts: 230
Joined: Tue Jun 10, 2014 2:43 pm
Location: Toronto, CAN

Re: Is it possible to change the shadow output?

Postby funk » Thu Apr 06, 2023 6:09 pm

funk Thu Apr 06, 2023 6:09 pm
You could mix 2 materials with a ray switch node in a similar way to the blender video.

Just tweak the specular material to get the look you want (I set IOR to 0, enabled fake shadows and made refraction blue)

rayswitch_shadow_001.png


See attached scene.
Attachments
oct_rayswitch_shadow_color.ocs
(63.48 KiB) Downloaded 45 times
Win10 Pro/ Ryzen 5950X / 128GB / RTX 4090 / MODO
"I am the resurrection, and the life: he that believeth in me, though he were dead, yet shall he live" - Jesus Christ
User avatar
funk
Licensed Customer
Licensed Customer
 
Posts: 1204
Joined: Mon Feb 07, 2011 1:24 pm
Location: Australia

Re: Is it possible to change the shadow output?

Postby fivebythree » Thu Apr 06, 2023 6:17 pm

fivebythree Thu Apr 06, 2023 6:17 pm
Wow, I was doing this wrong! I was using the mix texture node and not the Mix Material. Thanks for you help! It's exactly the result I was in need of.
STANDALONE WINDOWS10PRO | RTX3090 | XEON 4210 20 CORE | 96GBRam
User avatar
fivebythree
Licensed Customer
Licensed Customer
 
Posts: 230
Joined: Tue Jun 10, 2014 2:43 pm
Location: Toronto, CAN

Re: Is it possible to change the shadow output?

Postby fivebythree » Wed Apr 12, 2023 3:43 pm

fivebythree Wed Apr 12, 2023 3:43 pm
I have a bit of a follow up to this question.

Shadows are passing through the mix material. Is it possible to prevent this? The diffuse material seemingly does this, but the specular material seems to allow the shadow from another object to pass right through. Here's an image to illustrate the issue.....

shadowpassthrough.jpg


Thanks again,

Domenic
STANDALONE WINDOWS10PRO | RTX3090 | XEON 4210 20 CORE | 96GBRam
User avatar
fivebythree
Licensed Customer
Licensed Customer
 
Posts: 230
Joined: Tue Jun 10, 2014 2:43 pm
Location: Toronto, CAN

Re: Is it possible to change the shadow output?

Postby frankmci » Wed Apr 12, 2023 6:25 pm

frankmci Wed Apr 12, 2023 6:25 pm
I think what you are seeing is the logically correct shadow. It's like stacking filters; the blue building has already blocked the red light, so there's none left to go through the pink building. Where the shadows overlap, you'll get only what frequencies can pass through both buildings. You may need to do separate shadow passes and color them in post to make the pink building cast a pink shadow after being blocked by a blue shadow.

But don't give up yet. There are people here far cleverer than me who might have an elegant in-camera solution.
Animation Technical Director - Washington DC
frankmci
Licensed Customer
Licensed Customer
 
Posts: 846
Joined: Fri May 26, 2017 2:00 pm

Re: Is it possible to change the shadow output?

Postby fivebythree » Thu Apr 20, 2023 12:32 pm

fivebythree Thu Apr 20, 2023 12:32 pm
frankmci wrote:I think what you are seeing is the logically correct shadow. It's like stacking filters; the blue building has already blocked the red light, so there's none left to go through the pink building. Where the shadows overlap, you'll get only what frequencies can pass through both buildings. You may need to do separate shadow passes and color them in post to make the pink building cast a pink shadow after being blocked by a blue shadow.

But don't give up yet. There are people here far cleverer than me who might have an elegant in-camera solution.


Appreciate your tips. I figure its going to either be a really difficult set of steps or something blatantly easy. I think I'm not entirely understanding the ray-switch node. The documentation is rather limited on the standalone manual. Perhaps there's deeper documentation on C4D or Blender's manuals. :D
STANDALONE WINDOWS10PRO | RTX3090 | XEON 4210 20 CORE | 96GBRam
User avatar
fivebythree
Licensed Customer
Licensed Customer
 
Posts: 230
Joined: Tue Jun 10, 2014 2:43 pm
Location: Toronto, CAN

Re: Is it possible to change the shadow output?

Postby funk » Thu Apr 20, 2023 12:46 pm

funk Thu Apr 20, 2023 12:46 pm
I'm not seeing an obvious way to do what you want in a single render. I think you'd need to do this with separate passes.

Someone smarter than me may have other ideas.
Win10 Pro/ Ryzen 5950X / 128GB / RTX 4090 / MODO
"I am the resurrection, and the life: he that believeth in me, though he were dead, yet shall he live" - Jesus Christ
User avatar
funk
Licensed Customer
Licensed Customer
 
Posts: 1204
Joined: Mon Feb 07, 2011 1:24 pm
Location: Australia

Return to General Discussion


Who is online

Users browsing this forum: No registered users and 10 guests

Thu Jun 06, 2024 2:07 pm [ UTC ]