POV-Ray : Newsgroups : povray.general : texture + diffuse Server Time
6 Aug 2024 23:27:07 EDT (-0400)
  texture + diffuse (Message 4 to 13 of 13)  
<<< Previous 3 Messages Goto Initial 10 Messages
From: Warp
Subject: Re: texture + diffuse
Date: 28 Jan 2002 09:16:21
Message: <3c555d35@news.povray.org>
Felix Wiemann <Fel### [at] gmxnet> wrote:
:    texture
:       {
:       T_Stone25
:       }
:    finish
:       {
:       diffuse 2
:       }

  AFAIK this is actually a layered texture. You are not modifying the first
texture, but you are creating another texture on top of it.
  The effect you describe is strange, though.

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

From: Christopher James Huff
Subject: Re: texture + diffuse
Date: 28 Jan 2002 10:26:48
Message: <chrishuff-304553.10284928012002@netplex.aussie.org>
In article <3c55354b$1@news.povray.org>,
 "Felix Wiemann" <Fel### [at] gmxnet> wrote:

> Why isn't the whole texture changed? What can I do to change the
> diffuse value of the whole texture?
> I use POV-Ray 3.5.

What you are doing is creating another texture layer with the default 
texture used for everything but the diffuse. You want:
plane {z, 0
    texture {
        T_Stone25
        finish {
            diffuse 2
        }
    }
}

BTW, it also greatly helps readability if you neatly indent the code, 
indenting inner blocks more than their containing blocks, and it helps 
avoid this sort of problem later on. You don't necessarily have to do it 
the way I did it, just be consistent and use *some* indentation.

-- 
 -- 
Christopher James Huff <chr### [at] maccom>


Post a reply to this message

From: Felix Wiemann
Subject: Re: texture + diffuse
Date: 28 Jan 2002 11:02:14
Message: <3c557606@news.povray.org>
> What you are doing is creating another texture layer with the default
> texture used for everything but the diffuse. You want:
> plane {z, 0
>     texture {
>         T_Stone25
>         finish {
>             diffuse 2
>         }
>     }
> }

That doesn't work. It's still only one element with higher diffuse. I
wonder about that, too.

> BTW, it also greatly helps readability if you neatly indent the code,
> indenting inner blocks more than their containing blocks, and it
helps
> avoid this sort of problem later on. You don't necessarily have to do
it
> the way I did it, just be consistent and use *some* indentation.

I've tried so. Let me explain my indent "system":
1 (object or object modifier like union, pigment, plane, ...)
2       {
3       (some code)
4       }
(some code) can contain an object or object modifier.
It's better visible in an editor. I think it's a quite logical system.
But what do you suggest should I change?

Felix Wiemann


Post a reply to this message

From: Jérôme Grimbert
Subject: Re: texture + diffuse
Date: 28 Jan 2002 11:16:44
Message: <3C557984.C577DFC4@atosorigin.com>
Felix Wiemann wrote:
> 
> > What you are doing is creating another texture layer with the default
> > texture used for everything but the diffuse. You want:
> > plane {z, 0
> >     texture {
> >         T_Stone25
> >         finish {
> >             diffuse 2
> >         }
> >     }
> > }
> 
> That doesn't work. It's still only one element with higher diffuse. I
> wonder about that, too.

That's totally normal.
Check T_Stone25 definition....

It is a layered textured. so applying modifiers only works for one, not all of
them.

Solution for your problem : inline T_Stone25 and put the relevant finish
modifiers!

-- 
Non Sine Numine
http://grimbert.cjb.net/


Post a reply to this message

From:
Subject: Re: texture + diffuse
Date: 28 Jan 2002 11:27:11
Message: <lfua5u8qrootuigbfvp0m38c9sf35kb5k7@4ax.com>

<jer### [at] atosorigincom> wrote:
> Solution for your problem : inline T_Stone25 and put the relevant finish
> modifiers!

