Results 1 to 11 of 11

Thread: 3D text

  1. #1

    Thread Starter
    So Unbanned DiGiTaIErRoR's Avatar
    Join Date
    Apr 1999
    Location
    /dev/null
    Posts
    4,111

    Post

    Some little proggy I made makes 3 different types of text check it out: http://members.xoom.com/tagsclan/ct.exe
    It's compiled in version 5.0.
    Tell we what you think!
    Also if you know of any good directx tutorial sites tell me.
    Thanks, and if you download and like it I guess you're welcome too

    ------------------
    DiGiTaIErRoR

  2. #2

    Post

    What function do you use to draw the text? Can you send me the source code?

  3. #3
    New Member
    Join Date
    Jan 2000
    Location
    birmingham, UK
    Posts
    1

    Post

    Really enjoyed your cool text. Would have good potential if you could make an OCX of this.
    I'm sure you have the DirectX7aSDK from the microsoft site. There are some excellent tutorials of DirectX in VB \DXF\samples\multimedia\vbsamples directory of this large download.

    Unfortunately D3D and VB6 info in press or on the net is rather sparse. Will send you my code when I finish developing my directX software.


    Erasmus


    Originally posted by DiGiTaIErRoR:
    Some little proggy I made makes 3 different types of text check it out: http://members.xoom.com/tagsclan/ct.exe
    It's compiled in version 5.0.
    Tell we what you think!
    Also if you know of any good directx tutorial sites tell me.
    Thanks, and if you download and like it I guess you're welcome too


  4. #4
    New Member
    Join Date
    Aug 1999
    Posts
    15

    Post

    Yes, quite nice. One thing I noticed, is that when I would have text in the box, then switch to the 3rd display option, the text graphics would get very big, and only be able to show about 1/2 the characters from before, and going back to either display option #1 or #2 would still have these oversized characters. (or maybe you meant it to work this way)

    It would be cool if we could choose the font size, too.



  5. #5

    Thread Starter
    So Unbanned DiGiTaIErRoR's Avatar
    Join Date
    Apr 1999
    Location
    /dev/null
    Posts
    4,111

    Post

    If you see the textbox that says '50' that's the font size You can't change the font size of mode 2 yet but you can on Mode 1 and the 3D mode plus you can't change the font etc. I don't know about an OCX(don't know how to make one!) maybe make a module though then a function like:
    CoolText Picture1.picture, Arial, 50, rgb(255,255,255), [mode] 1,2,3 etc.
    But if you know how to make an OCX tell me.
    Plus I don't have Direct X that file is HUGE

    ------------------
    DiGiTaIErRoR
    VB, QBasic, Iptscrae, HTML
    Quote: There are no stupid questions, just stupid people.

  6. #6

    Thread Starter
    So Unbanned DiGiTaIErRoR's Avatar
    Join Date
    Apr 1999
    Location
    /dev/null
    Posts
    4,111

    Post

    Actually you just use this syntax:
    Picture1.Print "Hello world"
    it uses the pictures font size,name etc.
    and the picture1.forecolor to draw it!
    Good luck
    Originally posted by Klas Pettersson:
    What function do you use to draw the text? Can you send me the source code?


    ------------------
    DiGiTaIErRoR
    VB, QBasic, Iptscrae, HTML
    Quote: There are no stupid questions, just stupid people.

  7. #7
    Conquistador
    Join Date
    Dec 1999
    Location
    Australia
    Posts
    4,527

    Post

    Nice Program!

    Just a few suggestions, for the fonts, test box why not try this :
    You need to have a combo box named cboFonts, and its style set to Dropdown list.
    Code:
       Dim F
       For F = 0 To Screen.FontCount - 1
          cboFonts.AddItem Screen.Fonts(F)
       Next F
       cboFonts.ListIndex = 0
    Also a problem with your save:
    When you do not key anything in the inputbox it raises an error.

    You should use an error handler like so:
    Code:
    on error goto ending:
    working blah blah
    
    ending:
    
    ----------------OR----------------
    
    if SaveInputBox = "" then exit sub


    ------------------
    david
    Teenage Programmer


  8. #8
    Addicted Member ZanM's Avatar
    Join Date
    Oct 1999
    Location
    The here and now.
    Posts
    191

    Post

    Hey I really need the code to make that text for a button I'm making. I will make you a ocx of the code if you let me use it

  9. #9
    Hyperactive Member
    Join Date
    Sep 1999
    Location
    Leeds, UK
    Posts
    287

    Post

    Hi ZanM,

    I was the one who came up with the idea, you may have seen my post 'Cool Text FX'? After I posted the code, DigitalError elaborated on the idea and came up the the program that he is posting now. You can download my code here http://members.xoom.com/rino_2/cool_text.zip but its not as good as DigitalError's.


    [This message has been edited by rino_2 (edited 02-13-2000).]

  10. #10
    Addicted Member ZanM's Avatar
    Join Date
    Oct 1999
    Location
    The here and now.
    Posts
    191

    Post

    Thaks rino_2

    ------------------
    SomeTimes Coffee Just Isn't Enough.
    Zan Magi

  11. #11
    Conquistador
    Join Date
    Dec 1999
    Location
    Australia
    Posts
    4,527

    Post

    digital error,
    could you please email me the source to your program...

    [email protected]



    ------------------
    david
    Teenage Programmer


Posting Permissions

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



Click Here to Expand Forum to Full Width