riidefi / RiiStudio

Editor for various 3D model formats
https://riidefi.github.io/RiiStudio/
87 stars 16 forks source link

Viewport no longer displays Scenegraph > Pass 0 #44

Open GerasSB opened 1 year ago

GerasSB commented 1 year ago

As of v5.10.5, Riistudio no longer displays Scenegraph > Pass 0/J3D Data > Flag 1 in its viewport. Materials are always displayed as translucent.

riidefi commented 1 year ago

I cannot reproduce. Can you provide a sample file and some instructions?

GerasSB commented 1 year ago

Here's a demo:

https://user-images.githubusercontent.com/19808950/235012803-084ab830-b37f-4db6-ad34-985f46439b66.mp4

And here's the file in question: donkey_course.zip

Tested with vanilla courses and it doesn't seem to happen with them.

riidefi commented 1 year ago

Note that since there are no overlapping translucent planes necessitating draw sorting, it is not essential for these meshes to be part of the special XLU pass, so long as the decal mesh is drawn last. It appears the rendering order of objects varies between RiiStudio and the game. In RiiStudio, 'c_michi' is rendered after 'a_road2' and 'a_tuchimichi', which conveniently avoids any issues. While Super Mario Galaxy explicitly sorts draws in material-alphabetical order, evidently Double Dash does not and appears to just use shape order. If the original files have identical shape and material orders, this could explain why you are unable to reproduce the issue in that context.