Page 3 of 4 FirstFirst 1234 LastLast
Results 21 to 30 of 36

Thread: Has anyone used a texture atlas and used it in Chrome?

  1. #21
    Junior Member
    Join Date
    Sep 2010
    Posts
    15

    Re: Has anyone used a texture atlas and used it in Chrome?

    I am and have been using Nearest for mag and min filtering because I liked the look. Should I not be doing that? Lol.

  2. #22
    Senior Member
    Join Date
    May 2010
    Posts
    207

    Re: Has anyone used a texture atlas and used it in Chrome?

    Yeesh! I wouldn't want to play any game with NEAREST texture filtering on 3D surfaces! I'd have a blinding headache within minutes! More or less the only thing I use NEAREST for is rendering things like text that I know the exact size of - and which is rendered onto polygons that are guaranteed to be parallel to the screen.

    For everything else, you get this insanely "noisy" mush out further from the camera and as things go more edge-on.

    Generally:

    * NEAREST - for stuff like fonts that need to be super-crisp and where you know their precise relationship to the camera. I also use them for lookup tables and other things that aren't really pictures.
    * LINEAR - for really specialized shader applications...I can't think of an easily explicable example right now.
    * LINEAR_MIPMAP_LINEAR - for 99% of all other 3D rendering things.
    * Some hardware also supports ANISOTROPIC filtering - which is good for horizontal polygons in low eye point applications that are often close to being edge-on and which have strong near-to-far edges in them (eg the stripes painted down the center and sides of a road texture in a driving game).

    On modern hardware, the LINEAR_MIPMAP_LINEAR mode is also generally the fastest because it automatically drops you down to lower resolution versions of the texture where it can - and that dramatically improves the cache availability in the GPU.

    LINEAR_MIPMAP_LINEAR also looks a million times better - it's smooth and doesn't break up with moire fringing and other nastiness.

    In general, set everything to LINEAR_MIPMAP_LINEAR unless you have really REALLY good technical reasons not to.

  3. #23

    Re: Has anyone used a texture atlas and used it in Chrome?

    Steve,
    I checked the mesh in 3dsmax and all the vertices where the artifacts appeared are perfectly shared by polygon and there's no revolution-generated thing.
    And even though on chrome, I can only see artifacts in one PC, when I display the same model with chrome in other pcs, all artifacts just go out.
    If you want to check out this issue, you can visit this page:
    http://www.oak3d.com/?page_id=9 and the "Demo 4" is the one.

  4. #24
    Senior Member
    Join Date
    May 2010
    Posts
    207

    Re: Has anyone used a texture atlas and used it in Chrome?

    So did you try the experiment of clearing the screen to some other color and looking to see if the cracks are background-color?

    -- Steve

  5. #25

    Re: Has anyone used a texture atlas and used it in Chrome?

    Not yet. I'll let you know when I test it.

  6. #26

    Re: Has anyone used a texture atlas and used it in Chrome?

    I found where the problem is.
    First: the white line is the gap between neighboring polygons.
    Second: the gap only appears when I disable the back face culling. If I disable the back face culling, I can see the back face of the model through the polygon gap. But when the back face culling is enabled, I can not see anything wrong(if the gap is still there then I should see the background color through the gaps).

  7. #27
    Senior Member
    Join Date
    May 2010
    Posts
    207

    Re: Has anyone used a texture atlas and used it in Chrome?

    I'm pretty sure you have it backwards:

    If you disable back face culling then what you see through the gap is the inside of the model - which is going to be very similar in color to the front face of the model - so it disguises the gaps.

    If you enable backface culling then you'll see the background color through the cracks because the "inside" of the model is being culled.

    So...as I said at the start...you have gaps in your model. No mystery here!

    -- Steve

  8. #28

    Re: Has anyone used a texture atlas and used it in Chrome?

    No, I mean when I disable the back face culling, I can see the back face of the model through the gaps(due to the diffuse lighting, I can disguish them by the different color).
    But when I enable the back face culling, I can not see the background color everywhere on the model no matter what the background color is.

  9. #29

    Re: Has anyone used a texture atlas and used it in Chrome?

    I tryed using different model material color and the background color to test where the color of the gaps came from and I'm sure that the gaps only appears when back face culling is disabled.

  10. #30
    Senior Member
    Join Date
    May 2010
    Posts
    207

    Re: Has anyone used a texture atlas and used it in Chrome?

    OK - so if you ENABLE back face culling and clear the screen to (say) red - your artifacts disappear?

    Can I see a screen shot of that?

Page 3 of 4 FirstFirst 1234 LastLast

Similar Threads

  1. Texture atlas for objects with shared vertexes.
    By unparagoned in forum OpenGL ES general technical discussions
    Replies: 3
    Last Post: 04-03-2009, 10:09 AM

Posting Permissions

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