Animated sky in C1 and C2

MagnaChem research & development unit.

Moderators: coffeycup, Toshiba-3

Post Reply
User avatar
Toshiba-3
アルカリ (単3形)
Posts: 3896
Joined: Thu Jul 24, 1986 12:13 pm
Location: Belgium/France
Contact:

Animated sky in C1 and C2

Post by Toshiba-3 » Thu Nov 20, 2014 10:15 pm

Hello!

Been some time since I last posted something new so here:
[youtube]NFZIBPXVqsI[/youtube]

Looks like the end of the world heh! Don't know what this animated background is from, I found it on /wsg/. From a fighting game ala Street Fighter I guess.

This trick might work with C2 via texturebits or frames, haven't tested at all yet.
It seems to act differently between the glide mode and the software mode which is a bit annoying. (The video is the software mode).
BTW I override the horizon texture by loading a .flic into HORIZON.MAT via a FUNK :ssmile:
Glide mode tends to keep the original texture and then add the flic above it. Software mode replaces the texture by the flic and renders correctly. CARMA95 MASTER RACE!

[edit] Turns out it works in C2 too via a FUNK using frames! :sbsmile: All you have to do is apply the funk on HORIZON.MAT! 'Frames' funk also works in C1 and will display a more stable sky from software to accelerated mode. Though ofcourse both C1 Glide and C2 deform the sky texture...
Image / carmageddon add-ons at road reaction

User avatar
coffeycup
Genesis
Posts: 3943
Joined: Mon Oct 10, 2005 7:05 pm
Contact:

Re: Animated sky in C1

Post by coffeycup » Thu Nov 20, 2014 11:56 pm

:supercrazy: Oh man, that's wild! I have to test that out. Some time-lapse clouds could be cool. I suppose there's the 22 or so frame limit?

Nice discovery! :beer:

User avatar
Harmalarm
motorised death
Posts: 1194
Joined: Tue May 13, 2008 3:56 am
Location: Den Haag, Holland

Re: Animated sky in C1

Post by Harmalarm » Fri Nov 21, 2014 1:19 pm

:sgn: This is amazing Tosh! What made you think of trying this? This will be a great a addition to C2. I can think of all sorts of applications, moving clouts, flying comets, raging tornado's, etc...

User avatar
Toshiba-3
アルカリ (単3形)
Posts: 3896
Joined: Thu Jul 24, 1986 12:13 pm
Location: Belgium/France
Contact:

Re: Animated sky in C1

Post by Toshiba-3 » Fri Nov 21, 2014 2:44 pm

@Coffeycup: this one does look wild indeed! But yes, even simpler skies could benefit from subtle moving clouds and the likes :scool: The frame limit is still there too. What you see here (even though interlaced in a FLIC) is made of 8 frames, you can imagine what's possible with more frames!
While C2 really wants 256² horizon textures, C1 doesn't care much and accept larger textures (even in Glide!). The one from the video is around 450x200 I think.

@Harm: It's the thread in /wsg/ (this one if it's still up, more here) that gave me the idea. You know how fond I am of oldschool games and pixelart and I thought this feature would be a real nice addition in C1! I had a look at the skybox material and it turned out to always be HORIZON.MAT. Just had to mess with it.
And yes, it offers a good way to visually support/enhance a race's setting :) It makes thunderlights really easier to achieve than relying on mini sfx volumes for example.

Now I actually wonder if it'd be possible to apply a lollipop on the skybox. It'd require finding the name of the actor, but that would allow us to have fixed backgrounds, which can be interesting as well!


A flic funk looks like this (only for C1):

Code: Select all

HORIZON.MAT
constant
no effect
no lighting
flic
accurate
YOUR_SKY.FLI
and a frame funk like this (C1 and C2):

Code: Select all

HORIZON.MAT
constant
no effect
no lighting
frames
accurate
continuous
4
3
UR_SKY_1.PIX
UR_SKY_2.PIX
UR_SKY_3.PIX
It is important to set a horizon pixelmap anyway (or the game won't apply a material). With a flic, I think having said pixelmap the same size as the flic is important as glide mode tends to load the pixelmap first (and thus adjust to its size) and then overlay with the flic.
Image / carmageddon add-ons at road reaction

User avatar
Harmalarm
motorised death
Posts: 1194
Joined: Tue May 13, 2008 3:56 am
Location: Den Haag, Holland

Re: Animated sky in C1

Post by Harmalarm » Fri Nov 21, 2014 4:11 pm

It's the thread in /wsg/ (this one if it's still up, more here) that gave me the idea.
Wow these are great. The rainy ones especially!

User avatar
Toshiba-3
アルカリ (単3形)
Posts: 3896
Joined: Thu Jul 24, 1986 12:13 pm
Location: Belgium/France
Contact:

Re: Animated sky in C1 and C2

Post by Toshiba-3 » Sat Nov 22, 2014 7:59 pm

A nice example in C2 by Mastro:
Image
Image / carmageddon add-ons at road reaction

User avatar
C2_Scientist
motorised death
Posts: 1648
Joined: Tue Mar 26, 2002 5:00 pm
Contact:

Re: Animated sky in C1 and C2

Post by C2_Scientist » Mon Dec 22, 2014 11:04 pm

That's a nice find, and I like how Mastro used it :-)

Can you combine this eg. with a "roll" funk, to create both animated and moving background? Thinking of pure cloudscape horizons (with no static scenery in them, of course).

User avatar
Mastro 666
speed freak
Posts: 630
Joined: Thu Jan 26, 2006 6:24 pm

Re: Animated sky in C1 and C2

Post by Mastro 666 » Mon Dec 22, 2014 11:36 pm

That doesn't work.

User avatar
coffeycup
Genesis
Posts: 3943
Joined: Mon Oct 10, 2005 7:05 pm
Contact:

Re: Animated sky in C1 and C2

Post by coffeycup » Tue Dec 23, 2014 12:33 am

Yeah I tried just a roll funk with static cloud but didn't work.

Post Reply

Who is online

Users browsing this forum: No registered users and 4 guests