Page 2 of 2 FirstFirst 12
Results 11 to 17 of 17

Thread: Print text rotated 90 degrees in lua?

                  
   
  1. #11
    DCEmu Pro dangee's Avatar
    Join Date
    Feb 2007
    Posts
    531
    Rep Power
    67

    Default

    thought maybe ur doing the 2plyr heads-up space invaders thng.
    found this dog-eared .html in my Recycle bin.

  2. #12
    DCEmu Regular Anonymous D's Avatar
    Join Date
    Jul 2006
    Posts
    414
    Rep Power
    68

    Default

    right.....this is so confudisng me i think ill stick to horizontal for now

  3. #13
    DCEmu Pro dangee's Avatar
    Join Date
    Feb 2007
    Posts
    531
    Rep Power
    67

    Talking Goo Sauce

    Didnt intend to put u off using Gu, its a powerful
    resource ,well worth any time taken to get it working.
    Guess its 1 of them thngs thats easier to learn by
    hacking about with working code snippets to see what
    happens, rather than trying to decipher the manual. Not
    yet much Lua Gu source about tho.

    So sure I saw a Lua function somewhere (no Gum) that
    rewrote the pixels of an image to turn it 90,180 or 270.

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

    Default

    the pixel by pixel method is too slow.

    i believe the fastest method would be a re-write of the method used in ttlde and others.

    ttlde does not use print or fontprint.
    it has the font laid out in an image file as below.
    yours could be alot simpler if you don't need chinease .

    you then have the text you wish to print, read it character by character and using its ascii code you look-up the character in your font image file.
    then blit just the area of the font image file that has your char in....then the next but instead of bliting the next to the right of the previous one....blit it below/above it .

    or if you want to try 3d gu...heres a link to an early app of mine that uses the 3d gu to show thousands of triangles.

    http://www.dcemu.co.uk/vbulletin/showthread.php?t=21242

  5. #15
    DCEmu Pro dangee's Avatar
    Join Date
    Feb 2007
    Posts
    531
    Rep Power
    67

    Talking f~unGoo

    Dammit, got into this-didnt want to ,but enjoyed it anyway.
    hope you can use this code AnonD, should help you avoid the
    goo ...for the time being...,
    (unless, of course,
    drED's tasty sauce
    changed ur mind at all)

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

    Default

    wow...thats whats i was talking about....nice one dangee.

    it may be even faster though if it created all the needed characters in one go before they were needed, to get all the print commands out of the way,

    or have them in an image file as i said earlier.

    but still, your solution is superb :thumbup: and probably far better than he deserves jk.

  7. #17
    DCEmu Pro dangee's Avatar
    Join Date
    Feb 2007
    Posts
    531
    Rep Power
    67

    Smile

    ..& ur praise is probbly more than I deserve
    but thx NEhow drED, its always easier to code a clearly described
    solution. Actually,it was great to find some more GU stuff
    to work with.
    I dont think AnonD really expected what looked like a
    straight-forward piece of coding to get so complex.

    Itd be nice to see a Sticky Gum 'n' Goo tutorial...

Page 2 of 2 FirstFirst 12

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
  •