Parallax mapping OSL shader

Forums: Parallax mapping OSL shader
A forum where development builds are posted for testing by the community.
Forum rules
NOTE: The software in this forum is not %100 reliable, they are development builds and are meant for testing by experienced octane users. If you are a new octane user, we recommend to use the current stable release from the 'Commercial Product News & Releases' forum.

Parallax mapping OSL shader

Postby jobigoud » Mon Feb 22, 2021 8:22 pm

jobigoud Mon Feb 22, 2021 8:22 pm
Hi,
Here is an OSL projection shader that implements Parallax Occlusion Mapping. This is a way to simulate displacement without actually adding new geometry.
Compatibility: Octane 2020.2 or higher.

parallaxMapping.osl
(5.23 KiB) Downloaded 167 times


Very basic test scene, experiment with your own materials and textures.
parallaxmapping.orbx
(273.93 KiB) Downloaded 156 times


Manual setup:
1. Add a Projection node of type OSL projection and point it to the OSL file.
2. Plug the displacement texture into this node.
3. Set the projection on the displacement texture node to "OSL delayed UV".
4. Use the parallax mapping projection as the projection for any texture used on the material.
5. Play with the Depth scale value to tweak the effect.

setup.png


wireoverlay.jpg


A similar shader was also published a while ago in this thread: viewtopic.php?f=33&t=71968&p=364916
One of the differences is that the one here uses a texture node as input instead of a file name.

Don't hesitate to send remarks, usability suggestions, bugs, advantages/drawbacks compared to Texture or Vertex displacement, etc.
User avatar
jobigoud
OctaneRender Team
OctaneRender Team
 
Posts: 230
Joined: Sat Aug 15, 2015 1:28 pm

Re: Parallax mapping OSL shader

Postby linograndiotoy » Tue Feb 23, 2021 12:57 pm

linograndiotoy Tue Feb 23, 2021 12:57 pm
Very cool!
I imagine shadows can be a problem, right?
linograndiotoy
OctaneRender Team
OctaneRender Team
 
Posts: 1148
Joined: Thu Feb 01, 2018 7:10 pm

Re: Parallax mapping OSL shader

Postby jobigoud » Tue Feb 23, 2021 12:59 pm

jobigoud Tue Feb 23, 2021 12:59 pm
Yes, unlike actual displacement this does not support cast shadows.
User avatar
jobigoud
OctaneRender Team
OctaneRender Team
 
Posts: 230
Joined: Sat Aug 15, 2015 1:28 pm

Re: Parallax mapping OSL shader

Postby Jolbertoquini » Wed Mar 03, 2021 4:15 pm

Jolbertoquini Wed Mar 03, 2021 4:15 pm
Thanks for the update, the one I post here on the group the depth was annoying embed on the script this is better Thanks for the help! I hope we will have something on the future to help with the shadows but with a strong normal map kind fake a bit is some cases can be awesome for background stuff.

Best,
JO
Octane Render for Maya.
https://vimeo.com/jocg/videos
https://www.linkedin.com/in/jocgtd
http://www.hmxmedia.com/
--------------------
Join MAYA OCTANE USERS Skype discussion here :
https://join.skype.com/LXEQaqqfN15w
User avatar
Jolbertoquini
Licensed Customer
Licensed Customer
 
Posts: 1067
Joined: Sun Aug 31, 2014 7:08 am
Location: London

Re: Parallax mapping OSL shader

Postby Tugpsx » Fri Apr 30, 2021 6:01 pm

Tugpsx Fri Apr 30, 2021 6:01 pm
This is cool thanks for the update.
Dell Win Vista 32 | NVIDIA Quadro NVS135M | Core2 Duo T7500 2.20GHz | 4GB
CyberPowerPC Win 7 64| NVIDIA GTX660Ti (3G) GTX480(1.5G) | 16GB
Tugpsx
Licensed Customer
Licensed Customer
 
Posts: 1145
Joined: Thu Feb 04, 2010 8:04 pm
Location: Chicago, IL

Re: Parallax mapping OSL shader

Postby whersmy » Fri Apr 30, 2021 8:22 pm

whersmy Fri Apr 30, 2021 8:22 pm
Interesting. As I`m typing this I`m adding a carpet with osl-baked displacement onto a displaced wood floor.

Maybe it could be interesting to see the difference vs renderspeed/stability :?:
Octane 2022.1.1 nv535.98
mac pro g5| pentium g2030 iGPU| maximus extreme V| 2x gtx590 - 8gb - SSD - win7-x64- 1500W Silverstone|
x201t - gtx580 - egpu ec
Dell G5 - 16GB - dgpu GTX1060 - TB3 egpu @ 1060 / RTX 4090

Octane Render experiments
User avatar
whersmy
Licensed Customer
Licensed Customer
 
Posts: 723
Joined: Thu Aug 30, 2012 7:40 am

Return to Development Build Releases


Who is online

Users browsing this forum: No registered users and 4 guests

Thu Mar 28, 2024 10:33 pm [ UTC ]