POV-Ray : Newsgroups : povray.general : perspective user defined camera? : Re: perspective user defined camera? Server Time
30 Apr 2024 19:34:00 EDT (-0400)
  Re: perspective user defined camera?  
From: Tor Olav Kristensen
Date: 31 Jan 2019 20:50:00
Message: <web.5c53a56462f292194c4249d90@news.povray.org>
ingo <ing### [at] tagpovrayorg> wrote:
> in news:web.5c4e6a2962f2921970c5131a0@news.povray.org Tor Olav
> Kristensen wrote:
>
> > BTW:
> > It would be nice if user defined cameras could be transformed
> > directly like other cameras. E.g. like this:
> >
>
> Thats what I thought too, but,
>
> This morning after seeing your new code I made a laarge pot of strong
> coffee and started tinkering. It thought me where I went wrong on several
> occasions.
> I consistenly threw away X1_Y and X1_Z components in simmilar constructs
> ;(
>   #local vT1_X = vtransform(x, LookAtTransform);
>   #local X1_X = vT1_X.x;
>   #local X1_Y = vT1_X.y;
>   #local X1_Z = vT1_X.z;
>
> After getting more grip on your code I turned it in a macro and that adds
> flexibility you won't have with direct transforms.
>
> This way you can spend your attention to the screen --> scene transfer
> and then just call the macro. It should work for most camera types.
> I can also see it useful for setting up stereo cams, parallel or toed in.
> Or for greating images with insets where a small region of the image is
> rendered as a detail for a bigger scene.
> I added it to a tile rendering camera without problem.
> So, a lot of options to investigate

It's good that it works and that you are able to proceed with you user defined
tile rendering camera.

If you create something with POV-Ray and Marzipano (or similar tools) it would
be interesting to see.

--
Tor Olav
http://subcube.com


Post a reply to this message

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