POV-Ray : Newsgroups : povray.binaries.scene-files : Views macro Server Time
2 Sep 2024 10:16:52 EDT (-0400)
  Views macro (Message 1 to 4 of 4)  
From: Mael
Subject: Views macro
Date: 20 Sep 2001 02:48:59
Message: <3ba9915b@news.povray.org>
here is an include file for pov3.5 to render an object with 4 views as in a
modeler
to use it you have to include "views.inc" , declare your object and call the
macro Views (you don't need camera or lights, but the object must have a
texture)

Views (my_object,view1,view2,view3,view4,same_scale,bounding_box,samples)

parameters :
-my_object : the object you want to visualize
-view1 to view4 : the four views, for each you choose among "front", "back",
"top", "bottom", "left", "right", "perspective"
-same_scale : use the same scale for the 4 views if yes, and if no use
different scale
-bounding_box : render the bounding box if yes
-samples : if 0 use the min/max extent from povray, else the macro attempts
to find a better bounding using the trace function (sometimes the bounding
of pov is not very good for csg object), don t use a too large number anyway
, the algorithm is not very good (around 30 should be ok)

ex: Views(obj,"front","left","top","perspective",yes,no,0)

M


Post a reply to this message


Attachments:
Download 'views.inc.txt' (10 KB)

From: Nekar Xenos
Subject: Re: Views macro
Date: 20 Sep 2001 04:36:06
Message: <3ba9aa76@news.povray.org>
Thanks. Will take a look at it.

- Nekar
"Mael" <mae### [at] hotmailcom> wrote in message news:3ba9915b@news.povray.org...
> here is an include file for pov3.5 to render an object with 4 views as in a
> modeler
> to use it you have to include "views.inc" , declare your object and call the
> macro Views (you don't need camera or lights, but the object must have a
> texture)
>
> Views (my_object,view1,view2,view3,view4,same_scale,bounding_box,samples)
>
> parameters :
> -my_object : the object you want to visualize
> -view1 to view4 : the four views, for each you choose among "front", "back",
> "top", "bottom", "left", "right", "perspective"
> -same_scale : use the same scale for the 4 views if yes, and if no use
> different scale
> -bounding_box : render the bounding box if yes
> -samples : if 0 use the min/max extent from povray, else the macro attempts
> to find a better bounding using the trace function (sometimes the bounding
> of pov is not very good for csg object), don t use a too large number anyway
> , the algorithm is not very good (around 30 should be ok)
>
> ex: Views(obj,"front","left","top","perspective",yes,no,0)
>
> M
>
>
>
>


Post a reply to this message

From: JRG
Subject: Re: Views macro
Date: 3 Oct 2001 14:47:44
Message: <3bbb5d50$1@news.povray.org>
Can I suggest you to add a parameter to globally control the illumination
(which it's a bit dim now).
Nice work. I find it usefull.

--
Jonathan.
"Mael" <mae### [at] hotmailcom> ha scritto nel messaggio
news:3ba9915b@news.povray.org...
> here is an include file for pov3.5 to render an object with 4 views as in
a
> modeler
> to use it you have to include "views.inc" , declare your object and call
the
> macro Views (you don't need camera or lights, but the object must have a
> texture)
>
> Views (my_object,view1,view2,view3,view4,same_scale,bounding_box,samples)
>
> parameters :
> -my_object : the object you want to visualize
> -view1 to view4 : the four views, for each you choose among "front",
"back",
> "top", "bottom", "left", "right", "perspective"
> -same_scale : use the same scale for the 4 views if yes, and if no use
> different scale
> -bounding_box : render the bounding box if yes
> -samples : if 0 use the min/max extent from povray, else the macro
attempts
> to find a better bounding using the trace function (sometimes the bounding
> of pov is not very good for csg object), don t use a too large number
anyway
> , the algorithm is not very good (around 30 should be ok)
>
> ex: Views(obj,"front","left","top","perspective",yes,no,0)
>
> M
>
>
>
>


Post a reply to this message

From: Brendan Hurley
Subject: Re: Views macro
Date: 7 Dec 2001 00:42:39
Message: <3C10575B.9558319B@saber.net>
Hi, Mael,

[snip]
> here is an include file for pov3.5 to render an object with 4 views as > in a
modeler
[snip]

Thank you,  I will try it out and post a sample (next week?)

Blessings,
         Brendan

-- 
Michael Brendan Hurley           ShadowDancerEnterprizes, LTD.
POV Site: http://www.geocities.com/mbrendanh/indxx01.html
Family:   http://www.saber.net/~mbhcgc/index.shtml
mbh### [at] sabernet


Post a reply to this message

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