Skip to main content
GameDev.net gamedev.net
🔒 Locked

Picking

Started by Petrof Dec 28, 2006 at 12:10 PM 0 replies 550+ views
Original Post
Petrof
Petrof
Pls, help me! When I use picking on the non-transparent texture, it's ok. But when I use it for the texture with alpha channel and I click on the transparent area, the picking event is raised! So how I can make the "only non-transparent" picking ? thx PS: I map textures on a rectangle (using GL_Quads)
zimerman
zimerman
picking is a pure geometric function (rendering in GL_SELECT mode doesn't
generate any fragments - see specs) - hence you'll get hit records even for
fully transparent primitives...

...solution: skip transparent primitives while rendering in GL_SELECT mode
or use some special names for them...

Topic Locked

This topic has been locked by a moderator. New replies are not allowed.

Sign in to reply to this topic.