POV-Ray : Newsgroups : povray.binaries.images : seek for help about rendering water surface Server Time
7 Aug 2024 15:15:05 EDT (-0400)
  seek for help about rendering water surface (Message 5 to 14 of 14)  
<<< Previous 4 Messages Goto Initial 10 Messages
From: Tim Nikias
Subject: Re: seek for help about rendering water surface
Date: 21 Mar 2006 05:14:04
Message: <441fd1ec$1@news.povray.org>
> Could be very well, though, that your problem has a completely different
>    source.

Another trouble could be that the normals don't point to the same side of
the triangle. I recall lighting issues when some of the normals of the
triangle were calculated clockwise and some counterclockwise when generating
them using my MMM with a faulty code.

Additionally, what's the size of your triangles? If they're *very* tiny, you
could run into the floating-point precision problem.

Regards,
Tim

-- 
aka "Tim Nikias v2.0"
Homepage: <http://www.nolights.de>


Post a reply to this message

From: lien0n
Subject: Re: seek for help about rendering water surface
Date: 21 Mar 2006 21:10:01
Message: <web.4420b0ddb0f87641598059850@news.povray.org>
thanks firstly,

i construct the mesh with marching cube algorithm based on a regular grid,
and the resolution of my grid is 80X40X100.

i check the online help of pov-ray, and it says: Typically values whose
absolute values are less than a preset value epsilon are considered false
for logical expressions. The value of epsilon is system dependent but is
generally about 1.0e-10. Two floats a and b are considered to be equal if
abs(a-b) < epsilon.

so maybe i should save my mesh file with double type, am going to try it,:)


"Tim Nikias" <JUSTTHELOWERCASE:timISNOTnikias(at)gmx.netWARE> wrote:
> > Could be very well, though, that your problem has a completely different
> >    source.
>
> Another trouble could be that the normals don't point to the same side of
> the triangle. I recall lighting issues when some of the normals of the
> triangle were calculated clockwise and some counterclockwise when generating
> them using my MMM with a faulty code.
>
> Additionally, what's the size of your triangles? If they're *very* tiny, you
> could run into the floating-point precision problem.
>
> Regards,
> Tim
>
> --
> aka "Tim Nikias v2.0"
> Homepage: <http://www.nolights.de>


Post a reply to this message

From: lien0n
Subject: Re: seek for help about rendering water surface
Date: 21 Mar 2006 21:10:01
Message: <web.4420b153b0f87641598059850@news.povray.org>
yes, a simulation

"Marc Jacquier" <jac### [at] wanadoofr> wrote:

> news:web.441fa27ddfe6af01598059850@news.povray.org...
> As sayd Florian, try rising max_trace_level
>
> BTW where did you get your mesh? a simulation?
>
> Marc


Post a reply to this message

From: lien0n
Subject: Re: seek for help about rendering water surface
Date: 21 Mar 2006 21:10:01
Message: <web.4420b185b0f87641598059850@news.povray.org>
thanks, good idea, i'll try~,


zorglub <zor### [at] e-garfieldcom> wrote:

> > i got a trianglar mesh file, and i render it with the "mesh2" object, the
> > result can be seen in the attachment. But there so many black holes in the
> > image.
>
> Try "max_trace_level" like the others says.
> And probably add "double_illuminate" ?
> In POV-Help it says :
> "A surface has two sides; usually, only the side facing the light source
> is illuminated, the other side remains in shadow. When double_illuminate
> is used, the other side is also illuminated.
> This is useful for simulating effects like translucency (as in a lamp
> shade, sheet of paper, etc)."


Post a reply to this message

From: Kenneth
Subject: Re: seek for help about rendering water surface
Date: 22 Mar 2006 02:40:00
Message: <web.4420fe62b0f87641ca0aec440@news.povray.org>
"lien0n" <nomail@nomail> wrote:
> i got a trianglar mesh file, and i render it with the "mesh2" object, the
> result can be seen in the attachment. But there so many black holes in the
> image.

Just a guess, but could it have something to do with your REFLECTION values?
You have reflection {0.0, 1.0} as the min and max values.  The POV docs say,
"The minimum value is how reflective the surface will be when viewed from a
direction parallel to its normal..."  Here, the min value is 0...meaning
black (?) or no light reflection at all (?). Again, I'm just guessing, as I
haven't had occasion to use "minimum reflection" before, so I don't really
know *how* it works.

Ken


Post a reply to this message

From: lien0n
Subject: Re: seek for help about rendering water surface
Date: 22 Mar 2006 03:05:00
Message: <web.44210520b0f87641598059850@news.povray.org>
i turned it to 0.5, and the result is much better~
 :)

"Kenneth" <kdw### [at] earthlinknet> wrote:
> "lien0n" <nomail@nomail> wrote:
> > i got a trianglar mesh file, and i render it with the "mesh2" object, the
> > result can be seen in the attachment. But there so many black holes in the
> > image.
>
> Just a guess, but could it have something to do with your REFLECTION values?
> You have reflection {0.0, 1.0} as the min and max values.  The POV docs say,
> "The minimum value is how reflective the surface will be when viewed from a
> direction parallel to its normal..."  Here, the min value is 0...meaning
> black (?) or no light reflection at all (?). Again, I'm just guessing, as I
> haven't had occasion to use "minimum reflection" before, so I don't really
> know *how* it works.
>
> Ken


Post a reply to this message

From: Tim Nikias
Subject: Re: seek for help about rendering water surface
Date: 22 Mar 2006 03:36:12
Message: <44210c7c$1@news.povray.org>
> i check the online help of pov-ray, and it says: Typically values whose
> absolute values are less than a preset value epsilon are considered false
> for logical expressions. The value of epsilon is system dependent but is
> generally about 1.0e-10. Two floats a and b are considered to be equal if
> abs(a-b) < epsilon.
>
> so maybe i should save my mesh file with double type, am going to try
it,:)

That's not what I meant. But if you lose very low floating-point values,
like the online help says, things will be considered equal and triangles
might get dropped. It sometimes help to multiply all numbers with 10, 100 or
1000 (depending on the small scale of the mesh) when exporting it, and try
scaling it down (though you could still run into the same problems).

All that aside, there's still the issue of max_trace_level and
reflection/refraction to be considered, you easily get black dots on
transparent objects that are a little more irregular than a sphere...

Regards,
Tim

-- 
aka "Tim Nikias v2.0"
Homepage: <http://www.nolights.de>


Post a reply to this message

From: lien0n
Subject: Re: seek for help about rendering water surface
Date: 22 Mar 2006 03:45:00
Message: <web.44210cddb0f87641598059850@news.povray.org>
but i also tried others' idea for changing the max_trace_level to be 20, and
the result appears excellent, though the render speed is slow, and am going
to seek for appropriate values for the max_trace_level and min reflection.

thanks, everyone, your ideas are so helpful~~~~,

"lien0n" <nomail@nomail> wrote:
> i turned it to 0.5, and the result is much better~
>  :)
>
> "Kenneth" <kdw### [at] earthlinknet> wrote:
> > "lien0n" <nomail@nomail> wrote:
> > > i got a trianglar mesh file, and i render it with the "mesh2" object, the
> > > result can be seen in the attachment. But there so many black holes in the
> > > image.
> >
> > Just a guess, but could it have something to do with your REFLECTION values?
> > You have reflection {0.0, 1.0} as the min and max values.  The POV docs say,
> > "The minimum value is how reflective the surface will be when viewed from a
> > direction parallel to its normal..."  Here, the min value is 0...meaning
> > black (?) or no light reflection at all (?). Again, I'm just guessing, as I
> > haven't had occasion to use "minimum reflection" before, so I don't really
> > know *how* it works.
> >
> > Ken


Post a reply to this message

From: Marc Jacquier
Subject: Re: seek for help about rendering water surface
Date: 22 Mar 2006 04:17:22
Message: <44211622$1@news.povray.org>

news:web.44210cddb0f87641598059850@news.povray.org...
> but i also tried others' idea for changing the max_trace_level to be 20,
and
> the result appears excellent, though the render speed is slow, and am
going
> to seek for appropriate values for the max_trace_level and min reflection.


In addition to max_trace_level, you could want to tweak adc_bailout, I
suggest you have a look at the doc on this topic
I quote
"The point at which a ray's contribution is considered insignificant is
controlled by the adc_bailout value. The default is 1/255 or approximately
0.0039 since a change smaller than that could not be visible in a 24 bit
image. Generally this setting is perfectly adequate and should be left
alone. Setting adc_bailout to 0 will disable ADC, relying completely on
max_trace_level to set an upper limit on the number of rays spawned."

you could rise  adc_bailout to get shorter render times

Marc


Post a reply to this message

From: Piotr 'utak3r' Borys
Subject: Re: seek for help about rendering water surface
Date: 27 Mar 2006 03:42:09
Message: <4427a561$1@news.povray.org>
Hi,

> in my mesh file, there are three data blocks: vertices, normals, and
> triangles' vertex indices. I am sure that the vertices and the trianlges'

Just a thought: how about taking one vertice from every triangle and 
making a small blob from it? this way all the water should be much 
smoother than made from triangles... Never tried it before though.

cheers
-- 
Piotr "utak3r" Borys


Post a reply to this message

<<< Previous 4 Messages Goto Initial 10 Messages

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