POV-Ray : Newsgroups : povray.programming : POV 4 Design Musings : Re: POV 4 Design Musings Server Time
28 Jul 2024 22:30:25 EDT (-0400)
  Re: POV 4 Design Musings  
From: Ray Gardener
Date: 14 Apr 1999 05:05:21
Message: <37144c41.0@news.povray.org>
Nigel Stewart wrote in message <371438B4.3D35341D@eisa.net.au>...
>
>Here are a few ideas about a C++ povray.
>
>Would anyone like to expand the design?



How about a PovWorld or a PovScene object?
This is the object that contains all the
other scene objects, and is therefore
the root node in the scene graph.
Stuff like PovWorld.scale(x,y,z) would
scale the geometry of the entire world,
whereas object-level calls like Sphere.scale()
and Sphere.Translate() would do the
intuitive transform, making the sphere
bigger but translating it using the
world's coord system.

Of course, a PovGroup object or
a POVCSGUnion object might be the same thing,
except PovWorld has no parent object
and may have methods specific to it.

Hmm... would camera objects be part
of the PovScene scenegraph? If I scale
the world, do I want the cameras to
scale with it?

We could also use subclasses of PovCanvas
like PovZbuffer, PovAlphaChannel...

Ray


Post a reply to this message

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