• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
OpenGL and crawling ants
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

OpenGL and crawling ants


  • Subject: OpenGL and crawling ants
  • From: Todd Heberlein <email@hidden>
  • Date: Sun, 08 Jun 2014 18:50:23 -0700

I've just started playing with OpenGL, and I'm trying to use GLKBaseEffect and GLKTextureInfo in part to avoid writing my own shaders, but I'm getting a crawling ants effect.

I have a texture that is a square with black edges. For the floor I essentially have a series of rectangles on which the texture maps one-to-one with each square creating a grid.

In the distance the black edges switch between being drawn and not being drawn. I thought the GLKTextureInfo used linear sampling and that that should resolve the problem by creating a more grayish area.

Is my interpretation of GLKTextureInfo and sampling wrong? Am I doing something wrong?

I've posted a screenshot of the crawling ants effect that I am seeing here:

http://www.toddheberlein.com/blog/2014/6/8/opengl-and-crawling-ants

Thanks,

Todd

_______________________________________________

Cocoa-dev mailing list (email@hidden)

Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com

Help/Unsubscribe/Update your Subscription:

This email sent to email@hidden


  • Follow-Ups:
    • Re: OpenGL and crawling ants
      • From: Seth Willits <email@hidden>
  • Prev by Date: Re: Another dumb question about NSWindowController(s)
  • Next by Date: Re: OpenGL and crawling ants
  • Previous by thread: Re: File's owner in nib file
  • Next by thread: Re: OpenGL and crawling ants
  • Index(es):
    • Date
    • Thread