Welcome Guest [Log In] [Register]
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:

Username:   Password:
Add Reply
Drawing a 2d text problem; *solved*
Topic Started: Jan 13 2009, 07:45 AM (143 Views)
DarksideX
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.
Offline Profile Quote Post Goto Top
 
ashrat3000
Member Avatar
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.

그대를 사랑해


Offline Profile Quote Post Goto Top
 
DarksideX
Member
[ *  * ]
That solved it perfectly. Thank you :)

Should have read that part more carefully in the manual XD

-Ali
Offline Profile Quote Post Goto Top
 
« Previous Topic · Questions about Ultimate 3D · Next Topic »
Add Reply