Itoo Software Forum

Author Topic: OSL Parallax mapping  (Read 2021 times)

IT1371

  • Full Member
  • ***
  • Posts: 181
OSL Parallax mapping
« on: February 01, 2021, 10:39:46 AM »
So I'm making this WindowBox and it works great so far
http://julius-ihle.de/?p=2451
and i'm thinking of distributing the planes over windows using RC. RC won't map it correctly, so it has to be broken to instances with RC Tools.
Is there a way to keep RC intact, without breaking it to instances and still make the OSL work?

Rokas

  • Hero Member
  • *****
  • Posts: 3324
Re: OSL Parallax mapping
« Reply #1 on: February 01, 2021, 01:05:36 PM »
Hi
We have not played with this setup, would You please send us Your sample scene so we can evaluate it ?
Rokas

IT1371

  • Full Member
  • ***
  • Posts: 181
Re: OSL Parallax mapping
« Reply #2 on: February 03, 2021, 11:58:44 AM »
Files sent to email :)

SJB

  • Newbie
  • *
  • Posts: 9
Re: OSL Parallax mapping
« Reply #3 on: March 21, 2021, 11:35:34 PM »
I am interested in this too  :)

Rokas

  • Hero Member
  • *****
  • Posts: 3324
Re: OSL Parallax mapping
« Reply #4 on: March 22, 2021, 08:18:39 AM »
Hi. We don't have a working scene that we could share. Anyway OSL work with RailClone. Feel free to experiment with these assets.
Let us know if You need any help in Your setup. We will try to help with RailClone part.
Rokas

grudzien

  • Newbie
  • *
  • Posts: 4
Re: OSL Parallax mapping
« Reply #5 on: March 23, 2021, 10:11:56 AM »
Hello,
few months  ago i made update to JuliusIhle Window Box OSL to make it work with railclone.
https://github.com/ADN-DevTech/3dsMax-OSL-Shaders/tree/master/OSL/ADN-User%20Submitted/JuliusIhle
Problem was with coordinate system.

Hope it helps

Dragan

  • Hero Member
  • *****
  • Posts: 1296
Re: OSL Parallax mapping
« Reply #6 on: March 24, 2021, 09:50:00 PM »
Hi. We don't have a working scene that we could share. Anyway OSL work with RailClone. Feel free to experiment with these assets.
Let us know if You need any help in Your setup. We will try to help with RailClone part.

Quick test, wParallax does not work   :(
« Last Edit: March 24, 2021, 10:05:07 PM by Dragan »

Dragan

  • Hero Member
  • *****
  • Posts: 1296
Re: OSL Parallax mapping
« Reply #7 on: March 24, 2021, 10:49:11 PM »
Hello,
few months  ago i made update to JuliusIhle Window Box OSL to make it work with railclone.
https://github.com/ADN-DevTech/3dsMax-OSL-Shaders/tree/master/OSL/ADN-User%20Submitted/JuliusIhle
Problem was with coordinate system.

Hope it helps

Confirmed  ;)
Although not compatible with wParallax files. (needs a bit of editing in Photoshop to switch places for curtain<>midplane)
« Last Edit: March 24, 2021, 11:00:18 PM by Dragan »

grudzien

  • Newbie
  • *
  • Posts: 4
Re: OSL Parallax mapping
« Reply #8 on: July 10, 2022, 12:44:15 PM »
sure, this was raw version of script.
To work with wParallax version of OSL WindowsBox script you need modify coordinate system.
I attach modified version with custom function getFaceTransformMatrix.

To make it work with RailClone, just enable "multiPlanarObj" settin value to 1 like in attachment.

With "multiPlanarObj" enabled all polygons get own coordinate system for shading.

Best Regards,

Dragan

  • Hero Member
  • *****
  • Posts: 1296
Re: OSL Parallax mapping
« Reply #9 on: July 10, 2022, 02:02:22 PM »
Thanks.
I`ll test it as soon as I can.
Is this just for Corona?

grudzien

  • Newbie
  • *
  • Posts: 4
Re: OSL Parallax mapping
« Reply #10 on: July 10, 2022, 08:36:19 PM »
for vray, name could be missleading :D

Dragan

  • Hero Member
  • *****
  • Posts: 1296
Re: OSL Parallax mapping
« Reply #11 on: July 10, 2022, 08:49:39 PM »
Great! Thank you!
As I remember Wparallax has a new OSL with more midplanes, removing walls, etc... It will be great if those could be adapted for RC.
 

grudzien

  • Newbie
  • *
  • Posts: 4
Re: OSL Parallax mapping
« Reply #12 on: July 10, 2022, 10:27:00 PM »
oh, i just checked, new wParallax just have my script modification from 2020,
but its wrong tagged as Zap Anderson.
Anyway it is working with RailClone

Dragan

  • Hero Member
  • *****
  • Posts: 1296
Re: OSL Parallax mapping
« Reply #13 on: July 10, 2022, 10:46:06 PM »
Yes, I just checked. It seems to be working just fine with this Multiplanar option.
Thank you for letting us know that issue has been fixed.  ;)