POV-Ray : Newsgroups : povray.general : crand in Pov-Ray 3.7 ? Server Time
28 Dec 2024 05:49:34 EST (-0500)
  crand in Pov-Ray 3.7 ? (Message 1 to 10 of 12)  
Goto Latest 10 Messages Next 2 Messages >>>
From: mone
Subject: crand in Pov-Ray 3.7 ?
Date: 19 May 2012 18:45:01
Message: <web.4fb822208ba377448aa4293a0@news.povray.org>
Hi,

Sometimes I want meshes too look a little more rough and get rid of some banding
artifacts. So I used to put "crand" in my finish statements in this case. But if
I use crand in Version 3.7 it has no effect anymore. Maybe it does not work in
3.7 because it was considered obsolete and taken out?

I've already tried small normals with bumps to get a similar effect as with
crand, but somehow it didn't look good, because they were distorted on some
parts of the mesh and not visible in very dark and light areas.

Can anyone tell me what I could use instead of crand in Version 3.7?

Best wishes

Simone


Post a reply to this message

From: James Holsenback
Subject: Re: crand in Pov-Ray 3.7 ?
Date: 19 May 2012 20:29:49
Message: <4fb83afd$1@news.povray.org>
On 05/19/2012 06:43 PM, mone wrote:
> Hi,
>
> Sometimes I want meshes too look a little more rough and get rid of some banding
> artifacts. So I used to put "crand" in my finish statements in this case. But if
> I use crand in Version 3.7 it has no effect anymore. Maybe it does not work in
> 3.7 because it was considered obsolete and taken out?
>
> I've already tried small normals with bumps to get a similar effect as with
> crand, but somehow it didn't look good, because they were distorted on some
> parts of the mesh and not visible in very dark and light areas.
>
> Can anyone tell me what I could use instead of crand in Version 3.7?
>
> Best wishes
>
> Simone
>
>
try the granite pattern, something scaled small (1e-2 or maybe 3) ... 
play around with it!
http://wiki.povray.org/content/Reference:Granite_Pattern


Post a reply to this message

From: mone
Subject: Re: crand in Pov-Ray 3.7 ?
Date: 20 May 2012 16:20:00
Message: <web.4fb951d82aff7d1cef0d539e0@news.povray.org>
James Holsenback <nom### [at] nonecom> wrote:
> >
> try the granite pattern, something scaled small (1e-2 or maybe 3) ...
> play around with it!
> http://wiki.povray.org/content/Reference:Granite_Pattern

Thank you for the tip James!
I tried different scales so far, it's a little difficult, 1e-8 is still too
strong, 1e-9 gives strange results with the lighting and with 1e-10 the pattern
is not visible. Maybe I will try it with a layered texture next ...

Best wishes

Simone


Post a reply to this message

From: Slime
Subject: Re: crand in Pov-Ray 3.7 ?
Date: 25 May 2012 22:58:52
Message: <4fc046ec$1@news.povray.org>
> I tried different scales so far, it's a little difficult, 1e-8 is 
still too
 > strong, 1e-9 gives strange results with the lighting and with 1e-10 
the pattern
 > is not visible.

The scale of the normal won't affect its strength. Put a number 
immediately after the "granite" keyword to scale down its strength:

normal
{
     granite 0.1
     // ... scale, etc ...
}


Post a reply to this message

From: mone
Subject: Re: crand in Pov-Ray 3.7 ?
Date: 27 May 2012 22:50:01
Message: <web.4fc2e7902aff7d1c5f561ae80@news.povray.org>
Slime <pov### [at] slimelandcom> wrote:
> > I tried different scales so far, it's a little difficult, 1e-8 is
> still too
>  > strong, 1e-9 gives strange results with the lighting and with 1e-10
> the pattern
>  > is not visible.
>
> The scale of the normal won't affect its strength. Put a number
> immediately after the "granite" keyword to scale down its strength:
>
> normal
> {
>      granite 0.1
>      // ... scale, etc ...
> }

Yes, thanks you. But it wasn't good with a normal because the normal pattern
doesn't show up in dark areas.
So I put it in pigment pattern instead, which did not work either.

But finally I used POV 3.6 again with "crand". (I thought I could get used to
POV 3.7 but it seems to be too different from older versions for my purposes.)

Best wishes

Simone


Post a reply to this message

