Stunts Forum

Stunts - the Game => Live Races => : alanrotoi August 04, 2022, 07:40:20 +02:00

: NIGHT and FOG live races
: alanrotoi August 04, 2022, 07:40:20 +02:00
Hi! I'm on the project of a 2 stages live race. They are rally-like races where you have to race with these wheather change.
Here is an example video of both stages: https://www.youtube.com/watch?v=AmeJoPeZIm4

First Stage: Night
Second Stage: Fog

To simulate the enviroment I edited the dashboard of the Chevrolet Silverado but it could be easy adaptated to any car.
What do you think?

: Re: NIGHT and FOG live races
: Cas August 05, 2022, 12:47:03 +02:00
It's a really good concept!  I'm looking forward to participate :)  We already have a live race platform waiting to be officially tested. It still needs some bells and whistles, but I think it'll be fine, so you can count on it!
: Re: NIGHT and FOG live races
: Overdrijf August 06, 2022, 10:39:27 +02:00
I didn't even know we could do partial transparancy. My first thought was that you were dithering (one pixel color, the next transparent) but you're probably using some of the ingame "colors" like the bridge mesh right? That's how night and fog look different? Or does the mask actually support individual pixels being partially transparent?

Very nicely done!
: Re: NIGHT and FOG live races
: Frieshansen August 06, 2022, 01:11:34 +02:00
That looks really good! Reminds me of Test Drive 3 right away.
: Re: NIGHT and FOG live races
: Cas August 06, 2022, 03:43:28 +02:00
The dash top image includes transparency. To apply this, Stunts does what was fastest at the time: you first AND a mask against the background. The pixels that should remain from the background are coupled with bytes of value 255 and the pixels that should not show because the image will go on top are coupled with a 0. Then, you OR the actual image with the background. Because the background pixels were previously removed where the image is going to be, you get the combined image without superposition.

Now the thing is you can use a non-zero mask at places where you actually have a non-zero image pixel as well. This will cause the foreground image to combine with the background using an OR. Because OR is destructive (information is lost), it's very limited what you can get, but choosing the right colour, you may actually like how that destructive effect looks.

So if I understand correctly, Alan Rotoi is extending the dash top to reach the roof and is filling the parts that should be transparent with a non-zero colour. The areas where the light illuminates are filled with zero or with another colour that's less destructive (one that has fewer 1's and more 0's).
: Re: NIGHT and FOG live races
: KyLiE August 09, 2022, 02:14:15 +02:00
I think it looks good considering the limitations.  However, I don't know how viable it will be to use in competitions.  Even if you change the performance of the car, changing the dashboard graphics is a quick and easy process.
: Re: NIGHT and FOG live races
: alanrotoi August 09, 2022, 04:34:24 +02:00
Of course, it only works for a live race. There won't be time for download, rename and race a 8 minutes replay.
: Re: NIGHT and FOG live races
: afullo August 11, 2022, 11:17:19 +02:00
Nice! A taste of Lotus III in Stunts, in a certain sense...  :D
: Re: NIGHT and FOG live races
: alanrotoi August 11, 2022, 07:18:28 +02:00
: afullo  August 11, 2022, 11:17:19 +02:00
Nice! A taste of Lotus III in Stunts, in a certain sense...  :D

That's right! :D I thought about other games like Outrun but mainly in Enduro for Atari 2600

Night:
(https://i.imgur.com/9X4xArV.png)

and Fog:
(https://i.imgur.com/Emsu4hy.png)
: Re: NIGHT and FOG live races
: Cas August 12, 2022, 04:55:45 +02:00
Enduro!  That's a great classic. Good memories!
: Re: NIGHT and FOG live races
: afullo August 13, 2022, 12:02:08 +02:00
It reminds me also of some coin-op units, of which I don't remember the names...
: Re: NIGHT and FOG live races
: alanrotoi March 27, 2026, 11:51:45 +01:00
Progress in these modes:


Night mode and Fog mode are both ready and working without bugs. I'll share the files in the following days.
Lada Niva night mode had a loading time delay of about 8 seconds because of one of the mast but it was fixed and now it loads normally. The performance of Hummer H1 was enhanced to make it more competitive against the other cars of the pack because it had disadvantages in all performance aspects.

I'll organize an out of schedule live race for both modes in April so stay tuned!

More info of the modes in the wiki article: https://wiki.stunts.hu/wiki/Night_race
: Re: NIGHT and FOG live races
: Overdrijf March 29, 2026, 10:14:14 +02:00
So march, april and may back to back this year? Busy calendar.

Depending on when you go that might push back ours a little, as we were considering some dates early in may as well. But that would be silly. So late in may or after that it probably is.
: Re: NIGHT and FOG live races
: alanrotoi March 29, 2026, 04:33:44 +02:00
Please, don't change your schedule. This is an out of schedule live race so yours has priority. What do you think about an early April race? Next weekend (4/5 April) or the weeken after the next (11/12)?