POV-Ray : Newsgroups : povray.general : Graphical projections : Graphical projections Server Time: 19 Jun 2019 07:11:08 GMT
  Graphical projections  
From: Mike Horvath
Date: 12 May 2019 01:20:44
I've created some illustrations showing different graphical projections.


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 
	#include "screen.inc"

	Set_Camera_Alt(cam_loca, cam_dirc, cam_rgvc, cam_upvc)



Post a reply to this message

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