roman_44 Posted January 1, 2016 Share Posted January 1, 2016 Happy New Year to all Babylon Folks!I was trying to export scene from Blender and then put some text on it. And I got no luck So I tried to simplify my issue and export only one plane.So I created one more plane from playground and do exactly the same code to draw text and its working, but the same code is not working on exported plane.Maybe you will find the issue.....Thanks! http://babylonjs-playground.com/#1UAWH2#15 Quote Link to comment Share on other sites More sharing options...
JCPalmer Posted January 1, 2016 Share Posted January 1, 2016 I have looked at both. You probably need to create UV to use a DynamicTexture. I assume you know how to do this in Blender. Quote Link to comment Share on other sites More sharing options...
gryff Posted January 1, 2016 Share Posted January 1, 2016 roman_44 - JCP is right you need UVs. Try this playground I added line 20 to include UVs. cheers, gryff Quote Link to comment Share on other sites More sharing options...
roman_44 Posted January 2, 2016 Author Share Posted January 2, 2016 Thank u guys! It is working now!!! Quote Link to comment Share on other sites More sharing options...
roman_44 Posted January 8, 2016 Author Share Posted January 8, 2016 Now I have same problem when exporting from 3dMax.So I tried everything to export just one mesh from 3dmax and put some text with dynamic texture. and text is not showing.But color is applying.Take a look at this playground: http://babylonjs-playground.com/#1UAWH2#18What do I need to do with UV in 3ds max? I just put default 3ds max material on this plane and put uvmap modifier. So plane has uv's in exported file, but still text is not showing. Quote Link to comment Share on other sites More sharing options...
roman_44 Posted January 8, 2016 Author Share Posted January 8, 2016 Or even here I changed uvs - and then I can see at least something. I just don't know why original uv's are comes wrong from 3ds max.http://babylonjs-playground.com/#1UAWH2#20 Quote Link to comment Share on other sites More sharing options...
gryff Posted January 8, 2016 Share Posted January 8, 2016 Well roman - I UV mapped a plane in Blender and created a playground using your code - just substituted my exported code for yours in the "sceneObj" variable: My Plane Seems to work OK. I don't know what this "uvmap modifier" does in 3dMax. Is it creating UVs or modifying UVs? cheers, gryff Quote Link to comment Share on other sites More sharing options...
roman_44 Posted January 8, 2016 Author Share Posted January 8, 2016 This is how properties are looks like - http://i.imgur.com/gNgyMF6.png .Everything is defaults, except V-tile. If I will put it to -1, then I will get this: http://babylonjs-playground.com/#1UAWH2#22. And even with this text is stretched. gryff, thanks for your help. Do you know why your text is also stretched? What do I need to do to get normal non stretched text on non square planes?Thanks for your help! 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.