POV-Ray : Newsgroups : povray.general : from an opengl scene to a povray scene : Re: from an opengl scene to a povray scene Server Time
31 Jul 2024 06:24:32 EDT (-0400)
  Re: from an opengl scene to a povray scene  
From: Ray Gardener
Date: 31 Aug 2007 05:12:40
Message: <46d7db88@news.povray.org>
> I have a opengl (with GLUT) scene with spheres and boxes which I'd
> like to make a nice snapshot of with povray.


If you can, define your OpenGL camera in terms of FOV, world position, 
cam up vector, look_at point (or a direction from which the look_at 
point can easily be computed), and use GLUT routines like gluLookAt and 
gluPerspective to build the projection and modelview matrices. You'll 
then have the basic camera attributes from which to define a POV-Ray 
camera statement. If you don't already have the cam's right vector you 
can build it from cross product of the up and fwd vectors.

Ray


Post a reply to this message

Copyright 2003-2023 Persistence of Vision Raytracer Pty. Ltd.