• 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
Re: OpenGL Shadows
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: OpenGL Shadows


  • Subject: Re: OpenGL Shadows
  • From: "Gerriet M. Denkmann" <email@hidden>
  • Date: Mon, 20 Oct 2003 22:20:40 +0200

On Monday, October 20, 2003, at 10:04 am, Gerriet M. Denkmann wrote:

I have an OpenGL scene with objects and shadows on a plane floor.
But depending on the view angle, I sometimes get a rather patchy and ugly mixture of shadow and floor (depth test is on).

My current fix is to move the floor a few millimeters down, so that the shadows (and the objects) actually hover some millimeters above the floor.

This works and the mis-placement of the floor is not detectable. But is somehow feels like an ugly hack.

So: what is the real and elegant solution to put shadows on a floor?

To answer my own question: I found a solution, which is real and maybe elegant:

disable depth buffer
draw floor
enable depth buffer

draw shadows

disable colour buffer
draw floor
enable colour buffer

draw other things ...

Kind regards,

Gerriet.
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.

References: 
 >Re: OpenGL Shadows (From: "Alastair J.Houghton" <email@hidden>)

  • Prev by Date: Re: Newbie NSToolbar question? [RESOLVED]
  • Next by Date: How do I make linenumbers
  • Previous by thread: Re: OpenGL Shadows
  • Next by thread: Mimicking Finder's List View with NSTableView
  • Index(es):
    • Date
    • Thread