Results 1 to 6 of 6

Thread: Sprites appear blurry

  1. #1

    Sprites appear blurry

    Hallo everyone. Game written in Delphi 6 and DelphiX.

    Is there something wrong with my code? On my work Pc the sprites are not blurry but on my Laptop they appear very blurry. Is there something that I can do?

    [pascal]procedure TMan.DoMove(MoveCount: Integer);
    begin
    if (fHit) then
    begin
    Movement := 0;
    Y := Y + (7 * updatespeed);
    end
    else
    begin
    if (isUp in form1.DXInput1.States) then
    Y := y + (7 * updatespeed) else
    Y := Y + (3 * updatespeed);
    if y > Form1.DXDraw1.Height - 100 then
    dead;
    if (Movement = 0) Then
    Movement := Random(2);
    if X > 560 Then Movement := 1;
    if X < 50 Then Movement := 2;
    end;
    Case Movement of
    1:
    x := X - (7*updatespeed);
    2:
    X := X + (7*updatespeed);
    end;
    end;[/pascal]

    TMan(MyMen[loop]).DoMove(1);
    Wake up from the dream and live your life to the full

  2. #2

    Sprites appear blurry

    Do you have different monitors at work and home? One CRT and one TFT? On TFT's sometimes moving things appear blurry.. Also a resolution which the TFT is not made for (most TFT have native 1280x1024 support and other resolutions look blurred!) makes things appear blurry...

    When the sprites look correct on one PC and not on a second one, I guess its the monitors and not your code.
    <a href="http://www.greatgamesexperiment.com/game/Valgard/?utm_source=gge&amp;utm_medium=badge_game"><img border="0" alt="GGE" title="GGE" src="http://static.greatgamesexperiment.com/badge/game/valgard/gge400x56.png"></a>

  3. #3

    Sprites appear blurry

    what resolution is your laptop screen and what resolution is your game?

    Laptops have a fixed resolution of display elements so in order to approximate a lower resolution, they blur the pixels to prevent them from looking odd and blocky as they try to make a smaller image fit a larger display matrix. Otherwise it would look strange, some pixels would be 2 or 3 pixels wide whereas others might be 4 .. it makes the whole image look tatty... blurring is the better option.

    Of course, you could always resize your game's window to be the same as the laptop display.

  4. #4

    Sprites appear blurry

    Huehnerschaender: I don't know about CRT or TFT...I'll do some investigation but I agree with you. It must be the monitor.

    jasonf: The LapTop screen and my Pc is 1024*768 but the game resolution in DxDraw.Display is 800*600*16. I did try differnet values but no change on the LapTop :-( I don't want to resize my game window to be the same as the LapTop display...

    Thanks for the insight....I'm not going to worry about it too much as it works 100 % on most PC's I've tested :-)
    Wake up from the dream and live your life to the full

  5. #5

    Sprites appear blurry

    CRT are the "older" monitors. CRT stands for "Cathode Ray Tube". Those monitors where the front is made of glass and the monitors depth is nearly the same like its width and height

    TFT ("Thin Film Transistor") monitors are the flat ones you normally buy today. Your laptop comes with a TFT display
    <a href="http://www.greatgamesexperiment.com/game/Valgard/?utm_source=gge&amp;utm_medium=badge_game"><img border="0" alt="GGE" title="GGE" src="http://static.greatgamesexperiment.com/badge/game/valgard/gge400x56.png"></a>

  6. #6

    Sprites appear blurry

    Huehnerschaender: Thanks for explaining :-) Yes, the LapTop is indeed a TFT display. I'll test the 1280x1024 display setting tonight...

    Thanks again
    Wake up from the dream and live your life to the full

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •