|
|
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
|
|
|
|
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
|
|