Kart Racing Pro Official Forum

Mods => Track Editing => Topic started by: PiBoSo on March 21, 2013, 04:37:45 PM

Title: Texture animation
Post by: PiBoSo on March 21, 2013, 04:37:45 PM

It is possible to create a texture animation of a few frames:

1) Create a text file in the same folder and with the same name of the 1st texture, but with extension .TXT ( for example, screen01.txt )
2) add the name of the other textures of the animations to the TXT file, one texture per line. For example:

screen02.tga
screen03.tga
screen04.tga
screen05.tga

3) export the MAP file
4) create another text file, in the same folder and with the same name of the MAP file, but with extension .SCR
5) for each animated texture, add the following structure:

texture0
{
name = screen01
loop_time = 200
}

where name is the name of the base texture ( without the extension ), and loop_time is the length of the animation, in milliseconds.
Title: Re: Texture animation
Post by: Aritz on March 22, 2013, 01:24:48 AM
It seems useful but if I didnt read wrong, only works for simple textures. Walls with moving crowds or vegetations, changing lights or open/close doors are my guess, something else?
Title: Re: Texture animation
Post by: noss69 on September 26, 2013, 08:45:37 PM
Piboso Hello, is it possible that animation starts from a point ?

For more information: 1 minute real corresponds 5min of game clock, this little help for animations expressed in milliseconds
Examples: 300000 milliseconds = 60 seconds real
Title: Re: Texture animation
Post by: PiBoSo on September 26, 2013, 10:23:54 PM
Quote from: noss69 on September 26, 2013, 08:45:37 PM
Piboso Hello, is it possible that animation starts from a point ?

For more information: 1 minute real corresponds 5min of game clock, this little help for animations expressed in milliseconds
Examples: 300000 milliseconds = 60 seconds real

Could you please give more info about what you want to do?
Title: Re: Texture animation
Post by: noss69 on September 27, 2013, 04:09:48 AM
For example the camera flashes in public

Title: Re: Texture animation
Post by: EVO on September 27, 2013, 05:45:13 AM
Yeah should work if you have a crowd texture and same texture with light flash. And another with flash in a different location
Title: Re: Texture animation
Post by: noss69 on September 27, 2013, 12:41:11 PM
thank you evo but i understand the operation of the animation, I misspoke

example: the bike approach the podium and at the time the animation that starts
Title: Re: Texture animation
Post by: PiBoSo on September 27, 2013, 03:21:28 PM
Quote from: noss69 on September 27, 2013, 12:41:11 PM
thank you evo but i understand the operation of the animation, I misspoke

example: the bike approach the podium and at the time the animation that starts

It is not possible. Texture animation uses the timer only.
Title: Re: Texture animation
Post by: EVO on September 28, 2013, 05:31:18 AM
would it be possible to have textures only show in race and not in practice.  At a F1 weekend there are less spectators at the practice and qualifying than there are at the race. it would be cool to see that change.  I feel like it would be pretty easy to implement if it hasn't already been done
Title: Re: Texture animation
Post by: PiBoSo on September 28, 2013, 10:14:36 PM
Quote from: EVO on September 28, 2013, 05:31:18 AM
would it be possible to have textures only show in race and not in practice.  At a F1 weekend there are less spectators at the practice and qualifying than there are at the race. it would be cool to see that change.  I feel like it would be pretty easy to implement if it hasn't already been done

It is not possible at the moment but it is planned for the future.