Parallax projections HELP

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
Jolbertoquini
Licensed Customer
Posts: 1067
Joined: Sun Aug 31, 2014 7:08 am
Location: London
Contact:

Hi Guys,

I was looking around for OSL script for parallax mapping projection and Find this one here http://www.racoon-artworks.de/?p=773 is working for me on the orbx attached I jsut don't know how to changes some parts there to make work.

First is the UVW is based on world space I guess need be on Object space, also then be able to scale the texture as usually UV projection.

This could be really interesting for some projects. Please any help would be great for those who control better the OSL scripting.

Best,
JO
Attachments
Parallax_mapping.zip
orbx scene
(10.55 MiB) Downloaded 545 times
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
Posts: 1067
Joined: Sun Aug 31, 2014 7:08 am
Location: London
Contact:

Jolbertoquini wrote:Hi Guys,

I was looking around for OSL script for parallax mapping projection and Find this one here http://www.racoon-artworks.de/?p=773 is working for me on the orbx attached I jsut don't know how to changes some parts there to make work.

First is the UVW is based on world space I guess need be on Object space, also then be able to scale the texture as usually UV projection.

This could be really interesting for some projects. Please any help would be great for those who control better the OSL scripting.

Best,
JO

I was speaking with @Pascal and he gave me a great idea to replace the line "vector uvwIn = vector(u,v,0)" by "point uvwIn = P" and is working better get the texture displayed properly but I fell the parallax has a offset on the x axis on the UV I don't know how to get that fixed we still looking at :)
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
Posts: 1067
Joined: Sun Aug 31, 2014 7:08 am
Location: London
Contact:

Hi Guys

It's Alive is working Guys... here scene attached, I think need be adjust the OSL script I'm terrible with that but is working, maybe Dev Team could actually propose a new octane projection node? or just help and have a more clean script.

Big shout out to Pascal and Fadj for the help. they point out some solutions after testing a bit is better!

Here the scene attached.

Best,
JO
Attachments
Parallax_mapping_Final.zip
Orbx scene
(8.05 MiB) Downloaded 451 times
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
noldo
Licensed Customer
Posts: 88
Joined: Wed May 25, 2011 7:07 pm

Thank's!!!
User avatar
Jolbertoquini
Licensed Customer
Posts: 1067
Joined: Sun Aug 31, 2014 7:08 am
Location: London
Contact:

Hi Guys,

Here a new scene, I adjust a bit actually the 2d transform was wrong my bad! here a great result with other type of texture.

Cheers,
JO
Attachments
render
render
Parallax_Fire.zip
Orbx_scene
(5.65 MiB) Downloaded 394 times
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
noldo
Licensed Customer
Posts: 88
Joined: Wed May 25, 2011 7:07 pm

I try your shader, great result but the shading seems inverted along 1 axis...
I try to investigate.

Edit. Found it, it works with the normal map y inverted.
User avatar
Jolbertoquini
Licensed Customer
Posts: 1067
Joined: Sun Aug 31, 2014 7:08 am
Location: London
Contact:

noldo wrote:I try your shader, great result but the shading seems inverted along 1 axis...
I try to investigate.

Edit. Found it, it works with the normal map y inverted.
Yes please take the latest orbx scene you can see better I had to invert stuffs to make work please check texture settings and etc.

This will help.

If we are lucky dev team could help us to get something better :)

Cheers,
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
VVG
Licensed Customer
Posts: 301
Joined: Sat May 07, 2016 2:34 pm

Thanks!
Win 10x64, AMD 1950x 16C/32T, RAM 32Gb, RTX 3060x3
Octane-for-C4D(R23.110)2021.x.x, Cycles4D, Centileo. Nvidia 472.47 STUDIO
User avatar
Jolbertoquini
Licensed Customer
Posts: 1067
Joined: Sun Aug 31, 2014 7:08 am
Location: London
Contact:

VVG wrote:Thanks!
You welcome is a wip, please don't hesitate to share it if you find something better for the script, we manage to get without flip but require more samples, but also we try to get the height texture to be like a imager node cause this case we can tile the textures please let us know.

Cheers,
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
Posts: 1067
Joined: Sun Aug 31, 2014 7:08 am
Location: London
Contact:

Hi There,

The best results are with 2019's beta with OC4.0.5 doesn't work really well the OSL I realize this morning I don't why I guess was some OSL updates...

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
Post Reply

Return to “Development Build Releases”