POV-Ray : Newsgroups : povray.beta-test : [scenes] woodmaps.inc Server Time
30 Jul 2024 02:13:31 EDT (-0400)
  [scenes] woodmaps.inc (Message 1 to 10 of 19)  
Goto Latest 10 Messages Next 9 Messages >>>
From: Felix Wiemann
Subject: [scenes] woodmaps.inc
Date: 28 Jan 2002 04:28:46
Message: <3c5519ce$1@news.povray.org>
WINPOV 3.5 Beta 10
When including woodmaps.inc (or woods.inc) without including colors.inc
an error occurs in line 471. A color "Clear" defined in colors.inc is
used.
Either colors.inc should be included in woodmaps.inc or "Clear" should
be replaced by rgbf 1 imho.


Post a reply to this message

From: Ken
Subject: Re: [scenes] woodmaps.inc
Date: 28 Jan 2002 08:39:33
Message: <3C5554F9.321AF2D5@pacbell.net>
Felix Wiemann wrote:
> 
> WINPOV 3.5 Beta 10
> When including woodmaps.inc (or woods.inc) without including colors.inc
> an error occurs in line 471. A color "Clear" defined in colors.inc is
> used.
> Either colors.inc should be included in woodmaps.inc or "Clear" should
> be replaced by rgbf 1 imho.

There are other include files that are dependant upon colors.inc being
included to make the file work. It is a good idea to just get used to
including colors.inc if you will be using other texture related files.

-- 
Ken Tyler - POV-Ray Techinical Assistance Group


Post a reply to this message

From: Felix Wiemann
Subject: Re: [scenes] woodmaps.inc
Date: 28 Jan 2002 10:44:31
Message: <3c5571df@news.povray.org>
> There are other include files that are dependant upon colors.inc
being
> included to make the file work. It is a good idea to just get used to
> including colors.inc if you will be using other texture related
files.

But why not including colors.inc in every include, which needs it? That
would be more logical and the parsing time would not be much longer.


Post a reply to this message

From: Thorsten Froehlich
Subject: Re: [scenes] woodmaps.inc
Date: 28 Jan 2002 10:52:27
Message: <3c5573bb$1@news.povray.org>
"Felix Wiemann" <Fel### [at] gmxnet> schrieb im Newsbeitrag
news:3c5571df@news.povray.org...
> > There are other include files that are dependant upon colors.inc
> being
> > included to make the file work. It is a good idea to just get used to
> > including colors.inc if you will be using other texture related
> files.
>
> But why not including colors.inc in every include, which needs it? That
> would be more logical and the parsing time would not be much longer.

It actually would increase parse time.  Besides, POV-Ray include files
always used to depend on a common subset of include files.

    Thorsten


Post a reply to this message

From: Felix Wiemann
Subject: Re: [scenes] woodmaps.inc
Date: 28 Jan 2002 13:10:33
Message: <3c559419@news.povray.org>
> It actually would increase parse time.  Besides, POV-Ray include files
> always used to depend on a common subset of include files.

But there's this section in colors.inc:

#ifdef(Colors_Inc_Temp)
// do nothing
#else
#declare Colors_Inc_Temp = version;

Does it take so much time to open the include and to skip reading if
Colors_Inc_Temp already exists? I think this isn't used in loops, so it's
not very important.


Post a reply to this message

From: Warp
Subject: Re: [scenes] woodmaps.inc
Date: 28 Jan 2002 14:32:17
Message: <3c55a741@news.povray.org>
Thorsten Froehlich <tho### [at] trfde> wrote:
: It actually would increase parse time.

  Then use a trick sometimes used in C/C++. Instead of:

#include "whatever"

do:

#ifndef _WHATEVER_INC_
  #include "whatever"
  #declare _WHATEVER_INC_ = yes;
#end

  As this is done just inside a standard include, the user doesn't have to
worry about it.

-- 
#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: Coridon Henshaw
Subject: Re: [scenes] woodmaps.inc
Date: 28 Jan 2002 15:14:01
Message: <Xns91A49AF789F2CCQ@204.213.191.226>
Warp <war### [at] tagpovrayorg> wrote in news:3c55a741@news.povray.org:

> Thorsten Froehlich <tho### [at] trfde> wrote:
>: It actually would increase parse time.
> 
>   Then use a trick sometimes used in C/C++. Instead of:

Colors.inc already does this.


Post a reply to this message

From: Thorsten Froehlich
Subject: Re: [scenes] woodmaps.inc
Date: 28 Jan 2002 15:49:17
Message: <3c55b94d@news.povray.org>
In article <3c55a741@news.povray.org> , Warp <war### [at] tagpovrayorg>  wrote:

> : It actually would increase parse time.
>
>   Then use a trick sometimes used in C/C++. Instead of:

Which is exactly what increases parse time!  The POV-Ray parser still turns
everything into tokens, only to ignore it - keep in mind the parser and what
looks like a preprocessor is actually more or less *one* step, so it isn't
very fast.

    Thorsten

____________________________________________________
Thorsten Froehlich, Duisburg, Germany
e-mail: tho### [at] trfde

Visit POV-Ray on the web: http://mac.povray.org


Post a reply to this message

From: Thorsten Froehlich
Subject: Re: [scenes] woodmaps.inc
Date: 28 Jan 2002 15:50:13
Message: <3c55b985$1@news.povray.org>
In article <Xns### [at] 204213191226> , che### [at] sympaticoca 
(Coridon Henshaw) wrote:

> Warp <war### [at] tagpovrayorg> wrote in news:3c55a741@news.povray.org:
>
>> Thorsten Froehlich <tho### [at] trfde> wrote:
>>: It actually would increase parse time.
>>
>>   Then use a trick sometimes used in C/C++. Instead of:
>
> Colors.inc already does this.

Precisely.  Afaik a lot of include files do, or at least did this.

    Thorsten

____________________________________________________
Thorsten Froehlich, Duisburg, Germany
e-mail: tho### [at] trfde

Visit POV-Ray on the web: http://mac.povray.org


Post a reply to this message

From: Warp
Subject: Re: [scenes] woodmaps.inc
Date: 28 Jan 2002 16:38:49
Message: <3c55c4e9@news.povray.org>
Thorsten Froehlich <tho### [at] trfde> wrote:
:>   Then use a trick sometimes used in C/C++. Instead of:

: Which is exactly what increases parse time!

  Do you mean that povray reads the #included file even though it's inside
an #if block which is just being skipped?-o

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

Goto Latest 10 Messages Next 9 Messages >>>

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