0
$\begingroup$

I want to apply a gradient like texture on an ocean plane. Without the modifier, it works perfectly as shown below.

As soon as the Ocean modifier is applied with repetition on the X and Y axis, the UV Map is neither tiled nor applied to the whole surface.

I tried Object, Generated and UV without success.

How can I fix that?

Without modifier:

enter image description here

With Ocean modifier:

enter image description here

Modifier options:

enter image description here

$\endgroup$

2 Answers 2

2
$\begingroup$

You could use UV Project modifier after the Ocean modifier to project UVs from another object:

enter image description here

$\endgroup$
0
$\begingroup$

For me with Blender 4.0 beta, Martynas solution didn't work (the UVproject modifier didn't work with the Ocean modifier). But the approach gave me an idea which was useful ^^ Thank you!

Adding an intermediary geometry is indeed the solution. With an additional plane, the UVmap of the plane is chosen as an input for the texture coordinates in the shader of the ocean. And it works like a charm.

enter image description here

EDIT : Martynas solution DO work in Blender 3.6 at least.

$\endgroup$
10
  • $\begingroup$ I am glad that you found another acceptable solution, but I don't know what you are talking about regarding UV project modifier not working. It works just fine as well. $\endgroup$ Commented Sep 2, 2023 at 18:46
  • $\begingroup$ Well I must be super unlucky :/ I don't know why it doesn't work : screenshot here $\endgroup$
    – Jag JB
    Commented Sep 2, 2023 at 19:03
  • $\begingroup$ OK, that's weird. I am using version 3.6.1 Baybe you are using older version? May be a bug. $\endgroup$ Commented Sep 2, 2023 at 19:22
  • $\begingroup$ I'm on 4.0 beta. I just edited my answer to enable your solution $\endgroup$
    – Jag JB
    Commented Sep 2, 2023 at 19:23
  • $\begingroup$ I thought it's pretty much the same with Material nodes and the modifier. Well the node solution is definitely not worse in any way, so at least that works. $\endgroup$ Commented Sep 2, 2023 at 19:25

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .