PDA

View Full Version : showimg bug


Evil_Trunks
01-22-2005, 09:14 PM
It doesn't let you show something from before x=1024 in the same showimg as after 1024

//#CLIENTSIDE
if (created) {
showimg 0,pics1.png,30,30;
changeimgpart 0,900,0,320,64;
}

This example cuts off at 1024 in pics1.png

Admins
01-23-2005, 02:37 AM
It doesn't let you show something from before x=1024 in the same showimg as after 1024

//#CLIENTSIDE
if (created) {
showimg 0,pics1.png,30,30;
changeimgpart 0,900,0,320,64;
}

This example cuts off at 1024 in pics1.png

Images are not allowed to be that big, never use pics1.png for showimg because it lags majorly.
For drawing the tiles the game is only loading the pixels of the image into a buffer, so not directly transferring it into the video memory, so a size bigger than 1024 is ok, but not for images that are actually drawn on the screen.

Evil_Trunks
01-23-2005, 04:37 AM
it's not drawing the whole thing

it uses changeimgpart and draws a little part of it

it's for a tile editor script

i think it's a bug

it stops drawing the image at the 1024 on the image when using changeimgpart with an initial x on the image of less than 1024

calani
01-23-2005, 04:47 AM
I still think that adding the ability to draw and manipulate textured triangles would be the way to go for graal. I could finally make a decent 3d engine then, and besides, there would be some very interesting playerworlds that would come about from this addition.. and those would probably draw more players, too.

Evil_Trunks
01-23-2005, 05:29 AM
just wondering, why are you posting this completely unreleated thing which has nothing to do with bugs using showimg/changeimgpart?

is it because Stefan posted in this thread?