Coder Social home page Coder Social logo

gSPDMATriangles about gliden64 HOT 4 CLOSED

olivieryuyu avatar olivieryuyu commented on August 14, 2024
gSPDMATriangles

from gliden64.

Comments (4)

gonetz avatar gonetz commented on August 14, 2024

The current code uses the second nibble of the command to get the number of triangles.
As you can see, in command 0x05110020, it is also 2.
I checked, for command cmd, the second nibble is always equal to the sixth nibble + 1:
((cmd>>20)&15)+1) == ((cmd>>4)&15)
But if the ucode actually uses value of the sixth nibble, ok.

if 0, texturing is set off.
if 1, texturing is set on

I was not used. I added that code.

The rest is already implemented exactly as you described, see gSPDMATriangles function.

Fixed in commit b021d8e.
I don't expect any changes in Mickey Speedway USA and JFG, which use that ucode.

from gliden64.

olivieryuyu avatar olivieryuyu commented on August 14, 2024

Super :)

I am going through the whole ucode actually. Interesting code, mainly when it comes to matrix and vertex.

There is not much difference with current implementation but there is some details which we can add, even if it won't lead i guess to much changes :)

from gliden64.

olivieryuyu avatar olivieryuyu commented on August 14, 2024

@gonetz

actually DKR has exactly the same code for gSPDMATriangles. No distinction should be made here so between DRK and JFG.

from gliden64.

gonetz avatar gonetz commented on August 14, 2024

actually DKR has exactly the same code for gSPDMATriangles. No distinction should be made here so between DRK and JFG.

Done.

from gliden64.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.