infinite sea test

Yeah I do.
Then, a sticky topic “nightly updates” or something?
Otherwise every feature or error gets an own topic and makes it very hard to fish them out.

These are of course just my thoughts.

not bad idea

Looks great. Can you post a modified Pool Scene using the ocaean shader?

Thank you for all your kindness, Ivaylo.

I’ve got some test and have some issues. I am not sure what I am missing to fix the issue.
Please check the image below.

From the left image, 1. default, 2. PhoenixFDOceanTex, 3. PhoenixFDOceanTex + Mesher.
As you can see, everything looks perfect if I don’t use Mesher. The shape of ocean wave was changed if I used the mesher. Is it normal? I can’t make the details like the second image. And looks like that foam particle didn’t follow the surface of ocean wave if I used the mesher.

And here is the simple animation test. The camera is slightly moving back. Foam particles doesn’t show up like default one.

Am I miss something for the issue above? And it is not easy to remove the artifact on the edge between simulator and mesher. I’ve tried to change the value of ocean and smooth to remove the artifact. But no luck for me.

Many thanks for your help.


Hi,

I am not sure whether it can help you or not. Because I am not familiar with the new features. You need to test it by yourself as well. Please check the file attached. I’ve checked the option for the infinity ocean and put the PhoenixFDOceanTex to the displacement slot. That’s all.

Best Regards,
pool_ocean.zip (30.8 KB)

yes, the mesher and the implicit rendering give different results. actually this was the reason to make the mesher. our initial intention was to use displaced implicit surface rendering + displaced geometry, but the difference is too visible.
about the foam and displacement - actually the foam follows the surface only when mesher is used for displacement, but you have to set the liquid in the foam shader (this is suggested with default yes button)
about the artifacts at the edge, i just used smoothing 50 to remove them. in my movie the border is still visible, but not like artifacts, just the static surface has less details.
however, it seems like your image is rendered with changed camera position. if you are using 3ds max below 2009 this is caused by the fact that there is no way to obtain the render viewport in these max versions, but if your max is above 2009 this is a bug. please tell me your max version.

edit: the reason your implicit surface to have more details is that your grid resolution is smaller than the wave details. the fine displacement works with precision higher than the grid, but the displacement of the mesher works with the grid resolution.

edit2: seeing the video, now i think not the camera is the problem. please send us the scene, this may be a bug

Thank you for your answer. It helps me a lot.

about the foam and displacement, I think that the liquid in the foam shader was set already in my scene. “mesher is used for displacement” is meaning that need to put PhoenixFDOceanTex to the fine slot of Displacement and turn on the Enable check box? Or something else? Sorry for that. Not easy to understand about it for me.

BTW, I am using 3ds Max 2013, just in case. And please check the scene file attached. It is the scene file for the issue.

Thanks once again.
ocean.zip (72.1 KB)

“mesher is used for displacement” is meaning that need to put PhoenixFDOceanTex to the fine slot of Displacement and turn on the Enable check box?
yes, with “render as mesh” option enabled. in this case, the foam is displaced too.
thanks for the scene, tomorrow will have time to see it. i think i realized where is the problem, you are using animated camera, and now i see that i didn’t finish the code to cover this case.

I am really afraid to tell you about this. As you can see the image above, I’ve got the foam with mesher but it is in the water, not on the water.
As you mentioned, the foam is displaced but it is in the water. It looks weird. Is it normal? Or bug? Or maybe My mistake?

Thanks a lot.

You guys are amazing! Thanks

as i see your surface level is set to 0.3, i recommend you to use 0.5 when rendering with foam.
however this should be not a problem. in my simulation about the half of the foam is below the water, it is just unavoidable, but the foam rendering removes the extra fog color and it looks normal. i’m considering to put fog color overriding in the foam shader parameters, because it can help a lot in such situations. can i see your foam shader settings?

Thank you for your kindness. I got it what you are meaning.
about my foam shader settings, it is just from the sample pool.max scene. I didn’t touch the setting for the foam. And I’ve already attached the scene file below. :slight_smile: (ocean.zip)

Thanks once again.

i found the reason - the option disable liquid shadows does not work with the mesher. in my scene i have selected “affect shadows” option of the material and this makes the foam well lit.
the second reason - i’m using point mode for the foam shader, that is less dependent on the liquid. the bubbles/cellular modes are testing the liquid for inside/outside and render different under and above the water. the point mode does not give in account where you are, the only underwater correction is the of the fog color.
i would recommend bubble,cellular and splash modes to be used only for closeup scenes.

Finally I got the nice one. :slight_smile:
Thank you for all your advice.

Ivo, can you plz shear your foam particle detail? Which parameter did you change from the default?
Another thing, about splash/foam particle size variation, is the value for the both ways up and down? Like if my particle size is 1cm and variance is 3, does it mean I will have 1cm-3cm particles, or is it affecting also above 1cm size?

by default the foam is born by its own birthrate, however in the ocean scenes i change the birth rate to zero and use splash “foam on hit” option.
the size variation is only in upward direction. in version 2.0 there was no lower bubbles than the normal size, but this causes very annoying sharp line when the bubbles are rising up. now there is variation in downward direction, that can’t be controlled. the idea is that the smaller particles are not visible except as group and is not very important to control their variation, but the bigger are quite visible.