Results 1 to 5 of 5

Thread: White artifacts

  1. #1
    Lesser Knight
    Join Date
    May 2010
    Posts
    32

    Question White artifacts

    Hi, all!

    I have problem with motion sprites in my project. If motion "speed = 1.f", then no problem, but if "speed = speed + 0.1f" i have some artifacts:


    Speed = 1.f:



    How i can fixed its?

    Thnx.

  2. #2
    Squire
    Join Date
    Sep 2011
    Location
    Poland
    Posts
    16

    Default

    Try to turn off the linear filter of the sprite.

    Code:
    CL_Sprite sprite(gc, "player", &resources);
    sprite.set_linear_filter(false);

  3. #3
    Lesser Knight
    Join Date
    May 2010
    Posts
    32

    Default

    Quote Originally Posted by Griz View Post
    Try to turn off the linear filter of the sprite.

    Code:
    CL_Sprite sprite(gc, "player", &resources);
    sprite.set_linear_filter(false);
    It did not work

  4. #4
    Squire
    Join Date
    Sep 2011
    Location
    Poland
    Posts
    16

    Default

    You could also check out drawing the sprite using integer variables.
    Code:
    sprite.draw(gc,(int)posX,(int)posY);
    Anyways what version of Clanlib do you happen to use? Also which renderer?

  5. #5
    Lesser Knight
    Join Date
    May 2010
    Posts
    32

    Default

    Quote Originally Posted by Griz View Post
    You could also check out drawing the sprite using integer variables.
    Code:
    sprite.draw(gc,(int)posX,(int)posY);
    It worked for me

    P.s. ClanLib 2.3.5, Render - OpenGL

Similar Threads

  1. Replies: 11
    Last Post: 05-08-2012, 04:29 PM
  2. white texture on iOS
    By osgoz in forum Proton SDK
    Replies: 2
    Last Post: 02-17-2012, 08:46 AM
  3. white in VIP!
    By soccerfu in forum Tanked
    Replies: 6
    Last Post: 11-29-2011, 01:02 AM
  4. Replies: 9
    Last Post: 09-18-2011, 11:38 PM
  5. CL_OpenGLSurface Artifacts
    By ElephantHunter in forum Official ClanLib SDK Forums
    Replies: 2
    Last Post: 09-20-2008, 07:07 PM

Bookmarks

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
  •