My last thread is here and thanks to the friendly guys.
http://www.opserver.de/ubb7/ubbthreads.php?ubb=showflat&Number=395912#Post395912 I still have two problems and I think it is better to talk in new thread.
1. How to render a sequence of tga(32bit) with alpha channel in runtime on a PANEL?
ent_create("001.tga",vector(1000,0,0),move_pos);
this works well and shows a transparent outlooking.
----------------------------------------------------
BMAP* myresource[amount_images]; // tga sequence
// preload image resource
for(i=0;i<amount_images;i++)
{
myresource[i] = bmap_create(SPRITE_str[i]); // one by one
wait(1);
}
while(1)
{
for(i=0;i<amount_images;i++)
{
P.bmap = myresource[i]; // target PANEL
wait(1);
}
wait(1);
}
this can show like a movie, but does not support the mask area with alpha channel.
ENTIRY* myresource[500] seems not to be a good way
2. Engine seems to preload images into video memory, so I failed to render 500 sequence tga images in runtime. When loading at about the 120st image, it gets an error: Error E2005 - Can't create D3D texture. My video memory is 1GB, RAM is 12GB.
The limit is: 3 seconds content costs 5 seconds on loading. so dynamic loading may not solve this problem.