Donate Now Goal amount for this month: 100 USD, Received: 0 USD (0%)
Donate to support this site and ThinBASIC project development

Page 3 of 4 FirstFirst 1234 LastLast
Results 21 to 30 of 34

Thread: TBGL Font Creator [ UPDATED Feb 23 2013 ]

  1. #21

    Possible small Font Creator correction?

    Hi, Petr
    I realized that BMP fonts have excellent quality if 2 conditions are met. 1 - good font file and 2 - TBGL window working with antialiazing and filtering on. The texts are simply great. The problem is that the font creator app handles only 512x512 pix image files. 512x512 will be ok for small size texts if text quality in the file is ok but the truth is that the antialiazing and the alpha channel are not very good. 4 times super-sampling can fix the problem. I can do it manually its not big deal.

    Is it very hard to change it to work with bigger files? Like just add some more values in the image size drop-down menu. 4k x 4k will be really great. Well generally 1k x 1k will be sufficient for nice texts on screen but final texture will be scaled down (sub-sampled) by factor of 4 /like in Photoshop or something else/ so any aliazing issues will be gone. Even Intel GMA adapters handle 4k x 4k textures well nowadays. Its some kind of nightmare to write good quality texts in DX or OGL.
    Last question: is it possible to redirect text output to texture instead of screen ? Its just a question.

    Plamen.

  2. #22
    Super Moderator Petr Schreiber's Avatar
    Join Date
    Aug 2005
    Location
    Brno - Czech Republic
    Posts
    6,421
    Rep Power
    653
    Hi Plamen,

    thanks a lot for your suggestion!

    I will implement first the pick of resolution and then I will look into the direct texture creation, which sounds like a good idea as well.


    Petr
    Learn 3D graphics with ThinBASIC, learn TBGL!
    Windows 7 64bit - Intel Core 2 Duo T6600 @ 2.2GHz - 4 GB RAM - NVIDIA GeForce G210M 512MB
    Windows 8 64bit - Intel Core i5-3350P @ 3.1GHz - 8 GB RAM - NVIDIA GeForce GT640 3GB

  3. #23
    Super Moderator Petr Schreiber's Avatar
    Join Date
    Aug 2005
    Location
    Brno - Czech Republic
    Posts
    6,421
    Rep Power
    653
    Hi Plamen,

    please visit the first forum of this thread for update version of the program .


    Petr
    Learn 3D graphics with ThinBASIC, learn TBGL!
    Windows 7 64bit - Intel Core 2 Duo T6600 @ 2.2GHz - 4 GB RAM - NVIDIA GeForce G210M 512MB
    Windows 8 64bit - Intel Core i5-3350P @ 3.1GHz - 8 GB RAM - NVIDIA GeForce GT640 3GB

  4. #24

    Font Creator

    Thanks a lot Petr,
    It's awesome. I tested 4k x 4k and after down-sampling to 1k no traces of aliazing are visible. Letters are beautiful. You are my hero!!!!!

  5. #25
    Senior Member ReneMiner's Avatar
    Join Date
    Oct 2012
    Location
    Germany
    Age
    44
    Posts
    791
    Blog Entries
    3
    Rep Power
    87
    I just wonder why this is not built-in at thinAir-Menubar "Tools/Utilities" yet?
    Could it be improved just a little bit so user can select distance of shadow from letter?
    Windows 8.1, 64Bit, Intel Core i5-3330 @3.0 GHz, 8 GB Ram, nVidia Gforce GT630 2 GB DDR3 @835MHz (+ 2 GB dedicated graphics memory)
    Proud member of the initiative 'Keep the forum interesting'

  6. #26
    Super Moderator Petr Schreiber's Avatar
    Join Date
    Aug 2005
    Location
    Brno - Czech Republic
    Posts
    6,421
    Rep Power
    653
    Hi,

    I updated the program with user defined shadow offset, please download from the first post of this thread


    Petr
    Learn 3D graphics with ThinBASIC, learn TBGL!
    Windows 7 64bit - Intel Core 2 Duo T6600 @ 2.2GHz - 4 GB RAM - NVIDIA GeForce G210M 512MB
    Windows 8 64bit - Intel Core i5-3350P @ 3.1GHz - 8 GB RAM - NVIDIA GeForce GT640 3GB

  7. #27
    If you don't mind using standard TrueType fonts, used by the system, Opengl outline fonts are very versatile. (wglUseFontOutlines), Scaling is unlimited and they are even fast enough to use for an editor.

    Charles

  8. #28
    Senior Member ReneMiner's Avatar
    Join Date
    Oct 2012
    Location
    Germany
    Age
    44
    Posts
    791
    Blog Entries
    3
    Rep Power
    87
    cool!

    I like it, especially fading effect is very cooooool.
    Windows 8.1, 64Bit, Intel Core i5-3330 @3.0 GHz, 8 GB Ram, nVidia Gforce GT630 2 GB DDR3 @835MHz (+ 2 GB dedicated graphics memory)
    Proud member of the initiative 'Keep the forum interesting'

  9. #29
    Senior Member ReneMiner's Avatar
    Join Date
    Oct 2012
    Location
    Germany
    Age
    44
    Posts
    791
    Blog Entries
    3
    Rep Power
    87
    Sorry if double-post, but I miss that tool still beeing accessable on thinAir Tool\Utilities-Menu - would be nice to have it next to Charmap there.

    ...so I had to download it once again...



    Some crazy idea I just had:
    create some "sprite-sheet"-sized to a fonts format and use TBGL_PrintBMP for the sprites then

    Would it be possible to load and display fonts which are not currently installed on the system?
    Last edited by ReneMiner; 23-02-2013 at 11:47.
    Windows 8.1, 64Bit, Intel Core i5-3330 @3.0 GHz, 8 GB Ram, nVidia Gforce GT630 2 GB DDR3 @835MHz (+ 2 GB dedicated graphics memory)
    Proud member of the initiative 'Keep the forum interesting'

  10. #30
    Super Moderator Petr Schreiber's Avatar
    Join Date
    Aug 2005
    Location
    Brno - Czech Republic
    Posts
    6,421
    Rep Power
    653
    Hi Rene,

    Some crazy idea I just had:
    create some "sprite-sheet"-sized to a fonts format and use TBGL_PrintBMP for the sprites then
    to use TBGL_PrintBMP for sprites you just need to supply image with sprites placed on grid 16x16 tiles, then it should work.

    Would it be possible to load and display fonts which are not currently installed on the system?
    I don't know where would the program take the information about how the font looks in such a case
    But you can generate the BMP/TGA on system where font is and then use this BMP to draw this font on any PC from the bitmap.

    Sorry if double-post, but I miss that tool still beeing accessable on thinAir Tool\Utilities-Menu - would be nice to have it next to Charmap there.
    Please make the request in the support section - this is the place where developers go to check what is needed to add.


    Thanks,
    Petr
    Learn 3D graphics with ThinBASIC, learn TBGL!
    Windows 7 64bit - Intel Core 2 Duo T6600 @ 2.2GHz - 4 GB RAM - NVIDIA GeForce G210M 512MB
    Windows 8 64bit - Intel Core i5-3350P @ 3.1GHz - 8 GB RAM - NVIDIA GeForce GT640 3GB

Page 3 of 4 FirstFirst 1234 LastLast

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
  •