Hello guys ..I am creating 3d room editor which is at last steps...i added many function like rotation_x_axis when you click on it ,the get_integer(....) box appers which feels odd on editor ...Is thier any way of creating textboxes in 3d menu...as i see many examples of 2d textboxes and added the ortho projection in their draw event...it does not work....please helpppp.....
Text fields in 3d?
Started by ShubhamBansod, May 23 2012 06:12 PM
4 replies to this topic
#1
Posted 23 May 2012 - 06:12 PM
#2
Posted 23 May 2012 - 06:38 PM
What about them doesn't work?
#3
Posted 23 May 2012 - 06:57 PM
The text area became black..not showing the text...
thanxx 4 d reply...
thanxx 4 d reply...
#4
Posted 23 May 2012 - 08:08 PM
Sounds like a simple draw_set_color() issue. Make sure whenever colours are changed, that you either "reset" them to white, or change them again when necessary.
#5
Posted 25 May 2012 - 01:33 AM
If you're using lighting, make sure you turn it off when you draw your text boxes. I find it helpful to have a 3d controller with a depth of 100, and a 2d controller with the depth of -100. In the 2d controller, have this in the draw event:
Now set the depth of all the objects that need to be draw 2d, to -101 or lower.
d3d_set_hidden(0) d3d_set_lighting(0) d3d_set_fog(0, 0, 0 ,0) d3d_set_projection_orth(0,0, view_wview[0], view_hview[0])
Now set the depth of all the objects that need to be draw 2d, to -101 or lower.
0 user(s) are reading this topic
0 members, 0 guests, 0 anonymous users











