Тёмный

V-Ray | PARALLAX OCCLUSION - The better Normal Map? 

Jonas Noell
Подписаться 18 тыс.
Просмотров 19 тыс.
50% 1

In this tutorial you will learn how to build a custom OSL Shader that enables you to use Parallax Occlusion in V-Ray for 3ds Max. Parallax Occlusion tries to mimic Displacement Mapping without acutally subdividing and displacing the geometry. Everything is done within the shader itself.
We will first talk about the existing way on how to add surface details using traditional methods such as Displacement and/or Normal Mapping. After building our custom OSL Shader we will talk about when it makes sense to use this kind of shader and where Displacement is superior.
I am using 3ds Max 2022 and V-Ray 5 in this demo but you can also use the same techniques for older versions as long as they support OSL.
A similar workflow can also be used in other software such as Cinema4d, Maya, Blender and different kind of render engine such as Corona, Octane, Redshift, Arnold, Cycles, CyclesX, Eevee and countless others if they support OSL.
Chapters:
00:00 - Introduction
01:08 - Resources
01:56 - Normal Mapping
04:43 - Displacement Mapping
06:09 - Parallax Occlusion (OSL)
10:55 - Conclusion
12:25 - Outro
Be sure to subscribe to the channel in order to be notified about upcoming tutorials :-)
If you want to download the scene files for all my tutorials or see additional videos then please check out my Patreon:
/ jonasnoell
Download the OSL Shader:
www.racoon-artworks.de/resour...
Megascans:
quixel.com/megascans

Кино

Опубликовано:

 

5 авг 2024

Поделиться:

Ссылка:

Скачать:

Готовим ссылку...

Добавить в:

