Jump to content


Photo

Text fields in 3d?


  • Please log in to reply
4 replies to this topic

#1 ShubhamBansod

ShubhamBansod

    Pokemon Master

  • GMC Member
  • 257 posts
  • Version:GM8

Posted 23 May 2012 - 06:12 PM

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.....
  • 0

#2 BattleRifle BR55

BattleRifle BR55

    Moo

  • GMC Member
  • 8251 posts
  • Version:GM7

Posted 23 May 2012 - 06:38 PM

What about them doesn't work?
  • 0

#3 ShubhamBansod

ShubhamBansod

    Pokemon Master

  • GMC Member
  • 257 posts
  • Version:GM8

Posted 23 May 2012 - 06:57 PM

The text area became black..not showing the text...
thanxx 4 d reply...
  • 0

#4 BattleRifle BR55

BattleRifle BR55

    Moo

  • GMC Member
  • 8251 posts
  • Version:GM7

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.
  • 0

#5 Follomania

Follomania

    Unum Mirabile

  • GMC Member
  • 445 posts
  • Version:GM:Studio

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:
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




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users