Results 1 to 6 of 6

Thread: Help with DX8 : creating a console

  1. #1

    Thread Starter
    Member
    Join Date
    Jun 2002
    Location
    Netherlands
    Posts
    43

    Help with DX8 : creating a console

    Hey,

    I'm working on a directx8 game and now I've encoutered (the next) problem I can't solve. How can i make a console like window in my game. Is there a way to show another form when the main form is in fullscreen dx8 mode? I know how to program the rest of the console it's just the problem of getting a window with a textfield shown in front of the game (of if really necesary with the game paused on the background).

    thnx for anyone who can help me with this.....

    Jordi

  2. #2
    Ex-Super Mod'rater Electroman's Avatar
    Join Date
    Sep 2000
    Location
    Newcastle, England
    Posts
    4,349
    Have you thort of using Transformed vertices? in other word just make a box using 4 transformed vertices and make it a back color for the text area. Then make a box for every character that should be displayed in the text area and in each box put a image of a character.

    So really its like your making your own TextBox for DirectX. I advise you make the characters the same width, like "Courier New" so then the text area is like a grid of character spaces. If you make the main text area box smaller than the screen size you'll be able to see whats behind it at the edges.

    Hope that helps.
    When your thread has been resolved please edit the original post in the thread ()
    and amend "-[RESOLVED]-" to the end of the title and change the icon to , Thank you.

    When posting Code use the [VBCode]Code Here[/VBCode] tags to be able to use the code highlighting.

  3. #3
    Member SapphireGreen's Avatar
    Join Date
    Sep 2001
    Location
    I do not actually exist
    Posts
    45
    I remember a tutorial on this thing at www.gamedev.net . Just like CounterStrike, right? That's what the tutorial was on.

    Could have used DirectDraw though... not sure.
    On Error Give Up

    Mind over matter. Then if it doesn't matter, you lose your mind.

  4. #4
    Ex-Super Mod'rater Electroman's Avatar
    Join Date
    Sep 2000
    Location
    Newcastle, England
    Posts
    4,349
    I just thort, is your game in 2D or 3D cos if its in 2D you can ignore what I said about the Transformed vertices and just use a sprites instead.
    When your thread has been resolved please edit the original post in the thread ()
    and amend "-[RESOLVED]-" to the end of the title and change the icon to , Thank you.

    When posting Code use the [VBCode]Code Here[/VBCode] tags to be able to use the code highlighting.

  5. #5

    Thread Starter
    Member
    Join Date
    Jun 2002
    Location
    Netherlands
    Posts
    43
    No its a 3d game. Im working on a textbox for directx and I've got a basic thing so, I'll be able to create a console.

    Though I've already encoutered the next problem (it aint easy creating your own 3d engine but thnx to this forum I'm learning a lot)

    Is there any way to create partial transparencies? I've created a shap like object for dx8. In many profesional games you see dialogs with a paratial transparent background so you can see a bit of the world behind it. Is this possible in dx8? If yes, how can i use this with transformed and lit vertices to make my shapes partial transparent?

    btw SapphireGreen, there is indeed a tutorial at gamedev but it didn't teach me antything that i didn't know already so....

    but thnx anyway for your help, figuring all this out by yourself would be a huge task so i appreciate all your help

    Jordi

  6. #6
    Ex-Super Mod'rater Electroman's Avatar
    Join Date
    Sep 2000
    Location
    Newcastle, England
    Posts
    4,349
    Yea thats easy to make it semi transparent, all you need to do is alpha blend, there should be a load of tutorials around about it. You should find it uses the D3DDevice.SetRenderState [something]. Check out this link, its a 2D engine that uses transformed and lit vertices to do effects like alphablending and rotation. http://rookscape.com/vbgaming/tutBT.php
    Another thing, its in DirectX7 but everythings the same for DirectX8 but some of the constants are slightly different in name.
    When your thread has been resolved please edit the original post in the thread ()
    and amend "-[RESOLVED]-" to the end of the title and change the icon to , Thank you.

    When posting Code use the [VBCode]Code Here[/VBCode] tags to be able to use the code highlighting.

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