Мой плейлист
Посмотреть позже
Комментарии : 55   
@JonasNoell
@JonasNoell 2 года назад
✅Check out Patreon for all my scene files, bonus videos, a whole course on car rendering or just to support this channel 🙂 patreon.com/JonasNoell
@intiazrahim
@intiazrahim 2 года назад
Another great vid. Always keep learning!
@ChaosTheory_net
@ChaosTheory_net 2 года назад
Hey Jonas! Great video on Parallax occlusion - and great with some current pros/cons!
@mrThepunisher92
@mrThepunisher92 2 года назад
Hey thanks for the video, very helpful!
@ThomasMiller3D
@ThomasMiller3D 2 года назад
That's awesome! Thanks for sharing it. I'm probably going keep using displacement for the reasons you outlined in the end, but it's nice to see what's going on at the cutting edge of CG development. Look forward to seeing how/if Chaos implements something similar natively in V-Ray.
@JonasNoell
@JonasNoell 2 года назад
Me too, I could imagine it would be much more optimized then going through OSL :-)
@microbounce2009
@microbounce2009 2 года назад
amazing,thanks for tutorial
@saifaliksa8085
@saifaliksa8085 2 года назад
Amazing..thanks
@jefierro
@jefierro 2 года назад
vielen dank das war sehr interessant
@SanOcelotl
@SanOcelotl 2 года назад
Nice, this Is a good one
@3dhype633
@3dhype633 2 года назад
me: "oh nice, I'll download it right away" - watching Jona's video, especially the end... "oh good, back into the trash". No, very good video! I find OSL Shader very exciting, always interesting to see what's there!
@JonasNoell
@JonasNoell 2 года назад
Haha, well it has its use. Especially for GPU rendering where memory is an issue. But I think it's not a gamechanger, especially with the much slower performance. Also made me realize to use more displacement instead of normalmaps, even for smaller stuff.
@3dhype633
@3dhype633 2 года назад
@@JonasNoell yes, GPU & V-Ray is absolutely no go-to workflow for me personally either, whenever I started a project with it, there were problems with the memory at the end.... Good to know that the shader helps here, that could be a workaround :)
@narenjakable
@narenjakable 2 года назад
great video again !!! i really appreciate your works and sharing them with all.Also it would be nice to go through fabric material designing which can be one type of fabric with different method of creating for each video.
@JonasNoell
@JonasNoell 2 года назад
Good idea, I will add that on my list.
@happybuggy1582
@happybuggy1582 Год назад
Every ground and walls and terrain should do this!!!
@vladimirradetzki807
@vladimirradetzki807 5 месяцев назад
Спасибо!
@shahulfreakhunter6109
@shahulfreakhunter6109 2 года назад
Good video bro
@MrMadvillan
@MrMadvillan 24 дня назад
taking a look at this for gpu workflow. I’m wondering if poor performance is rendertime or memory - i’m guessing you save a ton on memory?
@samanatrian
@samanatrian Год назад
In some cases parallax occlusion has more advantages than displacement. Displacement has undesirable results when it comes to collision of some objects, also when creating a modular game environment or an archviz large environment, displacement cant fulfill all the needs, creating some artifacts, etc. To have a better comprehension of what I am saying, imagine we have two connecting walls at a corner. If each wall contains only one simple plane, and you have aligned them with snap tools, when using displacement, you will encounter with some backfaces and light leakage you didn't expect. But P.O. can maintain the actual geometry which is more desirable in these cases. So when using displacement you should predict a new geometry. For another example, if in this video, we had a cylinder for rocks instead of a circular plane, the geometry would pop out of the plate walls, but PO doesnt bring us these issues.
@JonasNoell
@JonasNoell Год назад
That is ture, as said everything always has pros and cons. I can definitely say that some things you pointed out would be disadvantages of displacement. However there are also advantages such as that it affects the shadows in the way you would expect and it works better for shallower camera angles where the illusion of PA would break. So feel free to use whatever works best for you in your scenario :-)
@MrMadvillan
@MrMadvillan 24 дня назад
If you uv unwrap your surfaces and have continuous topology you can use hight based displacement that will displacement on the UV level rather than tessellate your 3d. You then only have to specify your map resolution for better results. It’s way less memory intensive and you don’t have to worry about continuity. Imo most people(especially archives) default to 3d displacement bc they don’t want to learn even just basic uv mapping. Then have issue with ram limits… go figure.
@trikth
@trikth 2 года назад
That's great! Thanks for sharing it! Why when i set up osl map it takes so long to load?
@JonasNoell
@JonasNoell 2 года назад
Interesting, you can see the loading speed in the video for me, I didn't have the feeling it took extremely long for me.
@scpk2246
@scpk2246 2 года назад
Hi Jonas, can you give advise how to deal with jagged edge? (e.g. extreme white outside window and windows black frame) -since "Color Clamp" is gone in vray 5
@L3nny666
@L3nny666 Год назад
Filmic Tonemapping?
@AllenYauAnimation
@AllenYauAnimation 2 года назад
Great tutorial, thanks! Always wondering if I can use parallax mapping in V-Ray! I'm wondering if the performance issue is caused by the not optimized OSL codes (only with my no-basis assumption)? Or the max samples was too high? Maybe one can try to use lower parallax occlusion max sample/lower depth scale and compensate that with lower VRayDisplacementMod amount/edge length?
@JonasNoell
@JonasNoell 2 года назад
Hi, I checked with Chaos if they plan on implementing it officially and in a more optimized way. It seems to be on the list but even they state that tere is also a risk to be slow even through a native support. So, fingers crossed... :-)
@AllenYauAnimation
@AllenYauAnimation 2 года назад
@@JonasNoell Thanks for the info! I tried your method and the result is very similar. The OSL parallax mapping is slower and uglier than VRayDisplacementMod.
@PabloMacias-zs2js
@PabloMacias-zs2js Год назад
Hi!! first of all thanks for the video :). I have a problem and I don't know if you can help me but I try to download the shader clicking the download button on the racoon site but it pops a page with a lot of coding. Do you know how to download properly? Thanks in advance and awesome content!!
@JonasNoell
@JonasNoell Год назад
After the code is open just right click the window and select Save As and save it as whatevername.osl
@samettemucin2438
@samettemucin2438 2 года назад
Jonas about megascans some materials have normal and bump maps at the same time,using normal map channel with add bump map ;what's the difference right?
@JonasNoell
@JonasNoell 2 года назад
I normally would not use any of the provided bumpmaps from Megascans and just use only the Normal- and/or Displacement Map. Not really sure why they alway mix that in. Maybe could make sense if the bumpmap contains very high frequency details which for some reason are not in the Normalmap, so you could add this very subtle as an extra level of detail.
@samettemucin2438
@samettemucin2438 2 года назад
@@JonasNoell Thank you Jonas.
@DaT_Animations
@DaT_Animations 2 года назад
I'm considering becoming a patreon and I was wondering if your tutorials apply to vray next?
@JonasNoell
@JonasNoell 2 года назад
I think most do, unless they are some specific tutorial about V-Ray 5 features.
@antoniovoto
@antoniovoto 2 года назад
excuse me,how do i create the osl material from the text i find in the download? thanks
@JonasNoell
@JonasNoell 2 года назад
You need to right click on the download button and then select "Save Link as" to download the code
@antoniovoto
@antoniovoto 2 года назад
@@JonasNoell thanks !
@sergio1991M
@sergio1991M 2 года назад
The only flaw in parallax occlusion is it how it interacts with shadows. The shadow lays flat on the surface as if it has no volume. If you compare the shadow of the teapot from displacement to parallax you'll notice it as well. Displacment 5:28 Parallax 9:23
@JonasNoell
@JonasNoell 2 года назад
Yeah, as said it's rather an optical illusion that has its downturns compared to real displacement...
@L3nny666
@L3nny666 2 года назад
Bump needs to be set to 100 to display the normal map correctly? First Time i Heard of this…isnt that just the amount?
@JonasNoell
@JonasNoell 2 года назад
Yes and the normal map is baked out with a defined intensity so if you want to show this as intended you need to put the bump intensity to 100
@L3nny666
@L3nny666 2 года назад
@@JonasNoell thanks
@maksphilippov8054
@maksphilippov8054 Год назад
Does it work on corona?
@JonasNoell
@JonasNoell Год назад
As it's an OSL I guess it should work the same.
@chengizHan90
@chengizHan90 2 года назад
bro depth is not working do you know what I missing?
@JonasNoell
@JonasNoell 2 года назад
Based on this detailled description: No
@chengizHan90
@chengizHan90 2 года назад
@@JonasNoell bro for now its working(depth scale) but one more problem occured that is map is stretching when i increase depth it spread
@chengizHan90
@chengizHan90 2 года назад
@@JonasNoell there is one more question that is how to apply POM on curved shape?
@sagarpanchal5011
@sagarpanchal5011 2 года назад
Hi Sir I am product Designer. I am rendering primary images for a company (Product on white background) my object edges are pixelated - please give me solution!
@JonasNoell
@JonasNoell 2 года назад
You need to increase the Sampling
@sagarpanchal5011
@sagarpanchal5011 2 года назад
@@JonasNoell Thank You Sir! I was done some research and found a way. I used Vray Box Filter with size 2 & Problem solved. Then also once again thank you sir... Your videos help me lot.
@edgarprotsko1558
@edgarprotsko1558 Год назад
Where is lesson about megascan and why we must invert green channel ? Please link!
Далее
V-Ray | Realistic PROCEDURAL OCEAN Shader
13:17
Просмотров 48 тыс.
ТЫ С ДРУГОМ В ДЕТСТВЕ😂#shorts
01:00
significantly speed up renders in blender
4:52
Просмотров 31 тыс.
V-Ray | Procedural CONCRETE SHADER
20:15
Просмотров 17 тыс.