Results 1 to 11 of 11

Thread: My own TLVertex? -[UN-RESOLVED]-

  1. #1

    Thread Starter
    Banned nareth's Avatar
    Join Date
    Jun 2004
    Posts
    1,206

    My own TLVertex? -[UN-RESOLVED]-

    can i create my own TLVertex like this?

    Type: sx as long , sy as long, tu as long, tv as long: end type

    and would it be useable by dx8?
    Last edited by nareth; Jan 22nd, 2005 at 10:22 AM.

  2. #2
    Ex-Super Mod'rater Electroman's Avatar
    Join Date
    Sep 2000
    Location
    Newcastle, England
    Posts
    4,349

    Re: my own TLVertex?

    Yea you can do that, you need to use an FVF (Flexible Vertex Format) for it.

    For VB:
    http://www.rookscape.com/vbgaming/tutBF.php

    For C++:
    http://msdn.microsoft.com/archive/de..._enum_3i9f.asp
    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

    Thread Starter
    Banned nareth's Avatar
    Join Date
    Jun 2004
    Posts
    1,206

    Re: my own TLVertex?

    is there a way to leave out Z? i dont see any flags for it

  4. #4

    Thread Starter
    Banned nareth's Avatar
    Join Date
    Jun 2004
    Posts
    1,206

    Re: My own TLVertex? -[RESOLVED]-

    no success

    VB Code:
    1. Public Type TLVertex
    2.     sx As Long
    3.     sy As Long
    4.     sz As Long
    5.     tu As Long
    6.     tv As Long
    7. End Type
    8. ...
    9. Call D3DD.SetVertexShader(D3DFVF_XYZ Or D3DFVF_TEX1)

  5. #5
    Ex-Super Mod'rater Electroman's Avatar
    Join Date
    Sep 2000
    Location
    Newcastle, England
    Posts
    4,349

    Re: My own TLVertex? -[UN-RESOLVED]-

    Those are meant to be Single's not Long's
    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.

  6. #6

    Thread Starter
    Banned nareth's Avatar
    Join Date
    Jun 2004
    Posts
    1,206

    Re: My own TLVertex? -[UN-RESOLVED]-

    but those are the problems the singles

  7. #7
    Retired G&G Mod NoteMe's Avatar
    Join Date
    Oct 2002
    Location
    @ Opera Software
    Posts
    10,190

    Re: My own TLVertex? -[UN-RESOLVED]-

    What do you mean by problem? In the tutorial Electroman posted. It was singles....


    ØØ

  8. #8

    Thread Starter
    Banned nareth's Avatar
    Join Date
    Jun 2004
    Posts
    1,206

    Re: My own TLVertex? -[UN-RESOLVED]-

    i think the single messes things up(see my second drawing thread problem)

  9. #9
    Ex-Super Mod'rater Electroman's Avatar
    Join Date
    Sep 2000
    Location
    Newcastle, England
    Posts
    4,349

    Re: My own TLVertex? -[UN-RESOLVED]-

    Quote Originally Posted by nareth
    but those are the problems the singles
    how do you mean? It will only take singles, there is no way to make an FVF to use longs. Its because graphics cards are set up to use floats and in VB thats how you have to do them.
    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.

  10. #10

    Thread Starter
    Banned nareth's Avatar
    Join Date
    Jun 2004
    Posts
    1,206

    Re: My own TLVertex? -[UN-RESOLVED]-

    Quote Originally Posted by Electroman
    how do you mean? It will only take singles, there is no way to make an FVF to use longs. Its because graphics cards are set up to use floats and in VB thats how you have to do them.
    ok i understand that (but singles are inaccurate?) anyhow the ratio of 1 inacurate

    look at my drawing problem thread please...

  11. #11
    Retired G&G Mod NoteMe's Avatar
    Join Date
    Oct 2002
    Location
    @ Opera Software
    Posts
    10,190

    Re: My own TLVertex? -[UN-RESOLVED]-

    It's the HW implementation, and there is no way around that....and Singles are more accurate then longs when we are talking about small numbers.


    And there is no way we can debug the code you have in the other thread when we don't even know what TileWidth and TileHeight is. And what the image size is and so on.


    ØØ

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