dirt devils sky

Technical discussion for those interested in Supermodel development and Model 3 reverse engineering. Prospective contributors welcome.
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!

dirt devils sky

Postby Ian » Sat Nov 04, 2017 7:19 am

Image

It should fade in nicely. I had a look at the polys for the sky, it's a transparent surface and should blend with the 2d layer.
Any ideas Harry? Maybe it should be using a different blend mode

What does this look like in your build?
Ian
 
Posts: 2044
Joined: Tue Feb 23, 2016 9:23 am

Re: dirt devils sky

Postby HarryTuttle » Sat Nov 04, 2017 12:15 pm

Yeah I saw that too... in my build is the same unfortunately. Checked some time ago with Superdebugger and the only thing that comes in mind is that its alpha channel need to be cut at a different intensity level, but that would mean that texture sampling probably needs an update as well. I've the impression that only the outer pixel needs to be discarded, the other shades of yellowish-green should blend well with the sky.

Honestly, for my part, everything texture related belongs to a very distant future... :) I still have to submit my specular updated code, go figure... ;)
User avatar
HarryTuttle
 
Posts: 646
Joined: Thu Mar 09, 2017 8:57 am

Re: dirt devils sky

Postby Ian » Sun Nov 05, 2017 9:34 am

This is the background 2d layer

Image

This is the sky texture

Image

here they are composited next to each other

Image

Here's what the arcade looks like, correct colours are really hard to tell

Image

My best guess is the 2d layer has the wrong colour. Also not sure the polys have any transparency at all. They looked semi transparent in superdebugger, but that's because they are drawn with their own viewport priority.
Ian
 
Posts: 2044
Joined: Tue Feb 23, 2016 9:23 am

Re: dirt devils sky

Postby HarryTuttle » Sun Nov 05, 2017 10:14 am

Ian wrote:Here's what the arcade looks like, correct colours are really hard to tell

Ditto. Consider that icuk7's video are usually a bit color shifted towards a blu-ish tone, and when there's a very bright and saturated color it's color shifted towards a desaturated version while preserving the same luminosity. When I tried to color match Supermodel I noticed the sky regained some green tone, but I still don't know if there's something wrong in the texture or the 2D color background.

I remember the same happens in Lemans where sometimes the 2D layer background has seemingly the wrong colors.
User avatar
HarryTuttle
 
Posts: 646
Joined: Thu Mar 09, 2017 8:57 am

Re: dirt devils sky

Postby Ian » Sun Nov 05, 2017 11:52 am

This is another youtube video I found

Image

Definitely a blue colour, although I think a bit brighter than it should actually be. So it must be the 2d background layer has the wrong colour
Ian
 
Posts: 2044
Joined: Tue Feb 23, 2016 9:23 am

Re: dirt devils sky

Postby HarryTuttle » Sun Nov 05, 2017 12:33 pm

I'm currently trying another approach (and eventually will submit a new patch):
DD_sky.png
DD_sky.png (245 Bytes) Viewed 4659 times

This is when, in GIMP, the sky layer is modulated with "lighten only" mode with the 2d background layer.

The theory is Real3D has multiple alpha blend modes, this line in <pro_polygon.hh> from the SDK caught my attention:
Code: Select all
unsigned long   _translucency_mode            : 3 ;

Why three different bits to set translucency in polygon? I made some test time ago and found the same one bit is set when using texture type 7 with alpha channel, and the other two are set when using respectively texture type 2 and 4 (or 1 and 3... I don't remember) with alpha channel.
User avatar
HarryTuttle
 
Posts: 646
Joined: Thu Mar 09, 2017 8:57 am

Re: dirt devils sky

Postby HarryTuttle » Sun Nov 05, 2017 1:07 pm

Quick update:
HarryTuttle wrote:I'm currently trying another approach (and eventually will submit a new patch):

Nope. That polygon is opaque, the texture is type 0 with contour bit unset. So, yes, it could really be the 2d layer with a wrong color.
User avatar
HarryTuttle
 
Posts: 646
Joined: Thu Mar 09, 2017 8:57 am

Re: dirt devils sky

Postby Ian » Sun Nov 05, 2017 1:13 pm

I had wondered about the other bits for transparency for a while.
If I recall daytona uses them.

But the sky in dirt devils I am pretty sure is opaque and not using any transparency.
There is some fog applied to it with the values
0x04d6fc58 {1.00000000, 0.709803939, 0.439215720, 4.60000010e-005, 0.0666666701, 0.000000000, 1.00000000}
Ian
 
Posts: 2044
Joined: Tue Feb 23, 2016 9:23 am

Re: dirt devils sky

Postby HarryTuttle » Sun Nov 05, 2017 2:29 pm

Ian wrote:If I recall daytona uses them.

Confirmed. I was testing that game time ago when trying to figure out why 3 bits for transparency.
Ian wrote:There is some fog applied to it with the values

Do you mean only to the texture or the 2d background too (as a scroll fog)?
User avatar
HarryTuttle
 
Posts: 646
Joined: Thu Mar 09, 2017 8:57 am

Re: dirt devils sky

Postby Ian » Sun Nov 05, 2017 2:38 pm

Everything 3d has some fog applied to it. It's a sort of dusty yellow, including the sky.
But the 2d layer has no scroll fog applied

This is the fog colour
Image
Ian
 
Posts: 2044
Joined: Tue Feb 23, 2016 9:23 am


Return to The Dark Room

Who is online

Users browsing this forum: No registered users and 1 guest