Parallax Mapping

Parallax Mapping

ftesla
Observer Observer
10,679 Views
23 Replies
Message 1 of 24

Parallax Mapping

ftesla
Observer
Observer

Hello,

Is it possible to create a Parallax Mapping effect with a height map and a normal map using Arnold ?

parallax

(DECALmachine for Blender)

0 Likes
10,680 Views
23 Replies
Replies (23)
Message 2 of 24

Anonymous
Not applicable

Yes, you could try adapting something like this to Arnold: https://catlikecoding.com/unity/tutorials/rendering/part-20/

0 Likes
Message 3 of 24

RGhost77
Advisor
Advisor

You can try this one OSL shader http://www.racoon-artworks.de/?p=773


Royal Ghost | veda3d.com
0 Likes
Message 4 of 24

giandosopaolo
Advocate
Advocate

I tried it in Arnold for Maya. It loads correctly but it does not do anything :/. It also outputs in XYZ which is confusing as it should be plugged in the texture UV, leaving one channel out 😕

0 Likes
Message 5 of 24

madsd
Advisor
Advisor

We can build both shaders with core Arnold nodes, hirachy will not be super small, but it should be doable.
Just realy weird, you are the second person mentioning that there is problems with OSL in Maya.

0 Likes
Message 6 of 24

giandosopaolo
Advocate
Advocate

Would it be possible for you to create a working Parallax Occlusion shader for Arnold? It would be so amazing! 😄

0 Likes
Message 7 of 24

madsd
Advisor
Advisor

Ill give it a stab.

0 Likes
Message 8 of 24

giandosopaolo
Advocate
Advocate

Thanks Mads!

0 Likes
Message 9 of 24

giandosopaolo
Advocate
Advocate

Hi Mads, did you have any luck? 🙂

0 Likes
Message 10 of 24

madsd
Advisor
Advisor

Thanks for the bumping.
Havent had a chance to look at it yet.
Will report back when I got something:

Did you try the OSL version in the meantime?

0 Likes
Message 11 of 24

giandosopaolo
Advocate
Advocate

Yes. It loads in Maya Arnold but it does not work sadly.

0 Likes
Message 12 of 24

giandosopaolo
Advocate
Advocate

Bump 😄 Any idea on this topic guys? @MadsDrøschler You said "We can build both shaders with core Arnold nodes, hirachy will not be super small, but it should be doable". I'd be massively interested to learn how to do it.

0 Likes
Message 13 of 24

giandosopaolo
Advocate
Advocate

Thanks Tim

I am not a technical person sadly. I am afraid I would not even know where to start 😕


0 Likes
Message 14 of 24

giandosopaolo
Advocate
Advocate

I know how to use Maya Arnold nodes but that's it. That is why I was oping there was a OSL shader doing the trick in Arnold, or a way to built a similar effect using maya Arnold utility nodes.

0 Likes
Message 15 of 24

giandosopaolo
Advocate
Advocate

Hi Mads,

Question, when you say, "We can build both shaders with core Arnold nodes, hirachy will not be super small, but it should be doable. "

Do you mean that it is possible to obtain a Parallax Occlusion Mapping effect in Maya Arnold just by using the regulat Hypershade nodes?

0 Likes
Message 16 of 24

madsd
Advisor
Advisor

Yeah, but the network will be rather big.
Find any thorough Technical paper on Paralax mapping and use it as pseudo code to wire up nodes, its going to be 100s of nodes though, just as a warning, no there is no tutorial, you have to figure it out by translating information into a setup you build with core arnold nodes yourself 🙂

Else, why does the OSL one not work, are you sure you are setting it up correctly?

0 Likes
Message 17 of 24

giandosopaolo
Advocate
Advocate

Hi Mads!

Yes I did read the technical papers, and I understand the principle but I must admit they are a level of math above my technical knowledge atm. Mostly it is hard to understand how to translate it in which precise nodes.


I would LOVE to make the OSL work. And it does load correctly, which it makes it even more frustrating.

http://www.racoon-artworks.de/?p=773

The instructions show how to make it work in 3D Max and I think I imitated the shader tree correctly in Maya, it is just not rendering any parallax, even with a very high Strenght. No effect.


0 Likes
Message 18 of 24

madsd
Advisor
Advisor

You could try post about it in OSL Shaders facebook group, Martin is in it, then highlight his name. Its not really an Arnold related thing, and he is not Arnold user, yet.

0 Likes
Message 19 of 24

giandosopaolo
Advocate
Advocate

I texted Martin some months ago. Since he does not use Maya/Arnold he does not think he can help sadly 😕

I can try posting on the OSL facebook group though. Maybe someone can give me a hand. OSL should work cross platform, I am really in the dark on why it is not working.

0 Likes
Message 20 of 24

giandosopaolo
Advocate
Advocate

@

I did post it on the OSL forum as you suggested 🙂

So far nobody has answered but I keep my fingers crossed.

BTW, I added here a picture of my Shader tree in comparison to the 3DMax one.

6653-pom.jpg

0 Likes