few PVR questions

If you have any questions on programming, this is the place to ask them, whether you're a newbie or an experienced programmer. Discussion on programming in general is also welcome. We will help you with programming homework, but we will not do your work for you! Any porting requests must be made in Developmental Ideas.
Post Reply
MetalliC
DCEmu Crazy Poster
DCEmu Crazy Poster
Posts: 28
https://www.artistsworkshop.eu/meble-kuchenne-na-wymiar-warszawa-gdzie-zamowic/
Joined: Wed Apr 23, 2014 3:04 pm
Has thanked: 0
Been thanked: 0

few PVR questions

Post by MetalliC »

first one about "Z Write disable" bit in ISP instruction word.
it which cases it is valid ?

in my current assumptions it is ignored in the case of PunchThrough polygons (always) and Translucent (if AutoSort is enabled).
anyone can confirm or deny this assumption?

second one about Background plane. many games set BG vertices coords to very strange values, something like [0:160] [180,0] [320:180], instead of normal [0:0] [640:0] [0:480]
is it known what for exactly BG plane verts coord used and how ?

it more looks like them used only to calculate "base values" for gouraud shading, which will be used for whole screen.
User avatar
PH3NOM
DC Developer
DC Developer
Posts: 576
Joined: Fri Jun 18, 2010 9:29 pm
Has thanked: 0
Been thanked: 5 times

Re: few PVR questions

Post by PH3NOM »

MetalliC wrote:first one about "Z Write disable" bit in ISP instruction word.
it which cases it is valid ?

in my current assumptions it is ignored in the case of PunchThrough polygons (always) and Translucent (if AutoSort is enabled).
anyone can confirm or deny this assumption?

second one about Background plane. many games set BG vertices coords to very strange values, something like [0:160] [180,0] [320:180], instead of normal [0:0] [640:0] [0:480]
is it known what for exactly BG plane verts coord used and how ?

it more looks like them used only to calculate "base values" for gouraud shading, which will be used for whole screen.
Yeah, that seems to be a valid assumption... But by default in KOS, AutoSort is enabled.

And the Background Plane is more relative to the Z plane, so I am not sure what you would need it for when handling 2D (x,y) coordinates?
Post Reply