POV-Ray : Newsgroups : povray.unofficial.patches : How To Do It Server Time
3 Jul 2024 05:13:37 EDT (-0400)
  How To Do It (Message 1 to 3 of 3)  
From: Anton Sherwood
Subject: How To Do It
Date: 16 Nov 2002 00:36:36
Message: <3DD5D947.A4C9BC08@pobox.com>
Has anything been written on how to patch Pov, or is working it out
for oneself deemed an appropriate test of necessary skill?

-- 
Anton Sherwood, http://www.ogre.nu/


Post a reply to this message

From: Warp
Subject: Re: How To Do It
Date: 16 Nov 2002 03:57:46
Message: <3dd6088a@news.povray.org>
Anton Sherwood <bro### [at] poboxcom> wrote:
> Has anything been written on how to patch Pov

  That's simple:

  1. Study the source code.
  2. Make the additions you want.

  One tip is that if you are doing something which already exists in POV-Ray
in another form (for example you are trying to add a new pattern), then look
how the other one is done and make your addition in the same way.

  PS. No, it might not be the easiest way like this, but AFAIK it's the
only way currently. :)

-- 
#macro N(D)#if(D>99)cylinder{M()#local D=div(D,104);M().5,2pigment{rgb M()}}
N(D)#end#end#macro M()<mod(D,13)-6mod(div(D,13)8)-3,10>#end blob{
N(11117333955)N(4254934330)N(3900569407)N(7382340)N(3358)N(970)}//  - Warp -


Post a reply to this message

From: Christopher James Huff
Subject: Re: How To Do It
Date: 16 Nov 2002 17:23:15
Message: <chrishuff-89678C.17223516112002@netplex.aussie.org>
In article <3DD5D947.A4C9BC08@pobox.com>,
 Anton Sherwood <bro### [at] poboxcom> wrote:

> Has anything been written on how to patch Pov, or is working it out
> for oneself deemed an appropriate test of necessary skill?

Your question is a little vague..."patching POV" covers a wide range of 
possibilities. There are a couple tutorials, I wrote one for 3.1, and 
there is one for adding built-in functions. Once you figure out the 
basic layout of things, it usually isn't that hard to follow the code 
for a similar existing patch or feature feature through the source, and 
just imitate that. If you have more specific questions, post them here 
or in *.programming.

-- 
Christopher James Huff <cja### [at] earthlinknet>
http://home.earthlink.net/~cjameshuff/
POV-Ray TAG: chr### [at] tagpovrayorg
http://tag.povray.org/


Post a reply to this message

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