Polyvector - texture 1000x1000 pixel limit???

Previous topic - Next topic

Kyo

I have not tested the speed loading  of LOADBMP, but LOADBMP not have a unique ID number.

it works with an image and i have 2 players ....  :whistle:

Kitty Hello

not LOADBMP that would be the background.
Try LOADSPRITE with a ".bmp" instead of a ".png".
If you got it working, please tell us what you did.

Scott_AW

When playing around loading graphics, I noticed that I had problems using images that greatly exceeded the height of the screen but not the width.  I was able to use a 1760x608 wide image, but not a 1024x800(image got squished), although I believe I also had squishing issues when using a 1024x600 vs a 1024x576(which I'm using now)

This probably just confusing things, but  the working images were divisable by 16 (600 vs 576), but both are powers of 8.  In relation, if I used a texture smaller than 16x16 in a 3d model the texture would not correctly fill the model face.
Current Project, Orbital Contract Defense
http://gamejolt.com/games/adventure/code-name-ocd/9887/

BlackShadow now open source/resource(requires duke3d)
http://gamejolt.com/games/adventure/black-shadow-3d/9885/

Kyo

Quote from: Kitty Hello on 2010-Apr-23
not LOADBMP that would be the background.
Try LOADSPRITE with a ".bmp" instead of a ".png".
If you got it working, please tell us what you did.



I use:
- BMP - 8 Bit, Exact Palette 64 color (Frame size: 20 Kb)
- PNG - 8 Bit, Exact Palette 64 color (Frame size: 6 Kb)

I tested it in different ways:

Loop: Load single frame (PNG or BMP) -> Showscreen - >  Load new frame
- Result: on the screen the FPS change between 40 to 100, but I see that goes to 20~25 FPS

Loop: Load Tile (PNG or BMP) -> Execute Tile -> Showscreen - >  Load new Tile
- Result: Very Very Slow - stops for 1 second when loading Tile

I was hoping to find a way to get more memory ....  :(

I also tested the difference of polyvector and drawsprite.

Polyvector is faster only if you use the function POLYNEWSTRIP , only if you use the same image (good for tile level or to clone an entity)


Scott_AW

Use 24bit images, png files will be smaller and loading will be faster since the program won't have to decode the palette.  Load up all your graphics before you do anything, or have loading stages between operation.
Current Project, Orbital Contract Defense
http://gamejolt.com/games/adventure/code-name-ocd/9887/

BlackShadow now open source/resource(requires duke3d)
http://gamejolt.com/games/adventure/black-shadow-3d/9885/