Opengl - glCanvas

This forum can be used to talk about general design strategies, new ideas and questions in general related to wxWidgets. If you feel your questions doesn't fit anywhere, put it here.
Post Reply
theWolf
Knows some wx things
Knows some wx things
Posts: 43
Joined: Wed May 18, 2005 12:27 am

Opengl - glCanvas

Post by theWolf » Fri Aug 26, 2005 5:52 pm

Hello,

I can't seem to get picking to work using wxGlCanvas.

Rendering works good, but when a go to my feedback-picking
method things don't work.

I think I don't know how to handle the dc and rc outside of the normal glCanvas OnPaint method.

Does anyone out there have a short Opengl example that uses the feedback buffer to pick an object.

Thanks much :?
______________
WxWidgets 2.6.1, .net 2003, Windows2000
Sometimes there's a lot of gravel around the gems. WxWidgets is a gem!

geon
I live to help wx-kind
I live to help wx-kind
Posts: 189
Joined: Tue Sep 07, 2004 4:10 pm
Location: Sweden, Uppsala

Post by geon » Sun Aug 28, 2005 11:22 pm

My suggestion would be to not use picking at all, since it is pretty limited. Use a ray-triangle intersection test instead.

Post Reply