Jump to content

DrawText on exported Plane from Blender


roman_44
 Share

Recommended Posts

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

Link to comment
Share on other sites

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#18

What 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.

Link to comment
Share on other sites

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 :)

Link to comment
Share on other sites

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!

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...