Comments (4)
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.
Thank you so much! Just saved me a tonne of work.
from n64.
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.
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)
- install-toolchain troubles HOT 2
- Checking for Suffix of Object Files Error HOT 2
- install_dep installs incorrect binaries on MSYS2 HOT 3
- Gru doesn't build with Lua 5.4 and above HOT 1
- gsSP1Triangle not parsed correctly HOT 5
- B1 op code to `gSP2Triangles` HOT 1
- Innaccurate gfxdis F3DEX output
- No support for `gSPFogPosition` command & inaccurate combine/LERP HOT 3
- Bug when decoding `gSPSetOtherMode`/`gsSPSetOtherMode` macro on `gfxdis.f3dex`
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from n64.