POV-Ray : Newsgroups : povray.newusers : Using an image file : Re: Using an image file Server Time
26 Apr 2024 18:59:57 EDT (-0400)
  Re: Using an image file  
From: omniverse
Date: 10 Jul 2017 02:55:01
Message: <web.596324a1bbe238b19c5d6c810@news.povray.org>
"Kenneth" <kdw### [at] gmailcom> wrote:
> A simple example would be this code (assuming you already have a camera and some
> lights in the scene).

And about the camera... my example only uses a default camera which is located
at <0,0,0> pointing toward +z and I reread the question saying:
"use an image in my project and then working within the confines of this image
to complete the project"
therefore I wonder if screen.inc (or screen2.inc) would be something to try too,
even if it takes a little learning to use that.

I would be guessing here but 'confines of this image' sounds like you might be
wanting to create scene objects with that image as the only background, fully
shown yet without extra space around it.

One way is to surround the scene by putting it into a sky_sphere, which will not
show all of the image at once but act as an environment for reflections on
objects.

Another might be to use camera with 'orthographic' projection, therefore putting
the plane or box image map into the viewport of camera when using its resolution
or ratio and placing other scene elements between image and camera. Except that
would lack a perspective view.

So the method will depend a lot on what you're really trying to accomplish for
the end result.


Post a reply to this message

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