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!

Re: The Official Supermodel Work-in-Progress Thread

Postby Bart » Wed Jan 25, 2012 4:26 pm

nuexzz.. wrote:will soon have the solution xD
nuexzz.. wrote:playing around with the shaders I found the selection of tracks intact


Very interesting. I hadn't noticed this before. These are 2D graphics. The problem is that the layers are drawn in the incorrect order. It will take some time to figure out how layer order is specified and then how to fix it. I fear that the Model 3 has very flexible priority settings and that I may need to rewrite the 2D graphics engine again to handle it.
User avatar
Bart
Site Admin
 
Posts: 2318
Joined: Thu Sep 01, 2011 2:13 pm
Location: Santa Clara, California

Re: The Official Supermodel Work-in-Progress Thread

Postby nuexzz.. » Wed Jan 25, 2012 4:33 pm

ARE WITHOUT DOUBT TILEMAP2D
You can find work "v.glsl"

Code: Select all
// Transform vertex
   gl_Position = projectionMatrix * modelViewMatrix * gl_Vertex;

By
Code: Select all
// Transform vertex
   gl_Position = modelViewMatrix * gl_Vertex;
User avatar
nuexzz..
 
Posts: 301
Joined: Sun Sep 25, 2011 3:10 pm
Location: Argentina

Re: The Official Supermodel Work-in-Progress Thread

Postby Jiterdomer » Wed Jan 25, 2012 4:46 pm

Thanks nuexzz for the solution to the invisible course select icon
But anyway, the 3D Drop down animation comes before the Selection icon
So that's why you hear a banging sound after you insert a credit :P
Feel the heartbeat of my machine through this tight seat. I feel every motion of my machine
Image
User avatar
Jiterdomer
 
Posts: 512
Joined: Mon Sep 26, 2011 6:37 pm
Location: Los Angeles, CA

Re: The Official Supermodel Work-in-Progress Thread

Postby Bart » Wed Jan 25, 2012 4:54 pm

Jiterdomer wrote:Thanks nuexzz for the solution to the invisible course select icon
But anyway, the 3D Drop down animation comes before the Selection icon
So that's why you hear a banging sound after you insert a credit :P


That animation is there. It's done with the 2D tiles.
User avatar
Bart
Site Admin
 
Posts: 2318
Joined: Thu Sep 01, 2011 2:13 pm
Location: Santa Clara, California

Re: The Official Supermodel Work-in-Progress Thread

Postby Bart » Wed Jan 25, 2012 4:57 pm

nuexzz.. wrote:ARE WITHOUT DOUBT TILEMAP2D
You can find work "v.glsl"

Code: Select all
// Transform vertex
   gl_Position = projectionMatrix * modelViewMatrix * gl_Vertex;

By
Code: Select all
// Transform vertex
   gl_Position = modelViewMatrix * gl_Vertex;


That just transforms the 3D graphics incorrectly. An easier way to disable 3D graphics is to discard all pixels passed to the fragment shader. Add a "discard" statement to the beginning of main():

Code: Select all
/*
 * main():
 *
 * Fragment shader entry point.
 */

void main(void)
{   
   discard;
...
}
User avatar
Bart
Site Admin
 
Posts: 2318
Joined: Thu Sep 01, 2011 2:13 pm
Location: Santa Clara, California

Re: The Official Supermodel Work-in-Progress Thread

Postby nuexzz.. » Wed Jan 25, 2012 4:58 pm

works here only 2D animation starting.

Code: Select all
/* Transform vertex
   gl_Position = projectionMatrix * modelViewMatrix * gl_Vertex;


wow did not see your message xD
JUST IN TIME. :D
User avatar
nuexzz..
 
Posts: 301
Joined: Sun Sep 25, 2011 3:10 pm
Location: Argentina

Re: The Official Supermodel Work-in-Progress Thread

Postby Jiterdomer » Wed Jan 25, 2012 5:05 pm

Bart wrote:
nuexzz.. wrote:will soon have the solution xD
nuexzz.. wrote:playing around with the shaders I found the selection of tracks intact


Very interesting. I hadn't noticed this before. These are 2D graphics. The problem is that the layers are drawn in the incorrect order. It will take some time to figure out how layer order is specified and then how to fix it. I fear that the Model 3 has very flexible priority settings and that I may need to rewrite the 2D graphics engine again to handle it.


This also applies to the "THE HEAT IS BACK" from the PE intro
Feel the heartbeat of my machine through this tight seat. I feel every motion of my machine
Image
User avatar
Jiterdomer
 
Posts: 512
Joined: Mon Sep 26, 2011 6:37 pm
Location: Los Angeles, CA

Re: The Official Supermodel Work-in-Progress Thread

Postby nuexzz.. » Thu Jan 26, 2012 7:29 am

I guess combining "vertex2D" with "v" could have a favorable outcome ;)
User avatar
nuexzz..
 
Posts: 301
Joined: Sun Sep 25, 2011 3:10 pm
Location: Argentina

Re: The Official Supermodel Work-in-Progress Thread

Postby Bart » Thu Jan 26, 2012 10:42 am

nuexzz.. wrote:I guess combining "vertex2D" with "v" could have a favorable outcome ;)


The 2D shaders don't work the same way as the 3D ones and are not nearly as complex. They do not control priority between the different layers, for example. That is all handled by the 2D rendering engine before the shaders become involved. Over the next few days, I will try to find some time to modify the 2D renderer to support priorities. I'm not exactly sure how it works yet but I've already found some clues. I'm taking a break from specular lighting.
User avatar
Bart
Site Admin
 
Posts: 2318
Joined: Thu Sep 01, 2011 2:13 pm
Location: Santa Clara, California

Re: The Official Supermodel Work-in-Progress Thread

Postby Bart » Thu Jan 26, 2012 11:37 pm

Added preliminary support for layer priorities fixing a large number of things. Here's a video of Daytona USA 2.

Daytona 2 WIP: Layer Priorities and Specular Lighting
Scud Race WIP: Specular Lighting

Star Wars Trilogy (and many other games) now have correct 2D layer priorities. I need to measure the performance impact of the new 2D rendering system, optimize the code, and then I'll post some more screenshots.

Image

EDIT: Added Scud Race video.
User avatar
Bart
Site Admin
 
Posts: 2318
Joined: Thu Sep 01, 2011 2:13 pm
Location: Santa Clara, California

PreviousNext

Return to The Catwalk

Who is online

Users browsing this forum: No registered users and 4 guests