Problems using CREATESCREEN/DRAWSPRITE

Previous topic - Next topic

msx

Hi, I need to create a virtual screen of 2200 px and does not work properly because DRAWSPRITE draws nothing. What could be the problem?.

Code (glbasic) Select
CREATESCREEN 2,100,768,2200
USESCREEN 2
PRINT "TEST",0,0,1
USESCREEN -1
DRAWSPRITE 100,0,0
SHOWSCREEN
MOUSEWAIT
END

Ian Price

I came. I saw. I played.

msx

How is it possible?  :S Tested on PC and WebOS  :sick:

matchy

Does the code work for smaller sprite sizes? Instead of print, try drawing some lines!

msx

It works perfectly for smaller virtual screens. Actually my code includes graphics (DRAWSPRITE and DRAWRECT). I used PRINT only to post a simple example.
I've noticed that does not work for dimensions greater than 2000 px.

MrTAToad

Could you make the sprite available too ?

matchy

Alright. So as not to createscreen, can you just loadsprite and drawsprite a pre-made image larger than 2000px?

spicypixel

Problem a gfx card texture issue ?
http://www.spicypixel.net | http://www.facebook.com/SpicyPixel.NET

Comps Owned - ZX.81, ZX.48K, ZX.128K+2, Vic20, C64, Atari-ST, A500.600.1200, PC, Apple Mini-Mac.

spacefractal

Some graphics dont support officeren lagrer then the desktop resolution used, what what you using?
Genius.Greedy Mouse - Karma Miwa - Spot Race - CatchOut - PowerUp Elevation - The beagle Jam - Cave Heroes 2023 - https://spacefractal.itch.io/

kanonet

There are minimum and maximum texture sizes for each graphic card/driver. Maybe your one does not support images bigger than 2048pxl.
But you can still load the Image with LOAD2MEM and resize it manually before you transform it to an displayable sprite with MEM2SPRITE.
Lenovo Thinkpad T430u: Intel i5-3317U, 8GB DDR3, NVidia GeForce 620M, Micron RealSSD C400 @Win7 x64

msx

Thanks to all, I have finally chosen split into two virtual screens.