POV-Ray : Newsgroups : povray.programming : povray as a library Server Time
28 Jul 2024 18:14:39 EDT (-0400)
  povray as a library (Message 1 to 8 of 8)  
From: Robert Schutt
Subject: povray as a library
Date: 21 Mar 2000 09:00:47
Message: <38d7808f$1@news.povray.org>
I am trying to use povray as a "library" for some graphics work I am doing
for my masters thesis.

I am looking for a function somewhat like this:

color ray_trace (ray r);  // takes a ray and returns a color.

Can anyone help me to know if this function exists in the souce?  If so,
what file is it in?

Further, does anyone know if someone has modified povray to do this already?

Thanks in advance,

-Robert

********************************************
Robert Schutt - rsc### [at] csvirginiaedu
http://www.cs.virginia.edu/~rcs5y/ (last updated - July 1, 1999)
Phone: (804) 242-2513 Office: 238 Olsson Hall


Post a reply to this message

From: Nieminen Juha
Subject: Re: povray as a library
Date: 21 Mar 2000 09:29:01
Message: <38d7872c@news.povray.org>
Robert Schutt <rsc### [at] csvirginiaedu> wrote:
: I am trying to use povray as a "library"

  You can't. POVLEGAL.DOC prohibites this.

-- 
main(i,_){for(_?--i,main(i+2,"FhhQHFIJD|FQTITFN]zRFHhhTBFHhhTBFysdB"[i]
):5;i&&_>1;printf("%s",_-70?_&1?"[]":" ":(_=0,"\n")),_/=2);} /*- Warp -*/


Post a reply to this message

From: Ron Parker
Subject: Re: povray as a library
Date: 21 Mar 2000 10:44:56
Message: <38d798f8$1@news.povray.org>
On 21 Mar 2000 09:29:01 -0500, Nieminen Juha wrote:
>Robert Schutt <rsc### [at] csvirginiaedu> wrote:
>: I am trying to use povray as a "library"
>
>  You can't. POVLEGAL.DOC prohibites this.

Only if you plan to distribute the changes.  If you keep the resulting
binaries and source code to yourself, you can do essentially whatever you 
want to with it, but of course note the disclaimer.

-- 
These are my opinions.  I do NOT speak for the POV-Team.
The superpatch: http://www2.fwi.com/~parkerr/superpatch/
My other stuff: http://www2.fwi.com/~parkerr/traces.html


Post a reply to this message

From: Robert Schutt
Subject: Re: povray as a library
Date: 21 Mar 2000 10:49:13
Message: <38d799f9$1@news.povray.org>
I am not planning on distributing it but only using it myself to help me
with my masters thesis.

--
********************************************
Robert Schutt - rsc### [at] csvirginiaedu
http://www.cs.virginia.edu/~rcs5y/ (last updated - July 1, 1999)
Phone: (804) 242-2513 Office: 238 Olsson Hall

"Nieminen Juha" <war### [at] sarakerttunencstutfi> wrote in message
news:38d7872c@news.povray.org...
> Robert Schutt <rsc### [at] csvirginiaedu> wrote:
> : I am trying to use povray as a "library"
>
>   You can't. POVLEGAL.DOC prohibites this.
>
> --
> main(i,_){for(_?--i,main(i+2,"FhhQHFIJD|FQTITFN]zRFHhhTBFHhhTBFysdB"[i]
> ):5;i&&_>1;printf("%s",_-70?_&1?"[]":" ":(_=0,"\n")),_/=2);} /*- Warp -*/


Post a reply to this message

From: Ron Parker
Subject: Re: povray as a library
Date: 21 Mar 2000 11:10:56
Message: <38d79f10$1@news.povray.org>
On Tue, 21 Mar 2000 09:00:33 -0800, Robert Schutt wrote:

>I am looking for a function somewhat like this:
>
>color ray_trace (ray r);  // takes a ray and returns a color.

There's Trace, defined as

DBL Trace(RAY *Ray, COLOUR Colour, DBL Weight)

in render.c

-- 
These are my opinions.  I do NOT speak for the POV-Team.
The superpatch: http://www2.fwi.com/~parkerr/superpatch/
My other stuff: http://www2.fwi.com/~parkerr/traces.html


Post a reply to this message

From: Nieminen Juha
Subject: Re: povray as a library
Date: 22 Mar 2000 04:22:38
Message: <38d890dd@news.povray.org>
Robert Schutt <rsc### [at] csvirginiaedu> wrote:

: I am not planning on distributing it but only using it myself to help me
: with my masters thesis.

  Oh, sorry. Then it's ok. As the license says, "What you do with the
software in your own home is your business". :)

-- 
main(i,_){for(_?--i,main(i+2,"FhhQHFIJD|FQTITFN]zRFHhhTBFHhhTBFysdB"[i]
):5;i&&_>1;printf("%s",_-70?_&1?"[]":" ":(_=0,"\n")),_/=2);} /*- Warp -*/


Post a reply to this message

From: Robert Schutt
Subject: Re: povray as a library
Date: 28 Mar 2000 09:44:32
Message: <38e0c550$1@news.povray.org>
Thanks for the help on finding the trace function!

Does anyone know where the function is that loads all the data structures
with the information from the input file?

-Robert


Post a reply to this message

From: Ron Parker
Subject: Re: povray as a library
Date: 28 Mar 2000 11:40:21
Message: <38e0e075$1@news.povray.org>
On Tue, 28 Mar 2000 09:42:43 -0500, Robert Schutt wrote:
>Thanks for the help on finding the trace function!
>
>Does anyone know where the function is that loads all the data structures
>with the information from the input file?

Yes.

Oh, you actually want to know? :)

Parse(), in parse.c.  But you have lots of initialization and finalization to 
do, too.  See FrameRender, in povray.c, for details.

-- 
These are my opinions.  I do NOT speak for the POV-Team.
The superpatch: http://www2.fwi.com/~parkerr/superpatch/
My other stuff: http://www2.fwi.com/~parkerr/traces.html


Post a reply to this message

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