Page 1 of 2 12 LastLast
Results 1 to 10 of 17

Thread: Print text rotated 90 degrees in lua?

                  
   
  1. #1
    DCEmu Regular Anonymous D's Avatar
    Join Date
    Jul 2006
    Posts
    414
    Rep Power
    67

    Default Print text rotated 90 degrees in lua?

    does anyone know of a way to print text rotated 90 degress right? im making a game in LUA and i want to have the psp turned round to play it, to take advantage of the longer screen length. but this means i need to print the variables "down" the right side. is there a simple way to do this?

    sorta like this:
    Spoiler!

  2. #2
    DCEmu Coder drEDN4wt's Avatar
    Join Date
    Aug 2005
    Location
    U.K.
    Posts
    172
    Rep Power
    0

    Default

    well if you use the 3d functions you could print your text to an image, then use the image as a skin for a flat plane and rotate it to whatever you like, even give it perspective, lighting, even reflections supposedly.

    Or edit a font script from another app that doesnt use truetype or standard lua fonts , but have the characters rotated 90 degrees

  3. #3
    DCEmu Regular Anonymous D's Avatar
    Join Date
    Jul 2006
    Posts
    414
    Rep Power
    67

    Default

    im rly not good on 3d functions, ill look into the true type font thing

    ive looked at the ttf example on evil mana and i dont think i rly cvan do it with that, at least not myself, cud you point me in the right directions with the 3D functions? mb its time i learnt them

  4. #4
    DCEmu Coder drEDN4wt's Avatar
    Join Date
    Aug 2005
    Location
    U.K.
    Posts
    172
    Rep Power
    0

    Default

    look at ttlde as an example....its a text editor...look at ascii.png and rotate it in a graphics program.
    then when you understand that bit and get it working, do your own font.

  5. #5
    PSP Coder -Xandu-'s Avatar
    Join Date
    Jan 2007
    Posts
    1,036
    Rep Power
    79

    Default

    The font thing with truetype is pretty stupid no offence, the text will come out like this:


    But yeah, you can print the text to a buffer and then rotate it using the GU.

    Note: PM me if you need help with coding, I have no current project in hand.

  6. #6
    DCEmu Regular Anonymous D's Avatar
    Join Date
    Jul 2006
    Posts
    414
    Rep Power
    67

    Default

    using the GU?? plz explain to me and yes thats the conclusion i came to.

  7. #7
    PSP Coder -Xandu-'s Avatar
    Join Date
    Jan 2007
    Posts
    1,036
    Rep Power
    79

    Default

    Here's the link to 3D GU mapping in Lua.

  8. #8
    DCEmu Regular Anonymous D's Avatar
    Join Date
    Jul 2006
    Posts
    414
    Rep Power
    67

    Default

    i presume Gum.rotateXYZ might be the thing i need
    so can i like...
    Gu.start3d()
    (normal print command)
    Gum.rotateXYZ (rotate text)(though i dont know what format the values go in if any)
    screen:clear()

    (normal blit functions)

  9. #9
    DCEmu Pro dangee's Avatar
    Join Date
    Feb 2007
    Posts
    531
    Rep Power
    65

    Default

    Dont believe it, ur heading for GumsVille less than
    a month after arriving at the main() gates of LuaLand!
    Wondered if this means the 2d-sidescrollers on its way
    to 3d-frontscrollerness...
    I found a detailed Gu library guide (funcs,args,func. descriptons)
    somewhere not long ago but didnt save the url, so U'd
    have to hunt for it,if SUM1 dont post the link.

  10. #10
    DCEmu Regular Anonymous D's Avatar
    Join Date
    Jul 2006
    Posts
    414
    Rep Power
    67

    Default

    the only trhing i need to do is rotate the text rly, themamin game is 2d sprites and is basically finished, i just thought itd be cool to have it run "vertically", as you can just turn the psp, but then the text is dodgy.

Page 1 of 2 12 LastLast

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •