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.
Post Reply
User avatar
jobigoud
OctaneRender Team
Posts: 244
Joined: Sat Aug 15, 2015 1:28 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 211 times
Very basic test scene, experiment with your own materials and textures.
parallaxmapping.orbx
(273.93 KiB) Downloaded 198 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.
linograndiotoy
OctaneRender Team
Posts: 1350
Joined: Thu Feb 01, 2018 7:10 pm

Very cool!
I imagine shadows can be a problem, right?
User avatar
jobigoud
OctaneRender Team
Posts: 244
Joined: Sat Aug 15, 2015 1:28 pm

Yes, unlike actual displacement this does not support cast shadows.
User avatar
Jolbertoquini
Licensed Customer
Posts: 1067
Joined: Sun Aug 31, 2014 7:08 am
Location: London
Contact:

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
Tugpsx
Licensed Customer
Posts: 1150
Joined: Thu Feb 04, 2010 8:04 pm
Location: Chicago, IL
Contact:

This is cool thanks for the update.
Win 11 64GB | NVIDIA RTX3060 12GB
User avatar
whersmy
Licensed Customer
Posts: 723
Joined: Thu Aug 30, 2012 7:40 am

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

x201t - gtx580 - egpu ec
Dell G5 - 16GB - dgpu GTX1060 - TB3 egpu @ 1060 / RTX 4090

Octane Render experiments - ♩ ♪ ♫ ♬
Post Reply

Return to “Development Build Releases”