hi
after a intensive research on the board and another topic which got no replies, I have to ask you lot directly:
what is the matter with ent_setskin?
generally speaking it works like described... but there are a few exceptions to that... a lot of them acutually...
- i am not able to load a texture which hasnt been cached before... example: test.bmp is in root-folder/savedir/path/wrs (tried all)... i now call ent_setskin (my, "test.bmp", 1); and nothing happens... BUT: as soon as i add a Bmap object it works:
Code:
Bmap TEST_BMP, "test.bmp";
Action Skinchange { ent_setskin (my, TEST_BMP, 1); }
- i can only change ONE skin ONE time whether i call ent_cloneskin or ent_clone or both or none, i can only change one skin.
- the second time i use the ent_setskin command on the same model it does nothing more than to erase the skin it is executed on making the target skin completely see-trough (looks like the alpha channel got erased or cleared to black)
- and here is the worst thing: mipmaps are not affected! only the original texture is changed... as soon as the camera is moved far enough from the model, the mipmaps appear and show the old skins!
- ent_cloneskin kind of improves things a little, and increases the chance to get the skin acutally changed to the new file... but still no change mipmaps and no change of further skins
- the first skin i change is a BMP file, this works okay except the mipmap thing, the second one is a TGA with alphachannel, this i did not get to work so far! it also wont work when called ent_Setskin is called first to cchange the TGA skin...
- another thing: i am not trying to switch between formats and change a BMP to a TGA with 32bits, i only want BMP->BMP, TGA 32bit -> TGA 32bit
my model is a standard bones animated MDL7 file created with the latest public MED, it contains a total of 9 skins, the last 2 used as render targets for 2 different views and the second skin is empty for now. the model has bones and around 60 frames. just to give you the parameters of the test.
can you please help! this command is one of the major reasons we upgraded to A7 and now we cannot get it to work properly!