POV-Ray : Newsgroups : povray.unofficial.patches : I'm proud ... what now? : Re: I'm proud ... what now? Server Time
5 Jul 2024 14:15:15 EDT (-0400)
  Re: I'm proud ... what now?  
From: Christopher James Huff
Date: 20 Oct 2002 11:46:23
Message: <3db2cfcf@news.povray.org>
<jan### [at] lzernet> wrote in message news:3db1da84@news.povray.org...
> So this is nothing special for the POV-Core-development-team, but for me
it
> was something like the HelloWorld in POV. It works so far as expected, and
> seems to be "a bit faster" than the three-layer-solution I used before. My
> Question is now: How to continue?

That's exactly what it is...I started out patching by adding a "solid"
pattern. It isn't that useful now, you can use a function pattern instead,
but it was simple and a fast way to blend between textures in an animation.
I also used a pattern as the basis for my patch writing tutorial...maybe
I'll update it for 3.5. It would become obsolete because of 4.0, but there
seems to be quite a few people interested in patching POV 3.5.

> I have commented the source, where I have changed/inserted Code. Lets
consider
> this would be a useful add to POV, what would be the next steps, I should
make
> to offer it to community? Has there been some consensus on how to create a
doc
> for that and btw: How do I create a patch for these modifications now?
(I've
> not done very much programing under linux, yet, so diff/patch are quite
un-
> known to me and I'd prefer some help on how to create a proper patch-file
that
> would suite into the PoPOV-repository ...)

Well, the way I do it is this:
Enclose the patched portions of the code with preprocessor directives:
#ifdef GridPatternPatch
...grid pattern stuff...
#endif

Then either distribute the modified files or the modified pieces of code
with instructions on how to add them, what files/functions they go in. I
give some of the surrounding code to make this easier...line numbers are too
unreliable. I've never used a utility for this, I try to make it easy to do
by hand...partly because I haven't taken the time to learn how to use the
utilities and partly because not everyone else has or knows how to use them.


Post a reply to this message

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