Gamestudio Links
Zorro Links
Newest Posts
Free Live Data for Zorro with Paper Trading?
by AbrahamR. 05/18/24 13:28
Change chart colours
by 7th_zorro. 05/11/24 09:25
Data from CSV not parsed correctly
by dr_panther. 05/06/24 18:50
AUM Magazine
Latest Screens
The Bible Game
A psychological thriller game
SHADOW (2014)
DEAD TASTE
Who's Online Now
4 registered members (degenerate_762, AbrahamR, AndrewAMD, ozgur), 667 guests, and 8 spiders.
Key: Admin, Global Mod, Mod
Newest Members
Hanky27, firatv, wandaluciaia, Mega_Rod, EternallyCurious
19051 Registered Users
Previous Thread
Next Thread
Print Thread
Rate Thread
Possible A7.07 bug #174435
12/22/07 23:51
12/22/07 23:51
Joined: Oct 2005
Posts: 131
C
CBSection31 Offline OP
Member
CBSection31  Offline OP
Member
C

Joined: Oct 2005
Posts: 131
Hi everyone,

I've noticed, while running my game in the new version of A7, that resized graphics (via panels) don't appear as smooth as in previous versions of the engine. I'm wondering if the filter flag is no longer working, although it could be a different issue. Here are two screenshots:

1. Main Menu Screenshot from A7.06
2. Main Menu Screenshot from A7.07

