| We hope you enjoy your visit. You're currently viewing the Ultimate 3D Community as a guest. This means that you can only read posts, but can not create posts or topics by yourself. To be able to post you need to register. Then you can participate in the community active and use many member-only features such as customizing your profile, sending personal messages, and voting in polls. Registration is simple, fast, and completely free. Join our community! If you are already a member please log in to your account to access all of our features: |
| Drawing a 2d text problem; *solved* | |
|---|---|
| Topic Started: Jan 13 2009, 07:45 AM (143 Views) | |
| DarksideX | Jan 13 2009, 07:45 AM Post #1 |
|
Member
![]() ![]() ![]() ![]()
|
Hi. I want to draw a 2d text onto the screen. Im using this code to set up the font, in create event. SetFont("Arial",1,16,0,255,255,255,1); And this code in Draw event (Tried step event aswell, didnt work) DrawText(1,10,10,"Hello World"); But nothing is showing up :/ What am i doing wrong? -Ali Edit: My object is visible, depth is 0, no sprite, no parent. Edited by DarksideX, Jan 13 2009, 08:19 AM.
|
![]() |
|
| ashrat3000 | Jan 13 2009, 08:07 AM Post #2 |
|
u3d raytracer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]()
|
In u3d, alpha ranges from 0-255, not 0-1. So your text is there, its just got a really small alpha. Change that to 255 and you'll see it. |
|
그대를 사랑해 | |
![]() |
|
| DarksideX | Jan 13 2009, 08:19 AM Post #3 |
|
Member
![]() ![]() ![]() ![]()
|
That solved it perfectly. Thank you ![]() Should have read that part more carefully in the manual XD -Ali |
![]() |
|
| « Previous Topic · Questions about Ultimate 3D · Next Topic » |





![]](http://209.85.48.18/static/1/pip_r.png)




5:03 AM Sep 3