POV-Ray : Newsgroups : povray.general : Graphical projections Server Time
21 Dec 2024 21:09:22 EST (-0500)
  Graphical projections (Message 1 to 3 of 3)  
From: Mike Horvath
Subject: Graphical projections
Date: 11 May 2019 21:20:44
Message: <5cd774ec$1@news.povray.org>
I've created some illustrations showing different graphical projections.

https://commons.wikimedia.org/wiki/File:Graphical_projection_comparison.png

I'm trying to figure out how to illustrate "cabinet projection" however. 
The existing "cavalier projection" is nearly identical, except that 
"cabinet projection" is half as long in the z direction. I could shrink 
the model of the house along this axis, but I'd rather find a way that 
only alters the camera statement. Any ideas?

Here is the camera code I use for "cabinet projection":

	#local cam_area = 2 * 5/4;
	#local cam_loca = vnormalize(-z/sind(045)+y-x) * cam_dist;
	#local cam_dirc = vnormalize(+z/sind(045)-y+x);
	#local cam_rgvc = +x * cam_area;
	#local cam_upvc = +y * cam_area;
	#local cam_tran = transform
	{
		translate +y * cam_move
	}

	// requires the updated version of "screen.inc" available here:
	// http://news.povray.org/povray.text.scene-files/thread 
/%3C581be4f1%241%40news.povray.org%3E/
	#include "screen.inc"

	Set_Camera_Orthographic(true)
	Set_Camera_Transform(cam_tran)
	Set_Camera_Alt(cam_loca, cam_dirc, cam_rgvc, cam_upvc)

Thanks!!

Michael


Post a reply to this message

From: Le Forgeron
Subject: Re: Graphical projections
Date: 12 May 2019 07:46:34
Message: <5cd8079a$1@news.povray.org>
Le 12/05/2019 à 03:20, Mike Horvath a écrit :
> I've created some illustrations showing different graphical projections.
> 
> https://commons.wikimedia.org/wiki/File:Graphical_projection_comparison.png
> 
> I'm trying to figure out how to illustrate "cabinet projection" however.
> The existing "cavalier projection" is nearly identical, except that
> "cabinet projection" is half as long in the z direction. I could shrink
> the model of the house along this axis, but I'd rather find a way that
> only alters the camera statement. Any ideas?
> 
> Here is the camera code I use for "cabinet projection":
> 
>     #local cam_area = 2 * 5/4;
>     #local cam_loca = vnormalize(-z/sind(045)+y-x) * cam_dist;
>     #local cam_dirc = vnormalize(+z/sind(045)-y+x);
>     #local cam_rgvc = +x * cam_area;
>     #local cam_upvc = +y * cam_area;
>     #local cam_tran = transform
>     {
>         translate +y * cam_move
>     }
> 
>     // requires the updated version of "screen.inc" available here:
>     // http://news.povray.org/povray.text.scene-files/thread
> /%3C581be4f1%241%40news.povray.org%3E/
>     #include "screen.inc"
> 
>     Set_Camera_Orthographic(true)
>     Set_Camera_Transform(cam_tran)
>     Set_Camera_Alt(cam_loca, cam_dirc, cam_rgvc, cam_upvc)
> 
> Thanks!!
> 
> Michael

Old, very old experiment, at http://jgrimbert.free.fr/pov/labo/

I did not test with latest povray.


Post a reply to this message

From: Mike Horvath
Subject: Re: Graphical projections
Date: 13 May 2019 04:37:08
Message: <5cd92cb4$1@news.povray.org>
On 5/12/2019 7:46 AM, Le_Forgeron wrote:
> Le 12/05/2019 à 03:20, Mike Horvath a écrit :
>> I've created some illustrations showing different graphical projections.
>>
>> https://commons.wikimedia.org/wiki/File:Graphical_projection_comparison.png
>>
>> I'm trying to figure out how to illustrate "cabinet projection" however.
>> The existing "cavalier projection" is nearly identical, except that
>> "cabinet projection" is half as long in the z direction. I could shrink
>> the model of the house along this axis, but I'd rather find a way that
>> only alters the camera statement. Any ideas?
>>
>> Here is the camera code I use for "cabinet projection":
>>
>>      #local cam_area = 2 * 5/4;
>>      #local cam_loca = vnormalize(-z/sind(045)+y-x) * cam_dist;
>>      #local cam_dirc = vnormalize(+z/sind(045)-y+x);
>>      #local cam_rgvc = +x * cam_area;
>>      #local cam_upvc = +y * cam_area;
>>      #local cam_tran = transform
>>      {
>>          translate +y * cam_move
>>      }
>>
>>      // requires the updated version of "screen.inc" available here:
>>      // http://news.povray.org/povray.text.scene-files/thread
>> /%3C581be4f1%241%40news.povray.org%3E/
>>      #include "screen.inc"
>>
>>      Set_Camera_Orthographic(true)
>>      Set_Camera_Transform(cam_tran)
>>      Set_Camera_Alt(cam_loca, cam_dirc, cam_rgvc, cam_upvc)
>>
>> Thanks!!
>>
>> Michael
> 
> Old, very old experiment, at http://jgrimbert.free.fr/pov/labo/
> 
> I did not test with latest povray.
> 


Very good, thank you.


Michael


Post a reply to this message

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