From: clipka
Subject: Re: crand in Pov-Ray 3.7 ?
Date: 28 May 2012 07:42:26
Message: <4fc364a2$1@news.povray.org>
Am 20.05.2012 00:43, schrieb mone:

> Sometimes I want meshes too look a little more rough and get rid of some banding
> artifacts. So I used to put "crand" in my finish statements in this case. But if
> I use crand in Version 3.7 it has no effect anymore. Maybe it does not work in
> 3.7 because it was considered obsolete and taken out?

What exactly do you mean with "banding artifacts"? Some mesh-specific 
stuff, or the banding that can occur when you have "slow" color 
transitions in the image (such as the sky)?

For the latter, 3.7's "Dither=on" or "+th" works like a charm.


Post a reply to this message

From: James Holsenback
Subject: Re: crand in Pov-Ray 3.7 ?
Date: 28 May 2012 08:32:04
Message: <4fc37044$1@news.povray.org>
On 05/27/2012 10:48 PM, mone wrote:
> Slime<pov### [at] slimelandcom>  wrote:
>>> I tried different scales so far, it's a little difficult, 1e-8 is
>> still too
>>   >  strong, 1e-9 gives strange results with the lighting and with 1e-10
>> the pattern
>>   >  is not visible.
>>
>> The scale of the normal won't affect its strength. Put a number
>> immediately after the "granite" keyword to scale down its strength:
>>
>> normal
>> {
>>       granite 0.1
>>       // ... scale, etc ...
>> }
>
> Yes, thanks you. But it wasn't good with a normal because the normal pattern
> doesn't show up in dark areas.
> So I put it in pigment pattern instead, which did not work either.

maybe then a normal isn't /really/ the answer ... what about an 
isosurface sphere with noise?

http://wiki.povray.org/content/Documentation:Tutorial_Section_3.2#Noise_and_pigment_functions

towards the bottom of the above tutorial section are a couple examples

> But finally I used POV 3.6 again with "crand". (I thought I could get used to
> POV 3.7 but it seems to be too different from older versions for my purposes.)

don't give up ... 3.7 is WAY better in many aspects. I think if you try 
to push through the initial learning curve the rewards will become apparent


Post a reply to this message

From: Thomas de Groot
Subject: Re: crand in Pov-Ray 3.7 ?
Date: 28 May 2012 10:49:15
Message: <4fc3906b$1@news.povray.org>
On 28-5-2012 4:48, mone wrote:
> Yes, thanks you. But it wasn't good with a normal because the normal pattern
> doesn't show up in dark areas.

That's normal... :-)

> So I put it in pigment pattern instead, which did not work either.
>
> But finally I used POV 3.6 again with "crand". (I thought I could get used to
> POV 3.7 but it seems to be too different from older versions for my purposes.)
>

Maybe you should show us an example of what you try to achieve. Our 
answers would be better focussed I think.

Thomas


Post a reply to this message

From: Warp
Subject: Re: crand in Pov-Ray 3.7 ?
Date: 28 May 2012 11:20:08
Message: <4fc397a7@news.povray.org>
James Holsenback <nom### [at] nonecom> wrote:
> try the granite pattern

  Note that the granite pattern is quite significantly slower to render
than using crand (well, in pov3.6 anyways, where crand is supported).

  If you want a slightly faster alternative, use the 'bumps' pattern
(scaled vary small).

-- 
                                                          - Warp


Post a reply to this message

From: Thorsten Froehlich
Subject: Re: crand in Pov-Ray 3.7 ?
Date: 28 May 2012 13:08:00
Message: <4fc3b0f0$1@news.povray.org>
On 20.05.12 00:43, mone wrote:
> Hi,
>
> Sometimes I want meshes too look a little more rough and get rid of some banding
> artifacts. So I used to put "crand" in my finish statements in this case. But if
> I use crand in Version 3.7 it has no effect anymore. Maybe it does not work in
> 3.7 because it was considered obsolete and taken out?
>
> I've already tried small normals with bumps to get a similar effect as with
> crand, but somehow it didn't look good, because they were distorted on some
> parts of the mesh and not visible in very dark and light areas.
>
> Can anyone tell me what I could use instead of crand in Version 3.7?

Actually, that crand is still disabled is a bug. I had disabled it early on 
during 3.7 development (years ago) and it is still marked as a TODO in the 
code. I have opened a bug report for it. It should get fixed in final 3.7.

     Thorsten, POV-Team


Post a reply to this message

Goto Latest 10 Messages Next 2 Messages >>>

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