Home   Help Search Login Register  

Author Topic: Come on guys, Answer !...  (Read 1235 times)

0 Members and 1 Guest are viewing this topic.

ElemenS

  • Guest
Come on guys, Answer !...
« on: 14 Sep 2002, 20:11:29 »
I get my jpg shown in a cutrsc only when it's 128x128,

the desc.ext lines

         x = 0.0;        
         y = 0.0;
         w = 1.0;
         h = 1.0

are the empty space (percentual factor) and the stretch volume.
So much i figured out myself:

x=left/right distance of the images left top corner relative to the screens left border based on negative (min 0.0=perfect fit, max 1.0=outside screen [cant see it])

y=same above, only up/down values

w/h=stretch percent to the right and down.
examples:
1.0 on 'w' and 'h' = full screen in use
0.5 on 'w' and 'h' = stretches the images right lowest corner to the center of the screen.

But how the heck do i get my 800x600 jpg show without the error :

"image 800x600 instead of 2^n" ?

It wont show at all.
Works only when my pic is 128x128.

huh !? ??? ??? ???

crow

  • Guest
Re:Come on guys, Answer !...
« Reply #1 on: 15 Sep 2002, 06:31:21 »
That is the only size the game will allow ;)

Offline KTottE

  • Former Staff
  • ****
Re:Come on guys, Answer !...
« Reply #2 on: 15 Sep 2002, 13:48:16 »
Well, you can have 1024 x 1024 if you want. Or 1024 x 2.

The error "image 800x600 instead of 2^n" means that the image size is not power of 2 (2^n).

2, 4, 8, 16, 32, 64, 128, 256, 512, 1024, 2048, 4096, 8192

are all power of 2 (2^n) sizes.

Try making your image 1024 x 512 or similar and see if it works.

Cheers, KTottE
"Life is not a journey to the grave with the intention of arriving safely in a pretty and well preserved body, but rather to skid in broadside, thoroughly used up, totally worn out, and loudly proclaiming 'WOW What a Ride!'"

GalComT

  • Guest
Re:Come on guys, Answer !...
« Reply #3 on: 15 Sep 2002, 14:11:54 »
That's what I said on the topic started by ElemenZ before he started this one.