Emu#dreams Forum | Download | RSS | IRC | ADD NEWS | last 7 days | last 31 days | MUSEUM

Supermodel 0.3 WIP SVN644 [691][witek], 2017-08-29 20:40:17

[Source: https://sourceforge.net/p/model3emu/code/HEAD/tree/]

– Cosmetic.
- Changed fixed shaded logic for step 1.5 hw based upon Harrys findings
– DMA and register space access for Real3D have been unified and CReal3D::ReadRegister() returns little endian data now that the PowerPC handler byte-swaps back, to be consistent with how DMA registers work.
– Modern hardware does backface culling in window space by calculating the face normal for the polygon, then doing a dot product against the view vector. The real3d pro-1000 on the other hand passes a pre-calculated face normal for each polygon which is used for culling. We were using this face normal to rewind the polygons so that regular backface culling would work. This worked 99.9% of the time. However this was failing on some models in Virtua Striker. The reason was because the pre-calculated face normals being passed were actually completely different to the actual face normals for the poly (not just inverted like you would expect). This broke our code. The solution was to emulate face culling directly in the vertex shader using the pre-calculated face normals directly. Only minimally tested this but hopefully there are no obvious regressions.


Only for registered users!