Jump to content

AdvanceTexture Having problems.


Recommended Posts

Here is my playground.

The TEXT and image compared to the size of the plane make no sense what so ever. 

https://www.babylonjs-playground.com/indexstable#ZI9AK7#191  How do you reconcile the 2? 

The text is minature. I know it can be done just no idea how. Maybe they can't be combined?

If I make the plane smaller 

var plane = BABYLON.Mesh.CreatePlane("plane",0.5, scene);
It makes the text even smaller. 
If you resize the plane 
var plane = BABYLON.MeshBuilder.CreatePlane("plane",{width:2, height:1}, scene);
the text gets shorter It does not hold its aspect ratio.
Link to comment
Share on other sites



I try to avoid using anything.top and anything.left.  Instead...

image.horizontalAlignment = 0;
image.paddingLeft = "3px";

Lines 47/48.  Those are better.  :) 

text1.resizeToFit = true;
text1.autoStretchWidth = false;

I don't like those two lines, either... but... that's just me.  :)

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.

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.


  • Recently Browsing   0 members

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