Procedural V-Ray Sand Material by Javier Pintor

Many of you asked for it and here it is – Javier Pintor’s Procedural V-Ray Sand Material as showcased in his forum WIP thread. You will find here a short textual how-to supported with a video without commentary and the 3ds max scene file. Feel free to use it for any project you like.

Step 1

Open the “sand_start.max” scene and assign V-Ray as the rendering engine (no matter what version you are using). Set it for a test render so you don’t waste too much time in this demonstration. The following image show how I usually do it, which doesn’t mean you can’t do it your way :-)

Render Settings

Step 2

Next step will be to create a plane of 500x500cm centered in X, Y and Z and with 100 segments in both directions like so.

Setting up the work plane

Step 3

Now let’s add a “Displace” modifier, set the strength to 30cm, open the material editor, go to the very last material and instance the map from the diffuse slot to the empty map slot in the displace modifier.

Adding Noise

Step 4

Apply the “Sand” material, you will see how the colors will change in the plane to a red, green and blue gradient. The gradient will determin the levels of the color, bump and displacement depending on the height of the surface, and for that reason we need to add a “UVW Map” modifier and set it as shown in the following image.

UVW Mapping of displacement height

Step 5

First Make sure the “Real-World Map Size” option is turned off and then, the last step is to add a “VRayDisplacement” modifier, set it to 3D mapping with amount of 30cm, then back to the material editor and in the “sand” material, instance the gradient from the “Displace” slot to the “Texmap” slot in the “VRayDisplacement” modifier.

V-Ray Displacement

Step 6

Hit render and that’s it for now.

Initial Render

I made available also a video tutorial where I go further and apply some other technique like adding grass with Particle Flow or a VRayDisplacement to a tree. Please check it out above, at the beginning of this post, if skipped it :-)

Final Render

Thank You, Javi Pintor.

You are welcome to comment on this article and ask questions using the comment box below!

31 comments
jayshekhawat64
jayshekhawat64

First thanks a lot for sharing . i tried this mtl to learn sand shader, but as displacement was being complicated for me so i decided to make it little easy. and here is the result. first image is my result . second image is what javior pintor made for displacement so basically i was need the same to get same displacement. and what i did - i went to inside of javior pintor displacement map and captured a image (3rd one) and i made it seamless to get rid black edge on corner while uvw mapping . then i used gradient map same as javior used (image 4) but i just put that jpeg which i captured and it worked perfectly . and last image(5th) is snapshot in slat mtl mode.  even i couldn't get perfect sand but it's little easy for me. sorry for my English and thanks again to Ronen Bekerman and javior pintor for sharing.

RobertAndresArenas
RobertAndresArenas

Ronen where is the file? i cant find it to use the sand material :(

lee o
lee o

Hi, same problem for me, impossible to download the file. Could you please re upload it ?


Thank you

maken
maken

Hey! Great Material, would love to use it.  Unfortunately I am having the same issue as aayushchopra.  


Could you please refresh the link.  Thank you.

aayushchopra
aayushchopra

Hi Could you please re upload the material ..!! Megaupload link is not working ..!!

ThomasLeudet
ThomasLeudet

Hi, I've a problem I haven't the small waves. I don't understand can you help me please

mjkl
mjkl

Yeah, It's really nice (it's a shame it doesn't concern the image from the banner though).

markonens
markonens

Thank you Javi for share and tutorial.

itchy
itchy

thanks for share.. really like it :)

sameer ghouri
sameer ghouri

thanx for sharing everything...u did very nice :)

metrocubicodigital
metrocubicodigital

Hi all,

Great effort and free material. Amazing rly.

1 question:
If i want to use the sand mat in an huge surface how will it work best. Sry havent seen the video yet.

Cheers

ate
ate

thanks for share Javier!! you did a great material

Julian
Julian

Great - tutorial - I learned alot!! Thanks for sharing.

Tolgahan Gungor
Tolgahan Gungor

Really good material work. We are waiting your other good metarials.

Keep going.

tom
tom

beautiful!!!

Thanks Author, Javier! and Ronen too for this opportunity. Very usefull!

Javier Pintor
Javier Pintor

Thank you guys!! and thanks to Ronen for posting it.

I'm glad you like it.

kodissimo
kodissimo

good job Javier. thank you for sharing !

islant
islant

Fantastic tutorial, great Job, Thanks!

remKa
remKa

Excellent ! Thank you !

Annkos
Annkos

Thanks Javier!! Great work!