• Welcome to Kart Racing Pro Official Forum. Please login or sign up.
 
May 13, 2024, 03:56:34 PM

News:

Kart Racing Pro release13e available! :)


Texture animation

Started by PiBoSo, March 21, 2013, 04:37:45 PM

Previous topic - Next topic

PiBoSo


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.

Aritz

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?

noss69

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

PiBoSo

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?

noss69

For example the camera flashes in public


EVO

Yeah should work if you have a crowd texture and same texture with light flash. And another with flash in a different location
To download all my dashes, airboxes, tracks, and more
click here or see my personal website

noss69

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

PiBoSo

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.

EVO

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
To download all my dashes, airboxes, tracks, and more
click here or see my personal website

PiBoSo

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.