[suggestion] Fake Fog node

Forums: [suggestion] Fake Fog node
Newtek Lightwave 3D (exporter developed by holocube, Integrated Plugin developed by juanjgon)

Moderator: juanjgon

[suggestion] Fake Fog node

Postby happymilk » Tue Feb 13, 2018 1:04 pm

happymilk Tue Feb 13, 2018 1:04 pm
Hi Juanjo
I know the volumetric way to create a realistic fog. But sometimes it is a bit noisy and hard to set.
My idea is to use the procedure that i normally use in Photoshop, but directly in Octane: The ZDepth channel.
Is there a way for create a render target node which uses the data stored in the ZDepth channel to apply a solid color (in different percentages) above the final image?

Thanks
Mirko
Win 10pro 64 | 3 x Geforce GTX980Ti | i7 5930K | 32GB
User avatar
happymilk
Licensed Customer
Licensed Customer
 
Posts: 54
Joined: Wed Jun 20, 2012 8:25 pm

Re: [suggestion] Fake Fog node

Postby Builtdown » Tue Feb 13, 2018 1:15 pm

Builtdown Tue Feb 13, 2018 1:15 pm
Would like to know this also.
Builtdown
Licensed Customer
Licensed Customer
 
Posts: 207
Joined: Thu Sep 04, 2014 2:21 pm

Re: [suggestion] Fake Fog node

Postby mstewart152 » Tue Feb 13, 2018 3:29 pm

mstewart152 Tue Feb 13, 2018 3:29 pm
Not that am I am aware of. I'de love a feature like that though myself :)
mstewart152
Licensed Customer
Licensed Customer
 
Posts: 107
Joined: Tue Jun 17, 2014 7:01 pm

Re: [suggestion] Fake Fog node

Postby 3dreamstudios » Tue Feb 13, 2018 9:50 pm

3dreamstudios Tue Feb 13, 2018 9:50 pm
Yep would love to see some sort of fake Z depth fog ability. And by "sometimes" hard to setup, I mean ALWAYS. It's a bit finicky when I've tried to use it.
3dreamstudios
Licensed Customer
Licensed Customer
 
Posts: 479
Joined: Fri Apr 03, 2015 8:55 pm

Re: [suggestion] Fake Fog node

Postby baltort » Thu Mar 22, 2018 10:15 am

baltort Thu Mar 22, 2018 10:15 am
Hi all,

There's been a couple of requests for fake fogs and distance dissolves recently. The best I've come up with is a simple OSL node that creates a texture based on distance from a given point:

DistanceJD OSL setup..jpg


Just connect scalar nodes to the max and min pins and any vector input to the camPos pin (this example uses an item info node reporting the camera position, but it could be a null, or anything else for that matter).

Anything closer than min distance gets coloured 1.0, anything further away than max distance gets coloured 0.0, and anything in between get shaded linearly.

You can use this texture directly on any colour pin (as shown below), or on an opacity pin, or on the Amount pin of a material mixer node to create fake fog effects.

cubes with fake fog.jpg


Have fun!

James.
Attachments
distanceJD.zip
(337 Bytes) Downloaded 124 times
baltort
Licensed Customer
Licensed Customer
 
Posts: 72
Joined: Mon Jul 07, 2014 4:00 pm

Return to Lightwave 3D


Who is online

Users browsing this forum: No registered users and 16 guests

Thu Apr 18, 2024 11:56 pm [ UTC ]