There can be also some persons which don't want open, search, copy, close long
way (also becouse of respect to authors of code). For such persons there is
still workaround.

// START
#include "colors.inc"

camera{location z*-2}
light_source{z*-2 rgb 1}

#default{finish{diffuse 2}}
#include "stones.inc"

plane{
  z, 0
  texture{T_Stone25}
}

#default{finish{diffuse .6}} // default according to documentation
#include "stones.inc"

/* rest of scene */

// END

ABX


Post a reply to this message

From: Jérôme Grimbert
Subject: Re: texture + diffuse
Date: 28 Jan 2002 12:05:19
Message: <3C5584E8.239F3950@atosorigin.com>


> There can be also some persons which don't want open, search, copy, close long
> way (also becouse of respect to authors of code). For such persons there is
> still workaround.

Unless one also want an Unmodified T_Stone_27

Or already add loaded "stones.inc", may be due to another include...

So beware of that solution.
- 
Non Sine Numine
http://grimbert.cjb.net/


Post a reply to this message

From:
Subject: Re: texture + diffuse
Date: 28 Jan 2002 12:28:14
Message: <gd2b5ukf5epm7eop501a2207tnmmtngdrg@4ax.com>

<jer### [at] atosorigincom> wrote:
> > There can be also some persons which don't want open, search, copy, close long
> > way (also becouse of respect to authors of code). For such persons there is
> > still workaround.
>
> Unless one also want an Unmodified T_Stone_27

Have you checked my solution ? It leaves T_Stone_27 unmodified

> So beware of that solution.

But of course there are some danger situations. Mainly when other default are
changed somewhere.

ABX


Post a reply to this message

From: Felix Wiemann
Subject: Re: texture + diffuse
Date: 28 Jan 2002 13:58:21
Message: <3c559f4d$1@news.povray.org>
> There can be also some persons which don't want open, search, copy,
> close long way (also becouse of respect to authors of code). For such
> persons there is still workaround.

Thank you!
But why isn't it possible to change the diffuse value but the reflection of
a layered texture?


#include "colors.inc"
#include "stones.inc"
camera{location z*-2}
light_source{z*-2 rgb 1}

background{1}   //NEW

plane{z, 0
   texture{T_Stone25}
   finish{reflection 2}   //INSTEAD OF DIFFUSE
   }


The whole texture reflects the background light! POV-Ray's SDL is normally a
very modularized and logical language, so I expect that a layered texture
identifier is handled by the same way as the inline code and as a non
layered texture identifier. I find it also confusing that there's a
difference between "reflection" and "diffuse". Can anyone explain this
behavior to me?

Felix Wiemann


Post a reply to this message

From: Peter Popov
Subject: Re: texture + diffuse
Date: 28 Jan 2002 14:55:00
Message: <5oab5u0j381r2vp9op3qr74lrnp9msgski@4ax.com>
On Mon, 28 Jan 2002 14:51:41 +0100, "Hugo" <hua### [at] post3teledk> wrote:

>Huh?  That's not logic!

Of course it's not, sorry for the hurried answer. See below.

plane {
  z, 0
  texture {
    T_Stone25
    finish { diffuse 2 }
  }
}

Now, this better make some sense or else I am quitting POV.


Peter Popov ICQ : 15002700
Personal e-mail : pet### [at] vipbg
TAG      e-mail : pet### [at] tagpovrayorg


Post a reply to this message

From: Ken
Subject: Re: texture + diffuse
Date: 28 Jan 2002 21:42:26
Message: <3C560C81.9484F02F@pacbell.net>
Christopher James Huff wrote:

> BTW, it also greatly helps readability if you neatly indent the code,
> indenting inner blocks more than their containing blocks, and it helps
> avoid this sort of problem later on. You don't necessarily have to do it
> the way I did it, just be consistent and use *some* indentation.

Humbug!

-- 
Ken Tyler


Post a reply to this message

<<< Previous 3 Messages Goto Initial 10 Messages

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