meiskv Posted May 18, 2016 Share Posted May 18, 2016 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! Quote Link to comment Share on other sites More sharing options...
NasimiAsl Posted May 18, 2016 Share Posted May 18, 2016 what kind of mesh you have it ? Quote Link to comment Share on other sites More sharing options...
meiskv Posted May 18, 2016 Author Share Posted May 18, 2016 47 minutes ago, NasimiAsl said: what kind of mesh you have it ? Hi @NasimiAsl, its a terrain mesh. Quote Link to comment Share on other sites More sharing options...
NasimiAsl Posted May 18, 2016 Share Posted May 18, 2016 is that triangulate? Quote Link to comment Share on other sites More sharing options...
meiskv Posted May 18, 2016 Author Share Posted May 18, 2016 Hi @NasimiAsl, how will I know if its triangulate? Is it okay if I send you the unity.package file? Cheers! Quote Link to comment Share on other sites More sharing options...
NasimiAsl Posted May 18, 2016 Share Posted May 18, 2016 is that auto generated you can't export like a mesh test it with export .obj type in unity Quote Link to comment Share on other sites More sharing options...
meiskv Posted May 18, 2016 Author Share Posted May 18, 2016 @NasimiAsl, does it mean if the mesh is triangulate it can be export to babylonjs with the texture? Quote Link to comment Share on other sites More sharing options...
gryff Posted May 18, 2016 Share Posted May 18, 2016 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 Quote Link to comment Share on other sites More sharing options...
meiskv Posted May 22, 2016 Author Share Posted May 22, 2016 Hi @gryff, I already did it what I did is change the image as a material not a texture. Thanks for this new tools i'll note this for future things that I might need it. Cheers! Quote Link to comment Share on other sites More sharing options...
Recommended Posts
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.