POV-Ray : Newsgroups : povray.general : fit imported image to screen : Re: fit imported image to screen Server Time
25 Apr 2024 13:25:57 EDT (-0400)
  Re: fit imported image to screen  
From: jr
Date: 21 Jul 2022 14:25:00
Message: <web.62d9993c5cc658d21be3cd4b6cde94f1@news.povray.org>
hi,

"6digit" <eob### [at] gmailcom> wrote:
> ...
> good evening so i created a series of cylinders using the following code
> sphere_sweep {
>     linear_spline
>     5,
>     <image_width,image_height, 5>, 0.5
>     <image_width, image_height, 6>, 0.5
>     <image_width, image_height, 7>, 0.5
>     <image_width, image_height, 8>,0.5
>     <image_width, image_height, 9>,0.5
>     tolerance 0.1
>     scale 0.9
>     //rotate<0.0169,0.5644,3.0455>
>
>   }
> i want to overlay this image over the image imported to pov ray. i have 2 issues
> tho the first been
> 1. it seems the cylinders are behind the image ? how do i bring them foward in a
> way they can seen as an intergral part of the scene. secondly how do i put them
> in the x and y plane

#2 - each point is a (3-vector) sphere centre, so just place them at convenient
locations.

#1 - so much depends.  you could declare the sweep, then translate it so it
moves nearer the camera, eg

#declare theSweep = sphere_sweep { ... };
  ...
object {theSweep translate some_pos}


regards, jr.


Post a reply to this message

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