0
$\begingroup$

/*Edited: For Blender 2.7 Users I found a detailed articel with pictures. */

I want to build an VR-Scene in Unity with a little Island and and ocean around. Example Picture of my current status

For the ocean I am quite happy with the ocean modifier and made already an looping animation with the water.

animation Gif

But I simply cannot find a solution to export the mesh + animations to Unity. I keyframed the time and scale and found the problem, that these can't update when I apply the modifier. To my understanding blender needs to apply the modifier when exporting, so I can even get the shape of Ocean.

[Picture of my modifier settings[2]

I tried and failed with this explanation.

Could somebody please give me an more beginner friendly explanation?

Here is my blendfile: google drive link

$\endgroup$
8
  • $\begingroup$ drive.google.com/open?id=1KFXwSZOEZkUK1K4hLUY0APrCdHQQexrJ $\endgroup$
    – FFeller
    Jul 29, 2019 at 12:12
  • $\begingroup$ @DuarteFarrajotaRamos yeah, none of them solve my question, where the third one doesn't even really has an answer. $\endgroup$
    – J-Gallus
    Jul 29, 2019 at 16:38
  • $\begingroup$ @FFeller okay! Seems like you applied the modifiers and baked the Animation to the frames! That's exactly what I want. So how did you do it? $\endgroup$
    – J-Gallus
    Jul 30, 2019 at 8:23
  • $\begingroup$ First you have to apply the scale with ctrl+a on the ocean (this will mess up the scale, but you can adjust it after the procedure). Then select the ocean and export it to mdd. Then apply the modifiers. After all, just select the ocean again and import the mdd. Then the keyframes will appear, you dont have to use any other modifier. May be you will have two extra frames before the first and after the last frame, which are a little dislocated, but you can easily delete them. $\endgroup$
    – FFeller
    Jul 30, 2019 at 8:34

1 Answer 1

0
$\begingroup$

I used the official Blender 2.8 release and it works fine.

What to do:

  1. Select your 'Ocean Object' and press ctrl + a to apply the scale.
  2. With your object selected click file -> export -> Lightwave Point Cache (.mdd)
  3. Save the mdd file.
  4. Apply your ocean modifier
  5. With the object selected click import and import your mdd file again.

The whole process takes only seconds now.

$\endgroup$
1
  • $\begingroup$ You need to have the NewTek MDD format addon enabled to this this option in the export menu. $\endgroup$
    – Silas
    Nov 8, 2023 at 4:54

You must log in to answer this question.

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