Jump to content

Export Terrain from Unity3D


meiskv
 Share

Recommended Posts

Hi Guys,

Is it possible to export at terrain with material in Unity3D or any 3D Studio to babylonjs? 

I already tried it but it export the .babylon file but without the terrain textures. then I try to add a cube with a material it works but the terrain still not visible.

Cheers!

Link to comment
Share on other sites

Last time I used Unity 3D (v3.5), you could export a terrain as a heightmap image. Trouble is that image was in a .raw format.

You can open .raw images in Photoshop or with a program like UFRaw and convert them to more usable .png images.

Another .raw file convertor RawTherapee will do the conversion to .png directly. With UFRaw you have to go through a .tiff image which you can then convert to .png in another graphics program. 

Then use

BABYLON.Mesh.CreateGroundFromHeightMap(....);

cheers, gryff :)

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...