2 registered members (Akow, tomaslolo),
1,536
guests, and 12
spiders. |
Key:
Admin,
Global Mod,
Mod
|
|
|
Possible A7.07 bug
#174435
12/22/07 23:51
12/22/07 23:51
|
Joined: Oct 2005
Posts: 131
CBSection31
OP
Member
|
OP
Member
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.062. Main Menu Screenshot from A7.07As 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: D3D]
#174438
12/26/07 01:55
12/26/07 01:55
|
Joined: Oct 2005
Posts: 131
CBSection31
OP
Member
|
OP
Member
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
Serious User
|
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); } }
|
|
|
|