We closed this forum 18 June 2010. It has served us well since 2005 as the ALPHA forum did before it from 2002 to 2005. New discussions are ongoing at the new URL http://forum.processing.org. You'll need to sign up and get a new user account. We're sorry about that inconvenience, but we think it's better in the long run. The content on this forum will remain online.
IndexProgramming Questions & HelpOther Libraries › P5Sunflow - P3D camera discrepancy
Page Index Toggle Pages: 1
P5Sunflow - P3D camera discrepancy (Read 466 times)
P5Sunflow - P3D camera discrepancy
Apr 8th, 2008, 5:00am
 
It's been driving me a bit nuts that I would set up a scene using th P3D renderer and then kick over to P5Sunflow to render it only to find they didn't match.  After some test I've realized that the camera focal lengths between the two don't seem to match.  Does anyone have any idea what the default P3D camera settings are and how I would go about setting a Sunflow cam to match.  Currently I'm just using the pinhole sunflow camera.

Any help is much appreciated

http://farm4.static.flickr.com/3047/2397831130_51eb6e52f6.jpg?v=0      P3D

http://farm4.static.flickr.com/3158/2397829190_2eea39b492.jpg?v=0    Sunflow




Re: P5Sunflow - P3D camera discrepancy
Reply #1 - Apr 16th, 2008, 6:15pm
 
I'm having a similar issue, but I'm switching from OpenGL using Kristian Damkjer's OCD camera library.  In my case, the position of the camera moves slightly forward, rather than back in your case, clipping some geometry.  So far, I've been simply moving the camera in the sunflow sketch to compensate... about 10% of the distance from the camera to the origin.
Page Index Toggle Pages: 1