thrice Posted December 29, 2016 Share Posted December 29, 2016 I'm not sure what the "x" and "y" are even doing here, or what they are relative to. In a bunch of the examples, there is a Y value of 512 or so. If I set that Y value, my text magically shows up. If I change it to like 200, it disappears. Also, I can't even see my text unless I set a font size of > 900px. It seems like render text has no concept of the position of the dynamic textured it's being rendered on? I have a plane, which has a StandardMaterial with a dynamicTexture attached, and I am trying to render text onto that texture, relative to the planes position. It seems like X and Y might be relative to the canvas? But if that is the case, what is the point of drawing the text on the dynamic texture? (I am building a card game, and the cards have attribute values, I am trying to render the text relative to the cards posiiton). My questions are: 1. Is there a better way of rendering text onto my plane (which moves around the scene, and I would like to keep the text attached to the plane as it moves around)? 2. What are the X and Y of dynamic texture .drawText relative to? Quote Link to comment Share on other sites More sharing options...
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.