6 registered members (AndrewAMD, Ayumi, degenerate_762, 7th_zorro, VoroneTZ, HoopyDerFrood),
1,268
guests, and 6
spiders. |
Key:
Admin,
Global Mod,
Mod
|
|
|
Re: How to Create an "animated Sprite" with bigger than 4096 pixels?
[Re: BySharDe]
#463158
11/18/16 15:55
11/18/16 15:55
|
Joined: Feb 2011
Posts: 124 Germany Nrw Herford
HenWoll
Member
|
Member
Joined: Feb 2011
Posts: 124
Germany Nrw Herford
|
im undestand your question. tested this with a 20+ sprite and i have nothing problems the result is 8000. its other 4096 ^^
Last edited by BlackJack; 11/18/16 15:56.
|
|
|
Re: How to Create an "animated Sprite" with bigger than 4096 pixels?
[Re: HenWoll]
#463159
11/18/16 16:23
11/18/16 16:23
|
Joined: May 2009
Posts: 5,370 Caucasus
3run
Senior Expert
|
Senior Expert
Joined: May 2009
Posts: 5,370
Caucasus
|
If you'll set 'warn_level' to 6, you will get the error. But it's ok, when you'll publish your project, such errors won't appear. You could code your own way to use animated sprites too (like in some other engines where they use sprite sheets, so they cycle vertically too). Warning W1108: Oversized texture
This texture size is not supported on many target systems. This warning is issued with textures bigger than 4096x4096 pixels if the warn_level variable is set to 3 or above. Unless you need a big texture size for sky cubes or sprite animations, avoid textures above 1024x1024.
Best regards!
|
|
|
Re: How to Create an "animated Sprite" with bigger than 4096 pixels?
[Re: HenWoll]
#463163
11/19/16 04:42
11/19/16 04:42
|
Joined: Jan 2012
Posts: 39
BySharDe
OP
Newbie
|
OP
Newbie
Joined: Jan 2012
Posts: 39
|
im undestand your question. tested this with a 20+ sprite and i have nothing problems the result is 8000. its other 4096 ^^ Hej, dude. I tested on my snippet of your "test+20.png" sprite, and still meet my mentioned problem. My code is here.
#include <acknex.h>
#include <default.c>
action explosion()
{
my.ambient = 100;
while(1)
{
while (!key_e)
wait (1);
for (my.frame=0; my.frame<20; my.frame += 1.0 * time_step)
wait (1);
}
}
function main()
{
vec_set(sky_color,vector(100,100,100));
level_load("");
ent_create("test+20.png", vector(800,0,0), explosion);
}
|
|
|
Moderated by mk_1, Perro, rayp, Realspawn, Rei_Ayanami, rvL_eXile, Spirit, Superku, Tobias, TSG_Torsten, VeT
|