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.
Very basic test scene, experiment with your own materials and textures.
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.
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.
Parallax mapping OSL shader
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.
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.
- linograndiotoy
- Posts: 1350
- Joined: Thu Feb 01, 2018 7:10 pm
Very cool!
I imagine shadows can be a problem, right?
I imagine shadows can be a problem, right?
- Jolbertoquini
- 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
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
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
This is cool thanks for the update.
Win 11 64GB | NVIDIA RTX3060 12GB
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
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 - ♩ ♪ ♫ ♬
x201t - gtx580 - egpu ec
Dell G5 - 16GB - dgpu GTX1060 - TB3 egpu @ 1060 / RTX 4090
Octane Render experiments - ♩ ♪ ♫ ♬