Ocean and Foam

3D Studio Max Plugin (Export Script Plugins developed by [gk] and KilaD; Integrated Plugin developed by Karba)
Forum rules
Please post only in English in this subforum. For alternate language discussion please go here http://render.otoy.com/forum/viewforum.php?f=18
Post Reply
brettg19802
Licensed Customer
Posts: 20
Joined: Tue Jun 10, 2014 4:31 pm

I'm really struggling trying to get an ocean texture done correctly.

Here is what I did:
Mix Material
Slot 1: Deeep Ocean Water (wavy) Material (from LiveDB)
Slot 2: Foam (from LiveDB)
Displacement: Using a displacement map to animate the waves

Getting a really bad result. It looks more like blue glossy silk?! If I mix too much sea foam value. The water turns white like snow.

Is there a way to keep the sea foam near the top of the wave crests? Or does anyone have any other ideas of how to achieve an acceptable looking ocean?
Adding more foam
Adding more foam
ocean001test.JPG
voon
Licensed Customer
Posts: 527
Joined: Tue Dec 17, 2013 6:37 pm

I went the easy way and just used a glossy material from the Live DB (ocean water or something) an dmixed it with a texture of waterfoam ... that gave me this:

http://render.otoy.com/forum/viewtopic.php?f=6&t=40318

But the foam texture also sits over my water where I don't want it, not just the foam bits. Next step is adding an alpha channel to the foam texture and just let the foam itself be there... and then playing around with a specular material maybe and sub surface scattering etc. Have to see.
brettg19802
Licensed Customer
Posts: 20
Joined: Tue Jun 10, 2014 4:31 pm

Cant seem to replicate your technique. I tried a Mix Texture:

Slot 1: ocean texture (glossy) from Live DB
slot 2: a specular with SSS
Displacment map to make the waves. But it does not make the waves "roll" or "swoosh" back and forth.

Still cant get the foam to ahow up at the top of the wave crests, where they are supposed to be.

Any detailed suggeations on how to do this with the correct shading details?
brettg19802
Licensed Customer
Posts: 20
Joined: Tue Jun 10, 2014 4:31 pm

I created an ocean movement (from Blender Ocean Toolkit) displacement maps look good.
Basically the problem I am having is with the Foam.

How do you get the foam to sit above the surface. I'm using this texture for foam. Where the heck do i put it, in a Mix Material?
Attachments
b11elements025-tile.png
User avatar
profbetis
Licensed Customer
Posts: 279
Joined: Tue Dec 21, 2010 11:00 am
Contact:

You may have to check that your wave mesh has proper UV mapping. I've run into this problem a bit myself. Put the black and white "crest" mask as a mix value for your mix material; with proper UV's that should be fine.
GTX 1080Ti 11GB (3x), Water-cooled
Intel i7-5820K 6-core @ 3.3GHz
Windows 10 Pro 64-bit, 32GB RAM
boris
Licensed Customer
Posts: 148
Joined: Mon Jan 23, 2012 7:50 am

brettg19802 wrote:Where the heck do i put it, in a Mix Material?
in the "amount" slot.
see:
amount 1 means only material 1 will be used
amount 0 means only material 2 will be used
amount 0.5 means the materials get mixed equally

now you can use a grayscale image to set the amounts on texture basis. 0 = black, 1= white

as i understand you got an animated displacement map. basically you can use this image sequence for your mix material. play with the gamma and black point values or preprocess it in video editing software to get your desired result (you probably want to get rid of the middle (gray) values).

to enhance your result you could try to mix the foam further: put a new mix material in the first mix material (where the foam was), mix foam with water again, this time insert a turbulence texture (animate it to) as amount. play with the values of turbulence.

mix1
-mat1:water
-mat2:mix2
--------mat1:foam
--------mat2:water
--------amount: turbulence
-amount:displacement map

haven't tried but that's what i would try :)
P6T7 WS SuperComputer / i7 980 @ 3.33GHz / 24 GB / 1500W + 1200W PSUs / 6x GTX 680 4 GB + 1x Tesla M2070 6GB (placeholder :))
Post Reply

Return to “Autodesk 3Ds Max”