Forum Moderators: Staff
Poser Python Scripting F.A.Q (Last Updated: 2025 Feb 05 6:41 am)
Poser only provides the opposite conversion (World -> Screen).
You can't do it without access to information from OpenGL, specifically the perspective transform matrix.
While it is possible to get access to the underlying OpenGL stuff by installing extra Python modules, doing OpenGL picking requires a fair amount of understanding and work (and you'll still have to write code to resolve hits into polygons/actors).
I have some experience with opengl programming (being coding flight simulators for a while, long time ago: http://www.simulationfreaks.com/), so I would know how to do that. Unfortunately, as you confirmed, poser opengl environment is not accessible. Thanks anyway to clarify that
visit my
blog: www.alessandromastronardi.com
My
Rendo Store
Quote - Unfortunately, as you confirmed, poser opengl environment is not accessible.
In P8 it is if you install a wrapper module and hook into the canvas via wxPython.
If it's just for your own use, then you'll either mange it or not, but if it was intended for others to use, then it probably wouldn't be worth the support effort.
This site uses cookies to deliver the best experience. Our own cookies make user accounts and other features possible. Third-party cookies are used to display relevant ads and to analyze how Renderosity is used. By using our site, you acknowledge that you have read and understood our Terms of Service, including our Cookie Policy and our Privacy Policy.
I'd like to ask if picking is possible using wxPython: I would like, for example, to run a python script that return the xyz coordinate of a point in 3d space.
So for instance, if you click on the Poser ground prop, or a figure, it would return the coordinates of that point (pixel) you clicked on.
Thanks
visit my blog: www.alessandromastronardi.com
My Rendo Store