Gamestudio Links
Zorro Links
Newest Posts
Newbie Questions
by fairtrader. 12/05/23 14:22
Zorro Trader GPT
by TipmyPip. 12/04/23 11:34
Square root rule
by Smallz. 12/02/23 09:15
RTest not found error
by TipmyPip. 12/01/23 21:43
neural function for Python to [Train]
by TipmyPip. 12/01/23 14:47
Xor Memory Problem.
by TipmyPip. 11/28/23 14:23
Training with command line parameters
by TipmyPip. 11/26/23 08:42
Combine USD & BTC Pairs In Asset Loop
by TipmyPip. 11/26/23 08:30
AUM Magazine
Latest Screens
A psychological thriller game
SHADOW (2014)
DEAD TASTE
Tactics of World War I
Who's Online Now
6 registered members (AndrewAMD, Quad, soulman3, Ayumi, steyr, 3run), 631 guests, and 2 spiders.
Key: Admin, Global Mod, Mod
Newest Members
fairtrader, hus, Vurtis, Harry5, KelvinC
19019 Registered Users
Previous Thread
Next Thread
Print Thread
Rate Thread
Problem with 24bit depth .bmp image display #124446
04/16/07 03:40
04/16/07 03:40
Joined: Apr 2007
Posts: 3
N
netgame315 Offline OP
Guest
netgame315  Offline OP
Guest
N

Joined: Apr 2007
Posts: 3
In workshop04, i replace first.pcx with my test file test.bmp(24bit depth)
test.bmp

but when script04.wdl running , the test.bmp looked like this
test.bmp in running

some color lost in green part!
How can resolve this problem?
And how can i use .jpg file,Gamestudio seem do not support .jpg file?




following is script04.wdl

////////////////////////////////////////////////////////////////////

var video_mode = 7; // 800x600 pixels
var video_depth = 32; // 32 bit mode

////////////////////////////////////////////////////////////////////

bmap first_pcx = <test.bmp>; //<first.pcx>; // my first panel

////////////////////////////////////////////////////////////////////

string work04_wmb = <work04.wmb>;

////////////////////////////////////////////////////////////////////

panel first_pan
{
bmap = first_pcx;
pos_x = 0;
pos_y = 0;
layer = 1;
flags = overlay, refresh, visible;
}

/////////////////////////////////////////////////////////////////////

function main()
{
level_load (work04_wmb);
}

Last edited by netgame315; 04/16/07 16:13.
Re: Problem with 24bit depth .bmp image display [Re: netgame315] #124447
04/17/07 00:58
04/17/07 00:58
Joined: Nov 2003
Posts: 1,257
Wade_Adams Offline
Serious User
Wade_Adams  Offline
Serious User

Joined: Nov 2003
Posts: 1,257
I would downsample to 16bit i had a lot of trouble with 24bit especially green for some reason.


Optimism is an occupational hazard of programming: feedback is the treament.
Kent Beck
Re: Problem with 24bit depth .bmp image display [Re: Wade_Adams] #124448
04/17/07 02:49
04/17/07 02:49
Joined: Apr 2007
Posts: 3
N
netgame315 Offline OP
Guest
netgame315  Offline OP
Guest
N

Joined: Apr 2007
Posts: 3
My desktop is in 32-bit mode. I edit test.bmp with mspaint.exe,and it looks ok. But running in windows mode or full screen, it looks very low quality.

Re: Problem with 24bit depth .bmp image display [Re: netgame315] #124449
04/17/07 03:55
04/17/07 03:55
Joined: Aug 2004
Posts: 2,215
I
ISG Offline

Expert
ISG  Offline

Expert
I

Joined: Aug 2004
Posts: 2,215
It's like that in the engine because below the green belt you have is all black (0,0,0 RGB Value) and that is automatically set to transparent via the engine - so if you fill that in a different color like black with RGB values (8,8,8) it will look fine.

The gradient fade on top will also detect if there is a black pixel below the RGB Values of 8,8,8 and if so it will make that transparent of the blue engine you see underneath.

Hope this helps slightly


Ground Tactics - Coming Soon
Ground Tactics OFFICIAL WEBSITE
Re: Problem with 24bit depth .bmp image display [Re: netgame315] #124450
04/18/07 19:06
04/18/07 19:06
Joined: Apr 2007
Posts: 3
N
netgame315 Offline OP
Guest
netgame315  Offline OP
Guest
N

Joined: Apr 2007
Posts: 3
In fact, i want to use a 24-bit bmp file as background in my 2d game,
but background is low quality when running,like this running-background .
I do not know how to resolve this problem.
Who can tell me how to display 24-bit BMP gackground in 2D game?

Following is test.wdl

///////////////////////////////////////////////////////////////////////////////
var video_mode = 7; // 800X600
var video_depth = 32; // 32 bit mode

//////////////////////////////////////////////////////////////////////////////
bmap background = <background.bmp>;

panel main_pan // main panel
{
bmap = background;
flags = visible;
}

//////////////////////////////////////////////////////////////////////////////////////

function main()
{
while (1)
{
wait (1);
}
}

Last edited by netgame315; 04/19/07 12:15.
Re: Problem with 24bit depth .bmp image display [Re: netgame315] #124451
04/24/07 18:01
04/24/07 18:01
Joined: Jan 2003
Posts: 4,615
Cambridge
Joey Offline
Expert
Joey  Offline
Expert

Joined: Jan 2003
Posts: 4,615
Cambridge
use a tga file.


Gamestudio download | chip programmers | Zorro platform | shop | Data Protection Policy

oP group Germany GmbH | Birkenstr. 25-27 | 63549 Ronneburg / Germany | info (at) opgroup.de

Powered by UBB.threads™ PHP Forum Software 7.7.1