Itoo Software Forum

RailClone => RailClone Pro (*) => Topic started by: IT1371 on February 01, 2021, 10:39:46 AM

Title: OSL Parallax mapping
Post by: IT1371 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?
Title: Re: OSL Parallax mapping
Post by: Rokas on February 01, 2021, 01:05:36 PM
Hi
We have not played with this setup, would You please send (https://forum.itoosoft.com/faq/how-to-send-a-file-to-itoo-software/) us Your sample scene so we can evaluate it ?
Title: Re: OSL Parallax mapping
Post by: IT1371 on February 03, 2021, 11:58:44 AM
Files sent to email :)
Title: Re: OSL Parallax mapping
Post by: SJB on March 21, 2021, 11:35:34 PM
I am interested in this too  :)
Title: Re: OSL Parallax mapping
Post by: Rokas 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 (https://wparallax.com/).
Let us know if You need any help in Your setup. We will try to help with RailClone part.
Title: Re: OSL Parallax mapping
Post by: grudzien 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
Title: Re: OSL Parallax mapping
Post by: Dragan 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 (https://wparallax.com/).
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   :(
Title: Re: OSL Parallax mapping
Post by: Dragan 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)
Title: Re: OSL Parallax mapping
Post by: grudzien 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,
Title: Re: OSL Parallax mapping
Post by: Dragan on July 10, 2022, 02:02:22 PM
Thanks.
I`ll test it as soon as I can.
Is this just for Corona?
Title: Re: OSL Parallax mapping
Post by: grudzien on July 10, 2022, 08:36:19 PM
for vray, name could be missleading :D
Title: Re: OSL Parallax mapping
Post by: Dragan 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.
 
Title: Re: OSL Parallax mapping
Post by: grudzien 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
Title: Re: OSL Parallax mapping
Post by: Dragan 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.  ;)
Title: Re: OSL Parallax mapping
Post by: nubo on July 24, 2023, 07:58:42 PM
Have you been able to make it work in bigger scenes?
We've been using parallax OSL maps with RC for some time and it turned out that in bigger scenes or larger resolutions they seem to cause renders to crash during updating instances stage.
The only way to fix this is to instantiate all the RC objects.

Did anyone have similar experiences with parallax OSL?

Best regards,
Przemek
NUBO
Title: Re: OSL Parallax mapping
Post by: Dragan on July 25, 2023, 01:47:27 AM
Yes, large scale without any problems.
I have some free macros on my Gumroad page: https://dragan-prodanic.gumroad.com/l/bvcwa
This particular Macro uses old-type multitexture (Bundle1 & Bundle2) and although some users had issues I never experienced any of those using my macro. I made some changes so you will probably have to remap to the folder with the original maps.

The guy from wParallax did change the way of distribution (switched from multitexture to just day/night) and I attended to redesign my current macro to support those too but, I had a lot of work on my project so I had no time for a better look  :(
Let me know how you want to use Parallax OSL and what source you want to use (wParallax, Evermotion, Shaderbox, others) and maybe I could create some custom preset for you.

Please, keep in mind that I do not provide maps but create custom Railcone Macros to work the original maps from wParallax or the maps you will provide.
Best Regards
Dragan