Dave2001
Moderator
We're trying to translate SetPrimDepth z into a z value that we can use like any other vertex's z.
According to docs, SetPrimDepth uses the following equation, with screenZ the value input to SetPrimDepth:
screenZ=(z/w)*0x3fe0 + 0x3fe0
This is kind of a hard question to ask, but we need to know sooo much more about how this equation works.
I believe the place to start is what exactly does w represent for SetPrimDepth? Or does z even represent the z we're trying to find?
[edited to make question much shorter & less history
]
According to docs, SetPrimDepth uses the following equation, with screenZ the value input to SetPrimDepth:
screenZ=(z/w)*0x3fe0 + 0x3fe0
This is kind of a hard question to ask, but we need to know sooo much more about how this equation works.
I believe the place to start is what exactly does w represent for SetPrimDepth? Or does z even represent the z we're trying to find?
[edited to make question much shorter & less history
Last edited: