MAMEWorld Central >> News
View all threads Index   Flat Mode Flat  

Bart T.
Reged: 01/07/06
Posts: 194
Send PM
Re: Supermodel WIP Update: LeMans 24, Fighting Vipers 2, and Star Wars Trilogy
02/14/11 06:21 PM


Those aren't the graphical glitches that I was referring to but you bring up a good point. Supermodel is effectively performing flat shading right now. The renderer supports vertex normals, of course, but I don't know how to compute them. Model 3 only stores polygon normals. In most situations, such as with inanimate objects, it's not noticeable, but on human figures, it is glaringly obvious.

Here is a screenshot of Lost World from the actual machine, courtesy of Abelardo who has been supplying me with very useful videos of this game and Scud Race to compare against:



Now compare with flat-shaded Supermodel:



Ugly, right? It's been really bugging me. Using a slightly different way to compute lighting, similar to how specular lighting is usually done, I can do a little better:



But still, the fundamental problem is missing information. A polygon normal is not sufficient. What if I search for all faces with the same vertex and interpolate the normals? The result looks perfect:



The Le Mans girls will look perfect as well using this method and even the cars in-game start to look a lot nicer. Unfortunately, this calculation is O(n^2) in polygons, and is therefore unacceptably slow. I refuse to believe that the Model 3 actually did this. But look how close it looks to the actual thing!

Looking at polygon dumps, I don't see any per-vertex attributes that could control shading or sharing of polygon normals.

It's a frustrating problem, to say the least.

Ignore the FPS, by the way. I'm developing on an old laptop with integrated graphics. Supermodel seems to run full speed on any reasonable new hardware with a dedicated video card.


Bart

Edited by Bart Trzynadlowski (02/14/11 06:25 PM)







Entire thread
Subject Posted by Posted on
* Supermodel WIP Update: LeMans 24, Fighting Vipers 2, and Star Wars Trilogy Bart T. 02/14/11 05:34 AM
. * Re: Supermodel WIP Update: LeMans 24, Fighting Vipers 2, and Star Wars Trilogy Cyberzinho Punk  02/21/11 07:16 PM
. * Re: Supermodel WIP Update: LeMans 24, Fighting Vipers 2, and Star Wars Trilogy Jitterdoomer  02/19/11 04:12 AM
. * Re: Supermodel WIP Update: LeMans 24, Fighting Vipers 2, and Star Wars Trilogy Bart T.  02/19/11 04:44 AM
. * Re: Supermodel WIP Update: LeMans 24, Fighting Vipers 2, and Star Wars Trilogy Nomax  02/17/11 05:00 PM
. * Re: Supermodel WIP Update: LeMans 24, Fighting Vipers 2, and Star Wars Trilogy Bart T.  02/17/11 09:28 PM
. * Re: Supermodel WIP Update: LeMans 24, Fighting Vipers 2, and Star Wars Trilogy R. Belmont  02/17/11 07:38 AM
. * Re: Supermodel WIP Update: LeMans 24, Fighting Vipers 2, and Star Wars Trilogy ranger_lennier  02/18/11 03:25 PM
. * Re: Supermodel WIP Update: LeMans 24, Fighting Vipers 2, and Star Wars Trilogy Shoegazr  02/17/11 03:12 PM
. * Re: Supermodel WIP Update: LeMans 24, Fighting Vipers 2, and Star Wars Trilogy Jitterdoomer  02/15/11 05:36 AM
. * Re: Supermodel WIP Update: LeMans 24, Fighting Vipers 2, and Star Wars Trilogy CptGuapo  02/15/11 01:28 AM
. * Re: Supermodel WIP Update: LeMans 24, Fighting Vipers 2, and Star Wars Trilogy AnimalBear  02/15/11 02:47 AM
. * Re: Supermodel WIP Update: LeMans 24, Fighting Vipers 2, and Star Wars Trilogy MAMu_  02/14/11 06:06 PM
. * Re: Supermodel WIP Update: LeMans 24, Fighting Vipers 2, and Star Wars Trilogy Bart T.  02/14/11 06:21 PM
. * Re: Supermodel WIP Update: LeMans 24, Fighting Vipers 2, and Star Wars Trilogy JustSaiyanPaul  02/23/11 02:40 AM
. * Re: Supermodel WIP Update: LeMans 24, Fighting Vipers 2, and Star Wars Trilogy karadaniano  02/23/11 07:58 AM
. * Re: Supermodel WIP Update: LeMans 24, Fighting Vipers 2, and Star Wars Trilogy JustSaiyanPaul  02/23/11 02:00 PM
. * Re: Supermodel WIP Update: LeMans 24, Fighting Vipers 2, and Star Wars Trilogy keshbach1  02/23/11 08:44 PM
. * Wrong ... RetroLover  02/24/11 10:00 AM
. * Re: Supermodel WIP Update: LeMans 24, Fighting Vipers 2, and Star Wars Trilogy JustSaiyanPaul  02/23/11 11:52 PM
. * Re: Supermodel WIP Update: LeMans 24, Fighting Vipers 2, and Star Wars Trilogy bdam  02/24/11 12:28 AM
. * Re: Supermodel WIP Update: LeMans 24, Fighting Vipers 2, and Star Wars Trilogy CiroConsentino  02/24/11 01:35 AM
. * Re: Supermodel WIP Update: LeMans 24, Fighting Vipers 2, and Star Wars Trilogy R. Belmont  02/24/11 04:17 AM
. * Re: Supermodel WIP Update: LeMans 24, Fighting Vipers 2, and Star Wars Trilogy Ziggy100  02/24/11 01:12 PM
. * Re: Supermodel WIP Update: LeMans 24, Fighting Vipers 2, and Star Wars Trilogy R. Belmont  02/24/11 07:58 PM
. * Re: Supermodel WIP Update: LeMans 24, Fighting Vipers 2, and Star Wars Trilogy JustSaiyanPaul  02/24/11 02:30 AM
. * Re: Supermodel WIP Update: LeMans 24, Fighting Vipers 2, and Star Wars Trilogy CaH4e3  02/15/11 01:43 PM
. * Re: Supermodel WIP Update: LeMans 24, Fighting Vipers 2, and Star Wars Trilogy Bart T.  02/15/11 05:58 PM
. * Re: Supermodel WIP Update: LeMans 24, Fighting Vipers 2, and Star Wars Trilogy CaH4e3  02/15/11 06:50 PM
. * Re: Supermodel WIP Update: LeMans 24, Fighting Vipers 2, and Star Wars Trilogy Bart T.  02/15/11 07:00 PM
. * Re: Supermodel WIP Update: LeMans 24, Fighting Vipers 2, and Star Wars Trilogy AndyGeezer  02/18/11 03:07 PM
. * Re: Supermodel WIP Update: LeMans 24, Fighting Vipers 2, and Star Wars Trilogy Bart T.  02/18/11 08:35 PM
. * Re: Supermodel WIP Update: LeMans 24, Fighting Vipers 2, and Star Wars Trilogy R. Belmont  02/18/11 09:41 PM
. * Re: Supermodel WIP Update: LeMans 24, Fighting Vipers 2, and Star Wars Trilogy Bart T.  02/18/11 09:45 PM
. * Re: Supermodel WIP Update: LeMans 24, Fighting Vipers 2, and Star Wars Trilogy VirtuaIceMan  02/21/11 04:08 PM
. * Re: Supermodel WIP Update: LeMans 24, Fighting Vipers 2, and Star Wars Trilogy CaH4e3  02/15/11 07:09 PM
. * Re: Supermodel WIP Update: LeMans 24, Fighting Vipers 2, and Star Wars Trilogy Bart T.  02/15/11 07:14 PM
. * Re: Supermodel WIP Update: LeMans 24, Fighting Vipers 2, and Star Wars Trilogy Bart T.  02/15/11 06:53 PM
. * Re: Supermodel WIP Update: LeMans 24, Fighting Vipers 2, and Star Wars Trilogy CaH4e3  02/15/11 06:58 PM
. * Re: Supermodel WIP Update: LeMans 24, Fighting Vipers 2, and Star Wars Trilogy Bart T.  02/15/11 07:02 PM
. * Re: Supermodel WIP Update: LeMans 24, Fighting Vipers 2, and Star Wars Trilogy CaH4e3  02/15/11 08:03 PM
. * Re: Supermodel WIP Update: LeMans 24, Fighting Vipers 2, and Star Wars Trilogy Bart T.  02/15/11 08:38 PM
. * Re: Supermodel WIP Update: LeMans 24, Fighting Vipers 2, and Star Wars Trilogy R. Belmont  02/16/11 06:08 PM
. * Re: Supermodel WIP Update: LeMans 24, Fighting Vipers 2, and Star Wars Trilogy Stranno  02/16/11 10:37 PM
. * Re: Supermodel WIP Update: LeMans 24, Fighting Vipers 2, and Star Wars Trilogy pjay  02/16/11 11:07 PM
. * Re: Supermodel WIP Update: LeMans 24, Fighting Vipers 2, and Star Wars Trilogy Bart T.  02/16/11 11:36 PM
. * Re: Supermodel WIP Update: LeMans 24, Fighting Vipers 2, and Star Wars Trilogy MAMu_  02/18/11 12:59 AM
. * Re: Supermodel WIP Update: LeMans 24, Fighting Vipers 2, and Star Wars Trilogy pjay  02/17/11 01:43 AM
. * Re: Supermodel WIP Update: LeMans 24, Fighting Vipers 2, and Star Wars Trilogy drewcifer  02/15/11 09:09 PM
. * Re: Supermodel WIP Update: LeMans 24, Fighting Vipers 2, and Star Wars Trilogy Bart T.  02/15/11 09:29 PM
. * Re: Supermodel WIP Update: LeMans 24, Fighting Vipers 2, and Star Wars Trilogy AnimalBear  02/15/11 04:31 PM
. * Re: Supermodel WIP Update: LeMans 24, Fighting Vipers 2, and Star Wars Trilogy MAMu_  02/14/11 07:25 PM
. * Re: Supermodel WIP Update: LeMans 24, Fighting Vipers 2, and Star Wars Trilogy drewcifer  02/14/11 08:30 PM
. * Re: Supermodel WIP Update: LeMans 24, Fighting Vipers 2, and Star Wars Trilogy Naibo  02/17/11 01:15 AM
. * Re: Supermodel WIP Update: LeMans 24, Fighting Vipers 2, and Star Wars Trilogy StilettoAdministrator  02/17/11 08:48 AM
. * Re: Supermodel WIP Update: LeMans 24, Fighting Vipers 2, and Star Wars Trilogy Bart T.  02/14/11 11:29 PM
. * Re: Supermodel WIP Update: LeMans 24, Fighting Vipers 2, and Star Wars Trilogy Solstar  02/14/11 10:29 PM
. * Re: Supermodel WIP Update: LeMans 24, Fighting Vipers 2, and Star Wars Trilogy Cable  02/14/11 11:53 AM
. * Re: Supermodel WIP Update: LeMans 24, Fighting Vipers 2, and Star Wars Trilogy StilettoAdministrator  02/14/11 07:51 AM
. * Re: Supermodel WIP Update: LeMans 24, Fighting Vipers 2, and Star Wars Trilogy Malice  02/14/11 03:02 PM
. * Re: Supermodel WIP Update: LeMans 24, Fighting Vipers 2, and Star Wars Trilogy Kitsune Sniper  02/14/11 03:58 PM
. * Re: Supermodel WIP Update: LeMans 24, Fighting Vipers 2, and Star Wars Trilogy Moose  02/15/11 10:03 AM
. * Re: Supermodel WIP Update: LeMans 24, Fighting Vipers 2, and Star Wars Trilogy Malice  02/15/11 07:29 PM
. * Re: Supermodel WIP Update: LeMans 24, Fighting Vipers 2, and Star Wars Trilogy etabeta  02/14/11 04:18 PM
. * Re: Supermodel WIP Update: LeMans 24, Fighting Vipers 2, and Star Wars Trilogy Outrun2006  02/14/11 09:46 AM
. * Re: Supermodel WIP Update: LeMans 24, Fighting Vipers 2, and Star Wars Trilogy fortuna_chan  02/14/11 06:03 AM
. * Re: Supermodel WIP Update: LeMans 24, Fighting Vipers 2, and Star Wars Trilogy iq_132  02/14/11 05:58 AM

Extra information Permissions
Moderator:  John IV, Tafoid 
2 registered and 38 anonymous users are browsing this forum.
You cannot start new topics
You cannot reply to topics
HTML is enabled
UBBCode is enabled
Thread views: 14173