 |
 |
|
 |
|
 |
|  |
|  |
|
 |
|
 |
|  |
|  |
|
 |
Looking through the code further, I see the following piece of fun in
media.cpp around line 580:
>>>
if (sampleCount < 2)
sampleCount = 2;
/* set static sample count */
sampCount_s = sampleCount - 1;
if (sampleCount < 2)
{
<<<
Note that the second sampleCount<2 test can never succeed. I assume this
second test and the associated block of code are optimised away by the
compiler, but does this not give a warning? Clearly one of the tests
should not be there: either the first because it stops the
three-samples-only special case code running, or the second because it
is superfluous. Can some explain a bit further please?
A bit lower down, line 635, I see:
>>>
/* do some attenuation, too, since we are doing samples in order */
Media_Interval[i].te[0]+=Result[0] *
exp(-Media_Interval[i].od[0]/sampleCount);
/* should this be sampleCount+1? */
Media_Interval[i].te[1]+=Result[1] *
exp(-Media_Interval[i].od[1]/sampleCount);
Media_Interval[i].te[2]+=Result[2] *
exp(-Media_Interval[i].od[2]/sampleCount);
<<<
Note particularly the comment. Though I haven't finished studying the
media code yet, I strongly suspect that it should not be sampleCount+1,
because although we are doing sampleCount+1 samples in the interval,
there are only sampleCount gaps. What I don't yet get, though, is that
Media_Interval[i].od[] holds the cumulative optical density - it is
added to on each sample by the ODResult variable coming from the
sample_media_rec call. If Media_Interval[i].od[] holds the entire
optical density so far along this interval, why are we dividing it by
the number of gaps? Surely that would just attenuate by the average
optical density? Would it not be better to not divide it and attenuate
by the whole optical density? If it needs to be a per-sample thing, why
not use the optical density from this sample, held in ODResult?
Perhaps my further exploration will help, but if anyone who knows about
this is out there perhaps they would consider tossing a hint my way.
Thanks,
Daniel
--
A most peculiar man With the windows closed And Mrs Reardon says
He died last Saturday So he'd never wake up He has a brother somewhere
He turned on the gas To his silent world Who should be notified soon
And he went to sleep And his tiny room .oO( http://sad.istic.org/ )
Post a reply to this message
|
 |
|  |
|  |
|
 |
|
 |
|  |
|  |
|
 |
Well, I guess I would be the author of that ugly code. ;-)
Looking at the code, it looks like I first wrote a special case for anything
with the sample count less than two (the second "if"). Then later I decided
to consolidate the code, so I wrote the first "if", which in effect converts
the special case into a normal case. This makes code maintenance easier,
because it generalizes all cases into one and removes a whole block of code.
However, then I never removed that block of code. At least that's my guess
as to what I was thinking... that was a long time ago and I think I did most
of that coding at 2:00am.
Regarding the attenuation... I, unfortunately, didn't know much about the
attenuation algorithm when I wrote that code. And, to be honest, I still
don't know much about it. My goal was to try to attenuate the light on a
per-sample basis, with each sample using the optical depth accumulated from
earlier samples (which we should be able to do because we're gathering the
samples in sequential order). I think your last comment, about attenuating
by ODResult may be correct. Another possibility is that we should be
dividing by "j", which is the number of samples gathered so far in the loop.
Looking at it all these years later, the only think I know for sure is that
this is ugly code in high need of refactoring and better commenting!
Maybe it would be worthwhile to create some POV scenes that would test this.
You can try different algorithms to see which produces the correct result.
If/when you manage to find the correct algorithm, please post your
recommendations here so that we can incorporate the fix into the official
version of POV. Thanks!
-Nathan Kopp
"Daniel Hulme" <pho### [at] istic org> wrote...
> Looking through the code further, I see the following piece of fun in
> media.cpp around line 580:
> >>>
> if (sampleCount < 2)
> sampleCount = 2;
>
> /* set static sample count */
> sampCount_s = sampleCount - 1;
>
> if (sampleCount < 2)
> {
> <<<
>
> Note that the second sampleCount<2 test can never succeed. I assume this
> second test and the associated block of code are optimised away by the
> compiler, but does this not give a warning? Clearly one of the tests
> should not be there: either the first because it stops the
> three-samples-only special case code running, or the second because it
> is superfluous. Can some explain a bit further please?
>
> A bit lower down, line 635, I see:
> >>>
> /* do some attenuation, too, since we are doing samples in order */
> Media_Interval[i].te[0]+=Result[0] *
> exp(-Media_Interval[i].od[0]/sampleCount);
> /* should this be sampleCount+1? */
> Media_Interval[i].te[1]+=Result[1] *
> exp(-Media_Interval[i].od[1]/sampleCount);
> Media_Interval[i].te[2]+=Result[2] *
> exp(-Media_Interval[i].od[2]/sampleCount);
> <<<
> Note particularly the comment. Though I haven't finished studying the
> media code yet, I strongly suspect that it should not be sampleCount+1,
> because although we are doing sampleCount+1 samples in the interval,
> there are only sampleCount gaps. What I don't yet get, though, is that
> Media_Interval[i].od[] holds the cumulative optical density - it is
> added to on each sample by the ODResult variable coming from the
> sample_media_rec call. If Media_Interval[i].od[] holds the entire
> optical density so far along this interval, why are we dividing it by
> the number of gaps? Surely that would just attenuate by the average
> optical density? Would it not be better to not divide it and attenuate
> by the whole optical density? If it needs to be a per-sample thing, why
> not use the optical density from this sample, held in ODResult?
>
> Perhaps my further exploration will help, but if anyone who knows about
> this is out there perhaps they would consider tossing a hint my way.
>
> Thanks,
> Daniel
>
> --
> A most peculiar man With the windows closed And Mrs Reardon says
> He died last Saturday So he'd never wake up He has a brother somewhere
> He turned on the gas To his silent world Who should be notified soon
> And he went to sleep And his tiny room .oO( http://sad.istic.org/ )
Post a reply to this message
|
 |
|  |
|  |
|
 |
|
 |
|  |
|  |
|
 |
Nathan Kopp wrote:
> Looking at it all these years later, the only think I know for sure is that
> this is ugly code in high need of refactoring and better commenting!
>
Actually, I had a look at the media code some time back when experimenting
with media-based clouds and got the same impression. After having patched it
so that half of these "dozens of function arguments" were stuffed into one data
structure, I begun to understand what it was doing...
> Maybe it would be worthwhile to create some POV scenes that would test this.
> You can try different algorithms to see which produces the correct result.
> If/when you manage to find the correct algorithm, please post your
> recommendations here so that we can incorporate the fix into the official
> version of POV. Thanks!
>
...beause I wanted to implement a different integration algorithm.
What is the mathematical reason to use MCI (Monte-Carlo integration) for
sampling along the ray? For smooth density functions, some normal
adaptive numerical integration algorithm (e.g. adaptive simpson rule) should
give results comparable to MCI with much less evaluation points, shouldn't it?
Wolfgang Wieser
Post a reply to this message
|
 |
|  |
|  |
|
 |
|
 |
|  |
|  |
|
 |
On Sun, 17 Oct 2004 11:25:02 +0200, Wolfgang Wieser wrote:
> Nathan Kopp wrote:
>
>> Looking at it all these years later, the only think I know for sure is
>> that this is ugly code in high need of refactoring and better
>> commenting!
>>
> Actually, I had a look at the media code some time back when
> experimenting with media-based clouds and got the same impression. After
> having patched it so that half of these "dozens of function arguments"
> were stuffed into one data structure, I begun to understand what it was
> doing...
>
While we are complaining about media... I was also trying to make some
modifications to the media code to permit varying the lists of media that
are considered at run-time (for example, to use an bounding hierarchy to
limit the media that need to be sampled). However, to do this would
require changing tons of the code that has explicit dependence on the
"array of linked list" of media objects, making it nearly impossible to
make the change without in depth knowledge of how all the media code is
working. If this code is rewritten, it would be SO much easier if this
were better abstracted (use of an object to represent media lists). From
what I can tell, same goes for a lot of the other code in media (or
POV-Ray for that matter, at least the bounding and object related stuff
I've looked at)
Andrew
Post a reply to this message
|
 |
|  |
|  |
|
 |
|
 |
|  |
|  |
|
 |
In article <pan### [at] uwaterloo ca> , Andrew Clinton
<ajc### [at] uwaterloo ca> wrote:
> While we are complaining about media... I was also trying to make some
> modifications to the media code to permit varying the lists of media that
> are considered at run-time (for example, to use an bounding hierarchy to
> limit the media that need to be sampled). However, to do this would
> require changing tons of the code that has explicit dependence on the
> "array of linked list" of media objects, making it nearly impossible to
> make the change without in depth knowledge of how all the media code is
> working. If this code is rewritten, it would be SO much easier if this
> were better abstracted (use of an object to represent media lists). From
> what I can tell, same goes for a lot of the other code in media (or
> POV-Ray for that matter, at least the bounding and object related stuff
> I've looked at)
Well, all this is no news at all! - Obviously there is a reason why POV-Ray
4.0 is going to be a rewrite... :-)
Thorsten
____________________________________________________
Thorsten Froehlich, Duisburg, Germany
e-mail: tho### [at] trf de
Visit POV-Ray on the web: http://mac.povray.org
Post a reply to this message
|
 |
|  |
|  |
|
 |
|
 |
|  |
|  |
|
 |
> Well, all this is no news at all! - Obviously there is a reason why POV-Ray
> 4.0 is going to be a rewrite... :-)
...because it will take longer to do it that way? :-)
Andrew.
*runs away, very fast*
Post a reply to this message
|
 |
|  |
|  |
|
 |
|
 |
|  |
|  |
|
 |
> Well, all this is no news at all! - Obviously there is a reason why
> POV-Ray 4.0 is going to be a rewrite... :-)
>
> Thorsten
>
>
True :) But it has been no less than 2 or 3 years since the POV-Team has
announced the plan for a full rewrite. During that time, I have only seen
2 really good discussions of potential design considerations for the new
version of POV-Ray, each around 2 years ago, with some strong resistance
to new ideas from many members of the POV-Team (Yes, I have been
intermittently following the groups for that long!).
I am hoping that when the time comes for the rewrite, the POV-Team will
open up discussions to the greater community so that we (perhaps me as
well) could also provide some input. This might give me a greater
confidence that this mythical rewrite actually is going to come to pass
:-)
Andrew
Post a reply to this message
|
 |
|  |
|  |
|
 |
|
 |
|  |
|  |
|
 |
In article <pan### [at] uwaterloo ca> , Andrew Clinton
<ajc### [at] uwaterloo ca> wrote:
> True :) But it has been no less than 2 or 3 years since the POV-Team has
> announced the plan for a full rewrite. During that time, I have only seen
> 2 really good discussions of potential design considerations for the new
> version of POV-Ray, each around 2 years ago, with some strong resistance
> to new ideas from many members of the POV-Team (Yes, I have been
> intermittently following the groups for that long!).
Then you fundamentally misunderstood the point we always made: We will not
discuss the design in public, and we do not endorse design discussions in
public either. Every discussion about design ideas is just ignored,
regardless of what is being discussed. As such, there is simply no judgment
at all made on any idea discussed in public.
The list of reasons to not endorse public design discussions is almost
endless, so whatever reasons you can think of why we would not do it are
probably on that list. Oh, and if somebody cannot think of any reason on
that list, well, that would also be on the list! ;-)
Thorsten
____________________________________________________
Thorsten Froehlich
e-mail: mac### [at] povray org
I am a member of the POV-Ray Team.
Visit POV-Ray on the web: http://mac.povray.org
Post a reply to this message
|
 |
|  |
|  |
|
 |
|
 |
|  |
|  |
|
 |
In article <pan### [at] uwaterloo ca> , Andrew Clinton
<ajc### [at] uwaterloo ca> wrote:
> Date: Sun, 17 Oct 2004 15:40:52 -0500
BTW, could you please fix your time or timezone setting? Thanks!
Thorsten
____________________________________________________
Thorsten Froehlich, Duisburg, Germany
e-mail: tho### [at] trf de
Visit POV-Ray on the web: http://mac.povray.org
Post a reply to this message
|
 |
|  |
|  |
|
 |
|
 |
|  |
|  |
|
 |
On Sun, 17 Oct 2004 23:11:15 +0200, Thorsten Froehlich wrote:
>
> Then you fundamentally misunderstood the point we always made: We will
> not discuss the design in public, and we do not endorse design
> discussions in public either. Every discussion about design ideas is
> just ignored, regardless of what is being discussed. As such, there is
> simply no judgment at all made on any idea discussed in public.
>
I'm really sorry to hear that. This opinion seems so unusual for an open
source project that I'm wondering if all the team members feel the same
way. Anyway, good luck with the redesign for the next version of POV-Ray
(in a vacuum), and I hope that you have the skills, resources, and
enthusiasm to pull it off. I'll look forward to see what you have created
at the end, whenever that may be.
Andrew
Post a reply to this message
|
 |
|  |
|  |
|
 |
|
 |
|  |
|  |
|
 |
Thorsten Froehlich wrote:
>
> Then you fundamentally misunderstood the point we always made: We will not
> discuss the design in public, and we do not endorse design discussions in
> public either. Every discussion about design ideas is just ignored,
> regardless of what is being discussed.
Speaking only for myself:
this is a bit exaggerated (or at least could be easily misunderstood).
Development of POV-Ray does (and i hope will always do) include
discussion in the POV Community. This of course does not mean that
everything is first discussed in the public newsgroups.
What does this mean for discussing ideas: I would no way generally
discourage starting discussion of individual ideas for future POV-Ray
development including design issues. But you should always remember
that whatever result such a discussion might have this will not
necessarily have an effect on what's actually developed. So it would
probably be a better idea to keep such a discussion focussed more on
requirements than on actual design. Note i am not talking about
concrete raytracing features here, i mean general requirements you
consider important for the planning of a new POV-Ray. Discussing
concrete features now would be like starting to build a house by
building the roof.
Christoph
--
POV-Ray tutorials, include files, Sim-POV,
HCR-Edit and more: http://www.tu-bs.de/~y0013390/
Last updated 23 Sep. 2004 _____./\/^>_*_<^\/\.______
Post a reply to this message
|
 |
|  |
|  |
|
 |
|
 |
|  |
|  |
|
 |
> consider important for the planning of a new POV-Ray. Discussing
> concrete features now would be like starting to build a house by
> building the roof.
Would that be what is called top-down design?
:->
Daniel
--
A most peculiar man With the windows closed And Mrs Reardon says
He died last Saturday So he'd never wake up He has a brother somewhere
He turned on the gas To his silent world Who should be notified soon
And he went to sleep And his tiny room .oO( http://sad.istic.org/ )
Post a reply to this message
|
 |
|  |
|  |
|
 |
|
 |
|  |
|  |
|
 |
In article <pan### [at] uwaterloo ca> , Andrew Clinton
<ajc### [at] uwaterloo ca> wrote:
> I'm wondering if all the team members feel the same way
I am just summarizing our public status reports. My post was not meant to
express only my opinion, but the opinion already publicly stated by the
team.
Thorsten
____________________________________________________
Thorsten Froehlich
e-mail: mac### [at] povray org
I am a member of the POV-Ray Team.
Visit POV-Ray on the web: http://mac.povray.org
Post a reply to this message
|
 |
|  |
|  |
|
 |
|
 |
|  |
|  |
|
 |
In article <ckvtr0$27j$1@chho.imagico.de> , Christoph Hormann
<chr### [at] gmx de> wrote:
> So it would
> probably be a better idea to keep such a discussion focussed more on
> requirements than on actual design
Exactly.
Thorsten
____________________________________________________
Thorsten Froehlich, Duisburg, Germany
e-mail: tho### [at] trf de
Visit POV-Ray on the web: http://mac.povray.org
Post a reply to this message
|
 |
|  |
|  |
|
 |
|
 |
|  |
|  |
|
 |
In article <200### [at] dh286 pem cam ac uk> , Daniel Hulme
<pho### [at] istic org> wrote:
>> consider important for the planning of a new POV-Ray. Discussing
>> concrete features now would be like starting to build a house by
>> building the roof.
>
> Would that be what is called top-down design?
> :->
No, it would be called "failed design" ;-)
Thorsten
____________________________________________________
Thorsten Froehlich, Duisburg, Germany
e-mail: tho### [at] trf de
Visit POV-Ray on the web: http://mac.povray.org
Post a reply to this message
|
 |
|  |
|  |
|
 |
|
 |
|  |
|  |
|
 |
Andrew Clinton <ajc### [at] uwaterloo ca> wrote:
> > Then you fundamentally misunderstood the point we always made: We will
> > not discuss the design in public, and we do not endorse design
> > discussions in public either...
> I'm really sorry to hear that. This opinion seems so unusual for an open
> source project that I'm wondering if all the team members feel the same
> way.
What would be the point of having tons of people throwing random thoughts
and usually just creating endless flamewars about tiny details of the new
design?
There's a saying at least in Finnish (which I don't know if exists in
English) about several cooks cooking the same soup. It tries to indicate
that usually when something needs to be designed, the more designers there
are, the worse the result. The result just ends up being a chaotic mess
of different, usually inconsistent parts which are hard to maintain.
It's often a better idea to have one or at most two experts who are
responsible of the main design.
If the design of pov4 would be based on public discussion, most of the
input would be of the type "why don't we make it in Java" and "let's make
the SDL based on XML" and attrocities like that, and there would simply
be endless flamewars with people advocating something and other people
opposing it. And most of these opinions would be made by people with no
experience whatsoever on the design and implementation of big projects.
It would serve no-one.
--
#macro M(A,N,D,L)plane{-z,-9pigment{mandel L*9translate N color_map{[0rgb x]
[1rgb 9]}scale<D,D*3D>*1e3}rotate y*A*8}#end M(-3<1.206434.28623>70,7)M(
-1<.7438.1795>1,20)M(1<.77595.13699>30,20)M(3<.75923.07145>80,99)// - Warp -
Post a reply to this message
|
 |
|  |
|  |
|
 |
|
 |
|  |
|  |
|
 |
> There's a saying at least in Finnish (which I don't know if exists in
> English) about several cooks cooking the same soup. It tries to
Yes, it does exist in English, in the form 'Too many cooks spoil the
broth.' Broth is a kind of halfway thing between soup and stew.
As for the debate that my post seems to have sparked, I can sympathise
with the POV-Team's complaints: I have experienced similar things on
other projects, and the XMMS team has on their website somewhere a log
from the #xmms channel which is a brilliant example of why open source
is bad. However, I think the POV-Team could do a little more to
encourage people to help out, even if it is to just be a bit more
friendly in receiving suggestions and ideas. Surely the views of the
users are important in a redesign; even if you have to filter out a lot
of them, the good ideas are often enough to make up for the inane ones.
There is a book called 'Programming as if People Mattered' which focuses
on UI design and the programmer-user interface. It has a chapter called
'Listen to Your Users, but Ignore What They Say'. I find that to be a
useful maxim, as what users tell you they want is not really what they
want, as people have been complaining about their bosses in p.o-t.
As for me personally, I am committed to doing my project now, and I will
make the final output available. What gets done with it after that,
whether it is incorporated or ignored, does not greatly bother me. At
the risk of becoming o-t myself, I'd better sign off here.
Daniel
--
A most peculiar man With the windows closed And Mrs Reardon says
He died last Saturday So he'd never wake up He has a brother somewhere
He turned on the gas To his silent world Who should be notified soon
And he went to sleep And his tiny room .oO( http://sad.istic.org/ )
Post a reply to this message
|
 |
|  |
|  |
|
 |
|
 |
|  |
|  |
|
 |
Warp <war### [at] tag povray org> wrote:
> What would be the point of having tons of people throwing random thoughts
> and usually just creating endless flamewars about tiny details of the new
> design?
Null. However, it doesn't necessary get to that, and there are various ways
of implementing the shades of gray :)
Open discussion about the design is, imho, more important than the same
about actual implementation.
> It's often a better idea to have one or at most two experts who are
> responsible of the main design.
Very true. Open discussion however doesn't imply an open design. I for one
would be very happy to let the experienced POV-coders to do the actual
design decisions, but I'd like to know I have a fair chance of being heard
if I happen to come up with an idea or problem I think is worth noting.
> If the design of pov4 would be based on public discussion, most of the
> input would be of the type "why don't we make it in Java" and "let's make
> the SDL based on XML" and attrocities like that, and there would simply
> be endless flamewars with people advocating something and other people
> opposing it.
There are *so* many ways of avoiding that. The funniest one probably being,
set up a mailing list where Thorsten can allow entrance to people he deems
worthy :-) (it would probably be one the best ways too!)
I've been waiting for a good spot to bring up one particular concern of
mine, and while this probably isn't the perfect spot, I'll open my mouth
anyway.
The POV-Ray SDL. I read from a post that v4 will include a new version of
the SDL. Is this true? How extensive are the planned changes? Why, if I
may ask, are they required?
--
jussi.kantola
Post a reply to this message
|
 |
|  |
|  |
|
 |
|
 |
|  |
|  |
|
 |
In article <web.4173bbae82c5f45e67c1c3ff0@news.povray.org> , "jute"
<nomail@nomail> wrote:
> would be very happy to let the experienced POV-coders to do the actual
> design decisions, but I'd like to know I have a fair chance of being heard
> if I happen to come up with an idea or problem I think is worth noting.
The point is, would you be happy if you could just state it and never get a
reply? Because the best reply you could get its along the lines "we
considered it". There certainly would be no justification or other
explanation ...
> There are *so* many ways of avoiding that. The funniest one probably being,
> set up a mailing list where Thorsten can allow entrance to people he deems
> worthy :-) (it would probably be one the best ways too!)
... which you seem to expect. Yet, you cannot discuss a whole design only
by email.
> I've been waiting for a good spot to bring up one particular concern of
> mine, and while this probably isn't the perfect spot, I'll open my mouth
> anyway.
>
> The POV-Ray SDL. I read from a post that v4 will include a new version of
> the SDL. Is this true? How extensive are the planned changes? Why, if I
> may ask, are they required?
And here you show one of the primary reasons why even public and unendorsed
discussions result in confusion: There has never been a statement in this
regard. In fact, there has not really been any statement about design
specifics. If I had said nothing now, you would just have started a
discussion about nothing more but hearsay!
This is absolutely contrary to what I very explicitly stated: There is and
has not been any discussion about the design in the public. All you may
have read somewhere other than the FAQ group or that was explicitly stated
to be a public POV-Team statement is something you should not be concerned
about at all.
Also, it should be absolutely clear that a public justification and
explanation of every point somebody might rise if a design would be
discussed in public would be a complete waste of time for everybody. Your
post has shown to very important points of the list of things why the design
should not be discussed and no such discussion will be endorsed by the
POV-Team in public.
If you want to make suggestions, please say what you want, but neither how
what you want should look like nor how is should be implemented or designed.
Thorsten
____________________________________________________
Thorsten Froehlich, Duisburg, Germany
e-mail: tho### [at] trf de
Visit POV-Ray on the web: http://mac.povray.org
Post a reply to this message
|
 |
|  |
|  |
|
 |
|
 |
|  |
|  |
|
 |
On Mon, 18 Oct 2004 06:14:33 -0400, Warp wrote:
>
> What would be the point of having tons of people throwing random thoughts
> and usually just creating endless flamewars about tiny details of the new
> design?
>
Despite the flame wars, the discussions I was referring to (for your
information, "The language of POV-Ray" and "Pov-Ray 4.0? Wish List.")
seemed to generate some of the best ideas for a major redesign that I have
seen mentioned. These discussions were not generally about tiny details
of the design, but about large overarching changes to the program that
have the potential to make it better in significant ways. I don't
understand the motivation for ignoring such discussions just because there
are some ideas that are not to the 'Team's liking. It's easy enough to
ignore or inform the people who haven't a clue about what they are talking
about, and (discuss / argue / flamewar) with the rest. At least in this
case there is an outward sign that the Team has an interest in becoming
better informed about the needs of its user base, and also has the
opportunity to show some signs of "life" (if you will), so that users know
that the project is not stagnating.
Of course, if the POV-Team already has a perfect knowledge of the needs of
its users, and a perfect knowledge of how to design a renderer, then there
is no such need for discussion.
Andrew
Post a reply to this message
|
 |
|  |
|  |
|
 |
|
 |
|  |
|  |
|
 |
> In article <ckvtr0$27j$1@chho.imagico.de> , Christoph Hormann
> <chr### [at] gmx de> wrote:
>
>> So it would
>> probably be a better idea to keep such a discussion focussed more on
>> requirements than on actual design
>
> Exactly.
>
So, when discussions begin for POV-Ray 4.0, will the Team provide an open
forum for user suggestions? My vote is for "povray.wishlist". As a
programmer, I'm also wondering how you really keep "requirements" and
"design" seperate. A discussion of requirements necessitates some degree
of discussion of feasibility, and after this, the implications to how the
system will be designed. Unless the team operates as a black box
(input: requirements, output: povray 4.0), then there should be
discussions (perhaps in povray.programming) to discover the implications
of the requirements. If the team does operate as a black box, then I
think it is a shame, because it seems there are people outside the team
who have skills and motivation to contribute to this aspect of the project.
Post a reply to this message
|
 |
|  |
|  |
|
 |
|
 |
|  |
|  |
|
 |
jute <nomail@nomail> wrote:
> The POV-Ray SDL. I read from a post that v4 will include a new version of
> the SDL. Is this true? How extensive are the planned changes? Why, if I
> may ask, are they required?
Exactly as the current POV-Ray source code is a bunch of hacks over hacks
and patches over patches, making it an unmaintainable chaotic mess, the
SDL is pretty similar. The original SDL was never meant to be a programming
language, just a data container format. However, over the years many
programmatical features were added (read: kludged) over the old SDL.
The result is a bloated, mostly ugly, limited and specially inefficient
language.
Most POVers are accustomed to the current SDL and find it mostly easy
to use and understand, and people have created more or less complex include
files as kind of "plugins" to add new features to the program which people
can easily use. However, due to its limitations and inefficiency it's just
not possible to implement everything which could be possible and this is
a big minus.
Example: Imagine an include file which you could use to load a scene in
3DMax format. Moreover, imagine that you could *save* a POV-Ray scene
consisting of meshes in 3DMax format with that include file.
Or imagine you could make an include file that can be used to save the
rendered image in JPEG format.
Imagine an include file which could allow you to handle NURBS data,
or HDRI data or whatever.
The list of possibilities is endless.
What is the current solution to add these kind of new features? To patch
the POV-Ray source code, adding it to the endless list of other patches,
requiring people to download an install yet another unofficial version
of POV-Ray... And yet these newly implemented features are usually rigid
and limited and can't be enhanced by the user unless he knows C++ very well
and is willing to fix the code and recompile a new version of the binary.
This just needlessly bloats the source code, making it harder to maintain
and adding tons of possible bugs and incompatibilities
And most importantly: These new features would be just kludges over the
already-cluttered poor old SDL which was never designed for these kinds of
things.
Another problem is speed: The SDL is slow like a bug in molasses.
I once made a concrete test: I made an ascii-mandelbrot program with perl
(which is also an interpreted scripting language) and basically the same
program with POV-Ray SDL (the output of both was practically identical).
The perl version was over 13 times faster than the POV-Ray version.
The problem is that the current SDL is not very suitable for speed
optimizations because of its very design (kludges over kludges over old
SDL which was never designed for this).
A better-designed language could be made as fast as perl.
I have always said that one of the most powerful features of POV-Ray
(its SDL) is also one of the weakest features of POV-Ray.
POV-Ray is in desperate need of a powerful and efficient scripting
language. The user-defined functions introduced in POV-Ray 3.5 were a
step towards this, but they were also just kludges over the old SDL.
That is just not the way. It doesn't work very well.
People have suggested not inventing the wheel once again but to use
an existing scripting language which is fast and efficient. This is not
a good solution because the scripting language of POV-Ray needs to be
specific to POV-Ray. It must be easy to create primitives, textures, etc
with the language. This task becomes harder if they must be created with
a generic scripting language not designed specifically for POV-Ray.
Conservatives oppose all kind of changes to practially anything, but
that's too bad. The current SDL is just not it. If fundamental improvements
are desired for POV-Ray, the current SDL would be just a drag and would
make any new improvements a lot harder.
Conservatives find it hard to see the *advantages* of having a more
powerful language: Programmers could create better and more powerful
include files with more diverse features for people (including these
conservatives) to use. And because all these new include files are based
on the one and same scripting language, their usage will be very alike,
making it easier to learn to use them. In the long run people would
benefit from this a lot more than from tons of patched binaries which are
kludges over the current SDL and completely new syntax to learn.
However, this doesn't necessarily mean that pov4 will be completely unable
to render old scenes. I'm sure the team will have some level of backwards
compatibility.
--
#macro M(A,N,D,L)plane{-z,-9pigment{mandel L*9translate N color_map{[0rgb x]
[1rgb 9]}scale<D,D*3D>*1e3}rotate y*A*8}#end M(-3<1.206434.28623>70,7)M(
-1<.7438.1795>1,20)M(1<.77595.13699>30,20)M(3<.75923.07145>80,99)// - Warp -
Post a reply to this message
|
 |
|  |
|  |
|
 |
From: Wolfgang Wieser
Subject: Re: development (was: oddity in media.cpp)
Date: 18 Oct 2004 10:20:34
Message: <4173d131@news.povray.org>
|
|
 |
|  |
|  |
|
 |
Christoph Hormann wrote:
> Thorsten Froehlich wrote:
>> Then you fundamentally misunderstood the point we always made: We will not
>> discuss the design in public, and we do not endorse design discussions in
>> public either. Every discussion about design ideas is just ignored,
>> regardless of what is being discussed.
>
> Speaking only for myself:
>
> this is a bit exaggerated (or at least could be easily misunderstood).
> Development of POV-Ray does (and i hope will always do) include
> discussion in the POV Community. This of course does not mean that
> everything is first discussed in the public newsgroups.
> [...]
I'm glad to read a very reasonable statement from Christoph (and also from
Warp) after having read Thorsten's previous message. (Well, I'm not sure
how he really meant it but I read it twice and understood it like "we are
the cooks and the users should eat what we dish them up - or leave it".)
I completely agree that there need to be only 1 or 2 people who should do
the main design. Once the interfaces are designed, things like individual
input/output drivers (different image formats, etc.) could be implemented by
more/other people.
And also implementation details should not be discussed (at least not yet).
But I would strongly suggest that the chief designer puts together a list
where he notes down all that input from the community which is relevant
even if it seems to be "uninteresting" and when finally planning he can go
through the list and decide what should actually be made possible.
I call this an "idea map" and have quite a lot of paper around for that.
And finally, there is another problem: Time. Because there is no point to
plan the best raytracer in the world for one's complete life to have it in
production shortly before end of one's life, to put it drastically. Because
one then cannot use it any more.
And here, things meet: Probably a lot of people would be much happier
if they either saw that POVRay is making steady advances or at least
their ideas would be encouraged/accepted.
But for me "outside here" is just feels like everyone (including the team)
is merely dreaming of version 4 and actually not putting much effort into
design or development. I'm not sure if that is really the case or if I have
to blame the closed development model for that.
But my overall feeling suggests against the latter and of course there is
nobody who could force anybody to work on a free project.
Regards,
Wolfgang
Post a reply to this message
|
 |
|  |
|  |
|
 |
|
 |
|  |
|  |
|
 |
In article <pan### [at] uwaterloo ca> , Andrew Clinton
<ajc### [at] uwaterloo ca> wrote:
> I don't
> understand the motivation for ignoring such discussions just because there
> are some ideas that are not to the 'Team's liking.
It seems you just do not want to understand because I very explicitly made
clear that what you claim in your statement is not the case:
>>>
Every discussion about design ideas is just ignored,
regardless of what is being discussed. As such, there is simply no judgment
at all made on any idea discussed in public.
<<<
How to misinterpret that statement to "ignoring [..] ideas that are not to
the 'Team's liking." is beyond me, and probably anybody else reading this as
well.
So please stop making absolutely false assertions.
Thorsten
____________________________________________________
Thorsten Froehlich, Duisburg, Germany
e-mail: tho### [at] trf de
Visit POV-Ray on the web: http://mac.povray.org
Post a reply to this message
|
 |
|  |
|  |
|
 |
|
 |
|  |
|  |
|
 |
Andrew Clinton wrote:
> So, when discussions begin for POV-Ray 4.0, will the Team provide an open
> forum for user suggestions? My vote is for "povray.wishlist". As a
> programmer, I'm also wondering how you really keep "requirements" and
> "design" seperate. A discussion of requirements necessitates some degree
> of discussion of feasibility,
No. As an engineer i can tell you that when planning a new design you
start with the requirements alone. Limiting the requirements from the
beginning to only require what is feasible will result in no innovation
at all (and i am quite sure this applies for program design as well).
So what you write here to me indicates that you have no idea what
formulating the requirements actually means.
So again my suggestion: if you want to start some discussion helpful for
future POV-Ray design start with talking about requirements. The most
useful discussions usually arise from users talking about something they
would like to do but that seems difficult/impossible with current
POV-Ray. The majority of such postings can of course be answered with
an already existing and well working solution but from time to time you
see things that really hit a weak point. If you then really try to
formulate what you actually want to do - as concrete as necessary but as
general as possible - you are already half way finished.
A povray.wishlist newsgroup will only result in a lot of feature
suggestions and i have already explained why there is not much use in
proposing features at the beginning. Everyone who likes to make an 'i
would like feature xxx in POV' should ask himself what he wants feature
xxx for and voila - you are again talking about requirements. A
separate newsgroup for discussing requirements would only make sense IMO
if the discipline to keep the discussions on-topic is maintained there.
Christoph
--
POV-Ray tutorials, include files, Sim-POV,
HCR-Edit and more: http://www.tu-bs.de/~y0013390/
Last updated 23 Sep. 2004 _____./\/^>_*_<^\/\.______
Post a reply to this message
|
 |
|  |
|  |
|
 |
From: Thorsten Froehlich
Subject: Re: development (was: oddity in media.cpp)
Date: 18 Oct 2004 10:49:27
Message: <4173d7f7@news.povray.org>
|
|
 |
|  |
|  |
|
 |
In article <4173d131@news.povray.org> , Wolfgang Wieser
<wwi### [at] nospam gmx de> wrote:
> I'm glad to read a very reasonable statement from Christoph (and also from
> Warp) after having read Thorsten's previous message. (Well, I'm not sure
> how he really meant it but I read it twice and understood it like "we are
> the cooks and the users should eat what we dish them up - or leave it".)
That is how it is going to be regarding the *design*, yes.
I clearly did not talk about anything else in the development process. And
neither Christoph or Warp said the design process would be different;
instead they addressed the other parts of the development process. Christoph
made a very clear that discussions focusing on requirements are going to be
much more likely being read (and hence considered) if they do not waste time
and space on talking about a specific design to implement a requirement.
Thorsten
____________________________________________________
Thorsten Froehlich, Duisburg, Germany
e-mail: tho### [at] trf de
Visit POV-Ray on the web: http://mac.povray.org
Post a reply to this message
|
 |
|  |
|  |
|
 |
|
 |
|  |
|  |
|
 |
"Thorsten Froehlich" <tho### [at] trf de> wrote:
> The point is, would you be happy if you could just state it and never get a
> reply?
I've thought about this a bit and I'm starting to see things your way. As
far as design goes, it's better done by those who really know the current
program.
However, one day there will probably a specification for developement. I
think there are many people in the community that both could and would lean
a helping hand that day -- if you let us.
--
jussi.kantola
Post a reply to this message
|
 |
|  |
|  |
|
 |
|
 |
|  |
|  |
|
 |
in news:4173e503$1@news.povray.org Darren New wrote:
> and I don't know of any good scripting
> languages designed to be embedded that have a good OO foundation
> built in.
http://docs.python.org/ext/embedding.html
Ingo
Post a reply to this message
|
 |
|  |
|  |
|
 |
From: Wolfgang Wieser
Subject: Re: development (was: oddity in media.cpp)
Date: 18 Oct 2004 13:33:07
Message: <4173fe51@news.povray.org>
|
|
 |
|  |
|  |
|
 |
Thorsten Froehlich wrote:
> In article <4173d131@news.povray.org> , Wolfgang Wieser
> <wwi### [at] nospam gmx de> wrote:
>
>> I'm glad to read a very reasonable statement from Christoph (and also from
>> Warp) after having read Thorsten's previous message. (Well, I'm not sure
>> how he really meant it but I read it twice and understood it like "we are
>> the cooks and the users should eat what we dish them up - or leave it".)
>
> That is how it is going to be regarding the *design*, yes.
>
Okay, so I think we all agree that the _design_ needs to be done by 1 or 2
(or maybe 3) "engenious persons" who read a list of requirements and
then come up with the design.
What I wonder (and really would like to know) is if there actually are
some people in the POV team (or at least one) who is _continuously_ putting
a considerable amount of time into that design process.
Or if everybody is "just dreaming of version 4".
> I clearly did not talk about anything else in the development process. And
> neither Christoph or Warp said the design process would be different;
> instead they addressed the other parts of the development process. Christoph
> made a very clear that discussions focusing on requirements are going to be
> much more likely being read (and hence considered) if they do not waste time
> and space on talking about a specific design to implement a requirement.
>
Well, people like me would only suggest things which they are convinced are
feasible in some way and hence before suggesting some "requirement" I would
think about "implementation".
But well, what about setting up some "requirement list" summarizing what one
should be able to do with the ultimate raytracer? Just as a collection of
ideas, something to be considered during design but without any guarantee.
Wolfgang
Post a reply to this message
|
 |
|  |
|  |
|
 |
|
 |
|  |
|  |
|
 |
Darren New wrote:
> Warp wrote:
>> People have suggested not inventing the wheel once again but to use
>> an existing scripting language which is fast and efficient. This is not
>> a good solution because the scripting language of POV-Ray needs to be
>> specific to POV-Ray. It must be easy to create primitives, textures, etc
>> with the language. This task becomes harder if they must be created with
>> a generic scripting language not designed specifically for POV-Ray.
>
Well, I am the strong opinion that Warp is right here. A new language for
POVRay needs to be designed for POVRay, there is IMO no much use in
trying to use some existing language because one would run into trouble
quite quickly.
> Not necessarily. The increased difficulty can be offset by not having to
> implement all the "normal" stuff like conditionals, procedures, etc.
>
And, BTW, implementing a programming language using lexer and parser
generators like flex and bison (lexical analysis and syntax analysis)
is not that difficult as it may seem. It's surprisingly simple.
Wolfgang
Post a reply to this message
|
 |
|  |
|  |
|
 |
|
 |
|  |
|  |
|
 |
in news:4173fcc5$1@news.povray.org Darren New wrote:
> Essentially, a good embedded language should be embedded first, then
> stand-alone second.
Just for me to get an idea, could that be something like the "Parrot
virtual machine" with an SDL parser on top of it?
Ingo
Post a reply to this message
|
 |
|  |
|  |
|
 |
|
 |
|  |
|  |
|
 |
> What would be the point of having tons of people throwing random thoughts
> and usually just creating endless flamewars about tiny details of the new
> design?
...how about "virtually nothing"?
> There's a saying at least in Finnish (which I don't know if exists in
> English) about several cooks cooking the same soup.
"Too many cooks spoil the broth."
Indeed, I'm told that in commercial software development, when a project
gets really behind, sometimes they fix it by taking programmers OFF the
team... (The idea - I guess - is fewer people to argue = more time coding.)
But anyway...
Andrew @ home.
Post a reply to this message
|
 |
|  |
|  |
|
 |
|
 |
|  |
|  |
|
 |
> Exactly as the current POV-Ray source code is a bunch of hacks over hacks
> and patches over patches, making it an unmaintainable chaotic mess, the
> SDL is pretty similar. The original SDL was never meant to be a programming
> language, just a data container format. However, over the years many
> programmatical features were added (read: kludged) over the old SDL.
> The result is a bloated, mostly ugly, limited and specially inefficient
> language.
Indeed - I recently started a project to make my own SDL, with my own
interpreter, which would run the executable parts of the code, and
finally spit out "normal" POV-Ray SDL at the end.
Naturally, since I magorly suck at building parsers, this little project
did not progress far...
(I would like to say that - IMHO - as hacks go, POV-Ray [and it's SDL]
turned out not too bad at all, really! :-) Respect...)
Andrew @ home.
Post a reply to this message
|
 |
|  |
|  |
|
 |
|
 |
|  |
|  |
|
 |
Christoph Hormann wrote:
> Andrew Clinton wrote:
>> So, when discussions begin for POV-Ray 4.0, will the Team provide an open
>> forum for user suggestions? My vote is for "povray.wishlist". As a
>> programmer, I'm also wondering how you really keep "requirements" and
>> "design" seperate. A discussion of requirements necessitates some degree
>> of discussion of feasibility,
>
> No. As an engineer i can tell you that when planning a new design you
> start with the requirements alone. Limiting the requirements from the
> beginning to only require what is feasible will result in no innovation
> at all (and i am quite sure this applies for program design as well).
> So what you write here to me indicates that you have no idea what
> formulating the requirements actually means.
>
I completely agree with you that this approach ultimatively yields to
the best solution. First one should just think _what_ one would like to
be able to do with it - and not _how_.
The only problem is that this way it tends to take ages until the product
is in production state. And then the problem is also to not loose interest
in it in between.
Wolfgang
Post a reply to this message
|
 |
|  |
|  |
|
 |
|
 |
|  |
|  |
|
 |
On Mon, 18 Oct 2004 16:40:08 +0200, Christoph Hormann wrote:
> Andrew Clinton wrote:
>> So, when discussions begin for POV-Ray 4.0, will the Team provide an
>> open forum for user suggestions? My vote is for "povray.wishlist". As
>> a programmer, I'm also wondering how you really keep "requirements" and
>> "design" seperate. A discussion of requirements necessitates some
>> degree of discussion of feasibility,
>
> No. As an engineer i can tell you that when planning a new design you
> start with the requirements alone. Limiting the requirements from the
> beginning to only require what is feasible will result in no innovation
> at all (and i am quite sure this applies for program design as well). So
> what you write here to me indicates that you have no idea what
> formulating the requirements actually means.
>
>
I never said to limit the requirements to what is feasible. What I
believe is that there is a progression of discussions that might happen as
interesting suggestions are brought to the table (requirements), where
they are first discovered and discussed from the user's standpoint, then
considered in a more technical context by the programmers (feasibility and
design). I don't see any reason that should necessitate a full
requirements gathering and accounting (up front) and then a design phase.
As an engineer, you should recognize this as a waterfall model. From my
experience (which so far isn't too much, only ~2 years programming in
field, but this is what I've been accustomed to), a much better method is
to design things in a more flexible way, in which the process can loop
back to revisit and integrate changing requirements, and improving
knowledge of the target that you are aiming to achieve.
I've been able to do design up front (waterfall) for only extremely small
projects. The types of projects that I am thinking of, are those where
you can fit the entire design into your head, because either you have a
vast background in the technical area that you are designing for, or you
have "done it all before". If the POV-Team has this level of knowledge of
what they intend for the next version of POV-Ray, the foresight to plan
for future needs, and the technical knowledge to put it all together
(within reasonable timeframe), this is probably the best method to use and
I would agree with you.
> So again my suggestion: if you want to start some discussion helpful for
> future POV-Ray design start with talking about requirements. The most
> useful discussions usually arise from users talking about something they
> would like to do but that seems difficult/impossible with current
> POV-Ray. The majority of such postings can of course be answered with
> an already existing and well working solution but from time to time you
> see things that really hit a weak point. If you then really try to
> formulate what you actually want to do - as concrete as necessary but as
> general as possible - you are already half way finished.
>
> A povray.wishlist newsgroup will only result in a lot of feature
> suggestions and i have already explained why there is not much use in
> proposing features at the beginning. Everyone who likes to make an 'i
> would like feature xxx in POV' should ask himself what he wants feature
> xxx for and voila - you are again talking about requirements. A
> separate newsgroup for discussing requirements would only make sense IMO
> if the discipline to keep the discussions on-topic is maintained there.
>
>
While I agree that there may be some superfluous discussion in such a
group, I don't agree that this is necessarily harmful. The other
newsgroups here seem to have been well moderated to encourage users to
post on-topic responses, so why not for a requirements group? As for
stating general requirements, there will be some users who can bring their
statements to the quality level that you are looking for. The others,
although less refined, can still be interpreted and understood with a
small amount of effort from the moderators, like is done in any reasonable
company with good customer support. You just need to have the ability to
abstract a multitude of requests into a few core features that could
support the vast majority of items people are requesting (which I believe
is one of the first things should be done in coming up with a good design).
Post a reply to this message
|
 |
|  |
|  |
|
 |
|
 |
|  |
|  |
|
 |
On Mon, 18 Oct 2004 16:39:53 +0200, Thorsten Froehlich wrote:
>>>>
> Every discussion about design ideas is just ignored,
> regardless of what is being discussed. As such, there is simply no judgment
> at all made on any idea discussed in public.
> <<<
>
> How to misinterpret that statement to "ignoring [..] ideas that are not to
> the 'Team's liking." is beyond me, and probably anybody else reading this as
> well.
>
I am sorry that I may have expressed myself poorly in the previous post.
My intention was to point out that I do not think it is productive to
ignore these discussions, for whatever reason, if they may raise issues
that might help the POV-Team in formulating a design for a future version
of the software.
Post a reply to this message
|
 |
|  |
|  |
|
 |
|
 |
|  |
|  |
|
 |
Wolfgang Wieser <wwi### [at] nospam gmx de> wrote:
> But for me "outside here" is just feels like everyone (including the team)
> is merely dreaming of version 4 and actually not putting much effort into
> design or development. I'm not sure if that is really the case or if I have
> to blame the closed development model for that.
I'd bet my money on the latter, even as yesterday's input from the Team
clearly shows that the developement model is not either as closed as 'we'
may think, or 'they' would have us think :-)
--
jussi.kantola
Post a reply to this message
|
 |
|  |
|  |
|
 |
|
 |
|  |
|  |
|
 |
Darren New <dne### [at] san rr com> wrote:
> I'd think something OO would be good, since POV deals with
> objects in a very real sense
The problem with that is that you will get an extremely strong opposition
from conservatives who think object-oriented programming is only very
slightly easier than rocket science or neurosurgery.
While the scripting language should preferably contain strong OO
capabilities, it should be implemented so that you don't need to
necessarily even see nor know about it in order to write a simple scene.
--
#macro M(A,N,D,L)plane{-z,-9pigment{mandel L*9translate N color_map{[0rgb x]
[1rgb 9]}scale<D,D*3D>*1e3}rotate y*A*8}#end M(-3<1.206434.28623>70,7)M(
-1<.7438.1795>1,20)M(1<.77595.13699>30,20)M(3<.75923.07145>80,99)// - Warp -
Post a reply to this message
|
 |
|  |
|  |
|
 |
|
 |
|  |
|  |
|
 |
"Andrew Clinton" <ajc### [at] uwaterloo ca> wrote in message
news:pan### [at] uwaterloo ca...
[deletions]
: My intention was to point out that I do not think it is productive to
: ignore these discussions, for whatever reason, [deletions]
It seems to me that no one is ignoring any discussion. But that
the developers are not going to be drawn into open debate. We
(the users) propose changes. If those changes are useful, others
will see it too. The developers can read...
=Bob=
Post a reply to this message
|
 |
|  |
|  |
|
 |
|
 |
|  |
|
 |