GithubHelp home page GithubHelp logo

Handling gsSPLine3D from Mario Kart 64 about n64 HOT 4 CLOSED

mkst avatar mkst commented on July 17, 2024
Handling gsSPLine3D from Mario Kart 64

from n64.

Comments (4)

glankk avatar glankk commented on July 17, 2024

This is a bug in gfxdis.f3dex and gbi.h with -DF3DEX_GBI. A similar issue for SP1Triangle (#15) has been fixed, but is still present for SPLine3D.

from n64.

MegaMech avatar MegaMech commented on July 17, 2024

Thank you so much! Just saved me a tonne of work.

from n64.

MegaMech avatar MegaMech commented on July 17, 2024

I don't think this issue is resolved.
Original rom:
B5 00 00 00 06 00 0A 08
Compile:
B5 00 00 00 00 0A 08 00
Gfxdis:
gsSPLine3D(0, 5, 0),

Matching implementation:
mk_Spline3D(6, 0, 10, 8)

mk_gbi.h (hack for matching):

#define __mk_gsSPLine3D_w1f(v0, v1, v2, v3)		            	\
     (_SHIFTR((v3), 0,8)|_SHIFTL((v2), 8, 8)|	                  	\
     _SHIFTL((v1), 16, 8)|_SHIFTL((v0), 24, 8))

#define mk_Line3D(v0, v1, v2, v3)				            	\
{{								                  	\
	_SHIFTL(G_LINE3D, 24, 8)|0,                                 	\
	__mk_gsSPLine3D_w1f(v0, v1, v2, v3)			           		\
}}

It's suspected that mk64 used an older version of gbi.h. It's possible that there's nothing wrong with Line3D and mk is just different.

Also, is it possible to get gfxdis to continue reading the next DL after gsSPEndDisplayList()?

from n64.

glankk avatar glankk commented on July 17, 2024

That's weird, I've never seen any G_LINE3D variant that takes four vertices, so that might very well be an old or custom version of F3DEX. If this line command is documented somewhere, it might be appropriate to include it in gfxdis.f3dexb and gbi.h when -DF3DEX_GBI -DF3D_BETA is used.
gfxdis does not support continuing after SPEndDisplayList or SPBranchList at the moment.

from n64.

Related Issues (10)

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.