The Official Supermodel Work-in-Progress Thread

Discuss Supermodel and your favorite Model 3 games. Show off your latest threads, this is the place to see and be seen.
Forum rules
Keep it classy!

  • No ROM requests or links.
  • Do not ask to be a play tester.
  • Do not ask about release dates.
  • No drama!

The Official Supermodel Work-in-Progress Thread

Postby Bart » Sun Dec 25, 2011 11:30 pm

Just in time for Christmas, I think I've finally fixed some issues with back-face culling, allowing mirrored tracks to work in Daytona 2 and Scud Race Plus. This also fixes the inverted wheels in Dirt Devils.

Image
Image

I still have more testing to do before making a formal WIP post on the news page. Assuming I've really fixed the problem (and haven't introduced new bugs), the code desperately needs to be optimized. A relatively expensive 3x3 matrix inversion and a few matrix multiplications have to be performed for each model instance in order to determine the forward-facing direction. But still, it's a start! The inverted geometry problem has been bugging me for a long time so to have finally figured out where the problem was is a nice little Christmas present for me.

Merry Christmas to all and to all a good night!
User avatar
Bart
Site Admin
 
Posts: 1681
Joined: Thu Sep 01, 2011 2:13 pm
Location: New York City

Re: The Official Supermodel Work-in-Progress Thread

Postby venomv1986 » Tue Dec 27, 2011 4:35 am

Good Luck!
Last edited by venomv1986 on Tue Feb 28, 2012 7:06 am, edited 1 time in total.
Image
User avatar
venomv1986
 
Posts: 93
Joined: Fri Nov 04, 2011 2:41 am

Re: The Official Supermodel Work-in-Progress Thread

Postby Outrunner » Tue Dec 27, 2011 7:20 am

This also fixes the ugly lightsaber and luke's hands in Star Wars Trilogy Arcade.

The lightsabers are still blackish in color tho.
User avatar
Outrunner
 
Posts: 37
Joined: Sat Sep 24, 2011 7:51 pm
Location: Romania - Bucharest

Re: The Official Supermodel Work-in-Progress Thread

Postby BadMouth » Tue Dec 27, 2011 10:23 am

Sweet. Sounds like you're enjoying working on it, which is always important. :D
User avatar
BadMouth
 
Posts: 47
Joined: Sun Sep 25, 2011 10:42 am

Re: The Official Supermodel Work-in-Progress Thread

Postby Bart » Tue Dec 27, 2011 12:14 pm

Outrunner wrote:This also fixes the ugly lightsaber and luke's hands in Star Wars Trilogy Arcade.


What do you mean? Can you post before/after screenshots? I'm assuming you've tried out the SVN build.

The lightsabers are still blackish in color tho.


I believe this is a rendering order problem. It's not understood how Model 3 sorts polygons, if at all, or whether that information is implicit in the way the scene graph is laid out. MAME solves the problem by sorting every single polygon by Z distance and rendering back-to-front. This will virtually always look correct (and is even better than what the actual Model 3 hardware actually does). Per-polygon sorting is not an option in Supermodel because I accelerate rendering by batching up entire models into vertex buffer objects to be decoded once and rendered each time they are referenced.

When the renderer is rewritten some point in the future, I will look into some sort of rudimentary sorting on a per-model basis, but the bigger reason for redesigning it is to fix the remaining texture formats. We're not yet ready to go there.
User avatar
Bart
Site Admin
 
Posts: 1681
Joined: Thu Sep 01, 2011 2:13 pm
Location: New York City

Re: The Official Supermodel Work-in-Progress Thread

Postby GambitRogue777 » Tue Dec 27, 2011 1:22 pm

Bart wrote:Just in time for Christmas, I think I've finally fixed some issues with back-face culling, allowing mirrored tracks to work in Daytona 2 and Scud Race Plus. This also fixes the inverted wheels in Dirt Devils.

Image
Image

I still have more testing to do before making a formal WIP post on the news page. Assuming I've really fixed the problem (and haven't introduced new bugs), the code desperately needs to be optimized. A relatively expensive 3x3 matrix inversion and a few matrix multiplications have to be performed for each model instance in order to determine the forward-facing direction. But still, it's a start! The inverted geometry problem has been bugging me for a long time so to have finally figured out where the problem was is a nice little Christmas present for me.

Merry Christmas to all and to all a good night!


Stupid question, but does this fix the severe geometry problems with the malfunctioning games?
Image Image Go, Bonnie, go!
User avatar
GambitRogue777
 
Posts: 73
Joined: Sat Oct 08, 2011 12:04 pm

Re: The Official Supermodel Work-in-Progress Thread

Postby Bart » Tue Dec 27, 2011 1:28 pm

Nope, it was a completely unrelated bug. I've been looking at Ocean Hunter's scene graph data this morning but still don't understand what's going on.
User avatar
Bart
Site Admin
 
Posts: 1681
Joined: Thu Sep 01, 2011 2:13 pm
Location: New York City

Re: The Official Supermodel Work-in-Progress Thread

Postby Jiterdomer » Tue Dec 27, 2011 5:47 pm

Thanks bart looking forward to the next release, Keep it up!
Feel the heartbeat of my machine through this tight seat. I feel every motion of my machine
Image
User avatar
Jiterdomer
 
Posts: 425
Joined: Mon Sep 26, 2011 6:37 pm
Location: Los Angeles, CA

Re: The Official Supermodel Work-in-Progress Thread

Postby Outrunner » Tue Dec 27, 2011 8:38 pm

Bart wrote:
Outrunner wrote:This also fixes the ugly lightsaber and luke's hands in Star Wars Trilogy Arcade.


What do you mean? Can you post before/after screenshots? I'm assuming you've tried out the SVN build.


Here you go my friend, screenies up.

P.S: The game is slightly off screen because i usually run the emu in fullscreen and i was too lazy to change the resolution when going windowed :P .
Attachments
UGLY.jpg
Taken with 0.2a.
UGLY.jpg (158.88 KiB) Viewed 30181 times
GOOD.jpg
Taken with SVN r220 (0.3a WIP)
GOOD.jpg (156.2 KiB) Viewed 30181 times
User avatar
Outrunner
 
Posts: 37
Joined: Sat Sep 24, 2011 7:51 pm
Location: Romania - Bucharest

Re: The Official Supermodel Work-in-Progress Thread

Postby GambitRogue777 » Wed Dec 28, 2011 1:21 pm

For Christmas I got an Asus desktop with a GeForce GT 220 and a Core2 Quad. It runs Supermodel with no lag, but Scud Race and Daytona USA 2 are running at about 40 FPS average. I've increased the framerate with the PowerPC frequency on the front-end to 50Hz, but that doesn't seem to help. I run Windows Vista Home Premium 64-bit, for your concerns about OS. Anyways, I'm done complaining about this!

Anyway, are we expecting to see the PowerPC and the IRQ timers clocked properly in the next version of Supermodel? And as well as a full-tuned SCSP core?
Image Image Go, Bonnie, go!
User avatar
GambitRogue777
 
Posts: 73
Joined: Sat Oct 08, 2011 12:04 pm

Next

Return to The Catwalk

Who is online

Users browsing this forum: Bing [Bot], Majestic-12 [Bot] and 7 guests