|
-
Jan 22nd, 2005, 06:04 AM
#1
Thread Starter
Banned
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.
-
Jan 22nd, 2005, 08:22 AM
#2
Ex-Super Mod'rater
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.

-
Jan 22nd, 2005, 08:27 AM
#3
Thread Starter
Banned
Re: my own TLVertex?
is there a way to leave out Z? i dont see any flags for it
-
Jan 22nd, 2005, 10:17 AM
#4
Thread Starter
Banned
Re: My own TLVertex? -[RESOLVED]-
no success
VB Code:
Public Type TLVertex
sx As Long
sy As Long
sz As Long
tu As Long
tv As Long
End Type
...
Call D3DD.SetVertexShader(D3DFVF_XYZ Or D3DFVF_TEX1)
-
Jan 22nd, 2005, 10:26 AM
#5
Ex-Super Mod'rater
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.

-
Jan 22nd, 2005, 10:28 AM
#6
Thread Starter
Banned
Re: My own TLVertex? -[UN-RESOLVED]-
but those are the problems the singles
-
Jan 22nd, 2005, 10:29 AM
#7
Re: My own TLVertex? -[UN-RESOLVED]-
What do you mean by problem? In the tutorial Electroman posted. It was singles....
ØØ
-
Jan 22nd, 2005, 10:30 AM
#8
Thread Starter
Banned
Re: My own TLVertex? -[UN-RESOLVED]-
i think the single messes things up(see my second drawing thread problem)
-
Jan 22nd, 2005, 10:31 AM
#9
Ex-Super Mod'rater
Re: My own TLVertex? -[UN-RESOLVED]-
 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.

-
Jan 22nd, 2005, 10:33 AM
#10
Thread Starter
Banned
Re: My own TLVertex? -[UN-RESOLVED]-
 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...
-
Jan 22nd, 2005, 10:38 AM
#11
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
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|