pco38 Posted May 14, 2015 Share Posted May 14, 2015 Hi,I have a problem with the fonction DrawText.This function works fine on a plane created in babylon, but the same source code used on a plane exported from 3ds Max does not work.Is somebody know how to resolve this problem?Thanks for your help. Quote Link to comment Share on other sites More sharing options...
Wingnut Posted May 14, 2015 Share Posted May 14, 2015 http://www.html5gamedevs.com/topic/13952-multiple-problems-using-videotexture/#entry79934 might apply. Your plane might be exporting from Max... without UV's... and dynamicTextures NEED UV's. It might be as simple as putting a temporary diffuseTexture on the plane before exporting. Maybe easier, there might be a "generate UVs" choice in Max, somewhere. Good luck! Quote Link to comment Share on other sites More sharing options...
pco38 Posted May 14, 2015 Author Share Posted May 14, 2015 Hi wingut,Thanks for your response. I will try to find the choice generate UVs in 3ds Max ;-) because it's a model done by an other person and my knowledge of 3ds Max function is very poor...I'am just in charge to animate an existing model...I hope that Google will help me ;-) Quote Link to comment Share on other sites More sharing options...
pco38 Posted May 15, 2015 Author Share Posted May 15, 2015 Hi,I tried to had UVs to my object, but the result is the same... And I'am not sure to have choosen the good option in 3ds Max...Is it possible to had UVs to my plane directly from my babylon script ?Regards, Quote Link to comment Share on other sites More sharing options...
GameMonetize Posted May 15, 2015 Share Posted May 15, 2015 For a plane you can automatically generate it with BABYLON.Mesh.CreatePlane (or CreateGround). See code here:https://github.com/BabylonJS/Babylon.js/blob/master/Babylon/Mesh/babylon.mesh.ts#L1448 Quote Link to comment Share on other sites More sharing options...
pco38 Posted May 15, 2015 Author Share Posted May 15, 2015 Ok, but my problem is to generate it into a plane exported from 3ds. Quote Link to comment Share on other sites More sharing options...
GameMonetize Posted May 15, 2015 Share Posted May 15, 2015 You can see how I generate uv from my link Quote Link to comment Share on other sites More sharing options...
pco38 Posted May 16, 2015 Author Share Posted May 16, 2015 I resolved my problem by setting wrapU and wrapV properties of my dynamicTexture to 1Thanks for your help Quote Link to comment Share on other sites More sharing options...
GameMonetize Posted May 17, 2015 Share Posted May 17, 2015 Cool:) 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.