As you can see, in the second picture, the images (which are automatically resized depending on the game's resolution) appear much more pixelated. This is most easily noticeable with the main menu options on the left, although it affects all graphics that are resized.

Any ideas?

Thanks in advance for your time and help!

Re: Possible A7.07 bug [Re: CBSection31] #174436
12/25/07 18:50
12/25/07 18:50
Joined: Oct 2005
Posts: 131
C
CBSection31 Offline OP
Member
CBSection31  Offline OP
Member
C

Joined: Oct 2005
Posts: 131
Wow, and it took me 2 days to realize I posted this in the wrong forum. Any chance someone can move this to the bug forum? Thanks, and I apologize for the error!

Re: Possible A7.07 bug [Re: CBSection31] #174437
12/25/07 22:24
12/25/07 22:24
Joined: Apr 2006
Posts: 1,551
Netherlands
D3D Offline
Serious User
D3D  Offline
Serious User

Joined: Apr 2006
Posts: 1,551
Netherlands
Are you using panel.scale_x? Lite-C or C-Script. Can you show your panel creation code? From what resolution did you changed when the problem was presented. How do you change resolutions. And some more questions ^^


smile
Re: Possible A7.07 bug [Re: D3D] #174438
12/26/07 01:55
12/26/07 01:55
Joined: Oct 2005
Posts: 131
C
CBSection31 Offline OP
Member
CBSection31  Offline OP
Member
C

Joined: Oct 2005
Posts: 131
Hi D3D,

Thanks for your reply. The code was written by my programmer, but I think I can answer all of your questions.

- Yes, the code uses panel.scale_x.

- The game uses C-Script.

- All of the panels are defined as follows:

Code:

panel panMainMenuScreen
{
layer 120;
flags = d3d, refresh, filter;
bmap = <mainmenu.tga>;
}



The panels are them displayed via panel.visible=on.

The resolution used is either 800x600 or 1024x768. The problem doesn't happen when the game changes resolutions. It happens regardless of what resolution I use at the start of the game. Thus, even if I don't change the resolution, the panels look pixelated.

The resolution is changed via var video_mode. However, even if I create an entirely new program that does nothing but display a resized panel, it still appears pixelated.

Thanks again for your reply!

Re: Possible A7.07 bug [Re: CBSection31] #174439
12/26/07 04:19
12/26/07 04:19
Joined: Apr 2006
Posts: 1,551
Netherlands
D3D Offline
Serious User
D3D  Offline
Serious User

Joined: Apr 2006
Posts: 1,551
Netherlands
Don't know if the d3d/refresh flags are still supported in the engine? Anyways I tried something like this and the results are very strange. Not the pixalation, but the image repeats and doesn't grow/shrink with the window.

C-Script Code:
PANEL gfx_panel { bmap = "gfx.bmp"; flags = d3d, refresh, filter, visible; }

function another_mode1()
{
video_set(800,600,0,0);
}
function another_mode2()
{
video_set(1024,768,0,0); // original size of image
}
function another_mode3()
{
video_set(1680,1050,0,0); // max resolution on my monitor
}

function main()
{
fps_max = 60;

video_set(1024,768,32,1);

while(1)
{
gfx_panel.scale_x = screen_size.x;
gfx_panel.scale_y = screen_size.y;
wait(1);
}
}

on_1=another_mode1;
on_2=another_mode2;
on_3=another_mode3;


Lite-C Code:
#include <acknex.h>
#include <default.c>

PANEL* gfx_panel = { bmap = "gfx.bmp"; flags = VISIBLE; }

function another_mode1()
{
video_set(800,600,0,0);
}
function another_mode2()
{
video_set(1024,768,0,0);
}
function another_mode3()
{
video_set(1680,1050,0,0);
}

function main()
{
fps_max = 60;

video_set(1024,768,32,1);

on_1=another_mode1;
on_2=another_mode2;
on_3=another_mode3;

while(1)
{
gfx_panel.scale_x = screen_size.x; // size works, but repeats
gfx_panel.scale_y = screen_size.y; // scale gives just black
wait(1);
}
}




smile
Re: Possible A7.07 bug [Re: D3D] #174440
12/26/07 06:20
12/26/07 06:20
Joined: Oct 2005
Posts: 131
C
CBSection31 Offline OP
Member
CBSection31  Offline OP
Member
C

Joined: Oct 2005
Posts: 131
I've tried removing both "d3d" and "refresh" from the panels, but that doesn't fix the pixelation.

When I get a chance, I'll create a simple program to upload here for everyone to test, to see if the issue is computer-specific or not.

Re: Possible A7.07 bug [Re: CBSection31] #174441
12/27/07 00:42
12/27/07 00:42
Joined: Oct 2005
Posts: 131
C
CBSection31 Offline OP
Member
CBSection31  Offline OP
Member
C

Joined: Oct 2005
Posts: 131
Update: I've found something interesting. If I remove the "filter" flag, THEN the images become smooth. It seems as though filter now does the opposite of what it is supposed to. In other words, the filter flag now pixelates graphics. So, if you want the graphics to be smooth, you have to remove the flag.

I wonder if this is a bug in A7.07, or if Conitec wants to keep this change.

Re: Possible A7.07 bug [Re: CBSection31] #174442
12/27/07 08:13
12/27/07 08:13
Joined: Jul 2000
Posts: 27,986
Frankfurt
jcl Offline

Chief Engineer
jcl  Offline

Chief Engineer

Joined: Jul 2000
Posts: 27,986
Frankfurt
I confirm this bug. The meaning of the FILTER flag was reversed. This will be fixed.

"d3d" and "refresh" were flags of A4, and not supported anymore by A5, A6, and A7. You must be an old-timer.

Re: Possible A7.07 bug [Re: jcl] #174443
12/27/07 19:00
12/27/07 19:00
Joined: Oct 2005
Posts: 131
C
CBSection31 Offline OP
Member
CBSection31  Offline OP
Member
C

Joined: Oct 2005
Posts: 131
Haha, yes. I was never around on the forums back then, but I was an avid user of A4. I then left the engine for a long time (I never upgraded to A5), and ended up buying a new account with A6 about a year before A7 was released.

I'll go ahead and remove the "d3d" and "refresh" flags, since they are useless.


Moderated by  jcl, Nems, Spirit, Tobias 

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