![](/i/fill.gif) |
![](/i/fill.gif) |
|
![](/i/fill.gif) |
|
![](/i/fill.gif) |
| ![](/i/fill.gif) |
| ![](/i/fill.gif) |
|
![](/i/fill.gif) |
|
![](/i/fill.gif) |
| ![](/i/fill.gif) |
| ![](/i/fill.gif) |
|
![](/i/fill.gif) |
In article <3ea81560@news.povray.org>,
"leseur sylvain" <syl### [at] potar-hurlant com> wrote:
> //How can i use this kind of macros texture ???
Well, the usage instructions were given right at the top of your
message. What happens when you try something like that?
BTW, when you need to post the same message to multiple groups, it is
preferred if you cross-post, instead of posting the same thing several
times. That way, most newsreaders will notice if a message has already
been read, and it takes up less room on the server. Also, throwing such
a large block of code in your message is a bad idea outside of the scene
file groups. Since you apparently didn't write these, it would have been
better to just mention where you got them.
--
Christopher James Huff <cja### [at] earthlink net>
http://home.earthlink.net/~cjameshuff/
POV-Ray TAG: chr### [at] tag povray org
http://tag.povray.org/
Post a reply to this message
|
![](/i/fill.gif) |
| ![](/i/fill.gif) |
| ![](/i/fill.gif) |
|
![](/i/fill.gif) |
|
![](/i/fill.gif) |
| ![](/i/fill.gif) |
| ![](/i/fill.gif) |
|
![](/i/fill.gif) |
>>BTW, when you need to post the same message to multiple groups, it is
>>preferred if you cross-post, instead of posting the same thing several
>>times.
Ok. But, it is, at the same time for News_User, and Macro is not an
easy thing and i though Povray_General too.
What does it means BTW ?
>>That way, most newsreaders will notice if a message has already
>>been read, and it takes up less room on the server.
>>Also, throwing such
>>a large block of code in your message is a bad idea outside of the scene
>>file groups.
Ok. Your way is a best idea. Sorry.
>>Since you apparently didn't write these, it would have been
>>better to just mention where you got them.
Ok, it's true, of course. It's a part of:
// checker.inc version 1.00
// copyright Shiro Nakayama (syl### [at] cg-cg com) 2002
// date 2002.11.04
>>Well, the usage instructions were given right at the top of your
>>message. What happens when you try something like that?
I don't understand "usage"
// usage:
//(PatternNumber : 0 - 30)
//pigment { P_Checker(PatternNumber, pigment1, pigment2) }
//texture { T_Checker(PatternNumber, texture1, texture2) }etc...
I just wish to have one box and render each texture one by one.
Sorry again for stupid mistake.
Friendly
Sylvain.
Post a reply to this message
|
![](/i/fill.gif) |
| ![](/i/fill.gif) |
| ![](/i/fill.gif) |
|
![](/i/fill.gif) |
|
![](/i/fill.gif) |
| ![](/i/fill.gif) |
| ![](/i/fill.gif) |
|
![](/i/fill.gif) |
In article <3ea8cf8b@news.povray.org>,
"leseur sylvain" <syl### [at] potar-hurlant com> wrote:
> >>BTW, when you need to post the same message to multiple groups, it is
> >>preferred if you cross-post, instead of posting the same thing several
> >>times.
> Ok. But, it is, at the same time for News_User, and Macro is not an
> easy thing and i though Povray_General too.
> What does it means BTW ?
What does what mean? Cross posting? It is a way to post one message to
multiple groups. I'm not sure of the best way to do it with Outlook...
> >>Since you apparently didn't write these, it would have been
> >>better to just mention where you got them.
> Ok, it's true, of course. It's a part of:
> // checker.inc version 1.00
> // copyright Shiro Nakayama (syl### [at] cg-cg com) 2002
> // date 2002.11.04
Well, that doesn't tell where you got it, but I bet Shiro Nakayama knows
more about how to use it than the people on these groups... ;-)
> >>Well, the usage instructions were given right at the top of your
> >>message. What happens when you try something like that?
> I don't understand "usage"
The word "usage"? It means "how something is used".
> // usage:
> //(PatternNumber : 0 - 30)
> //pigment { P_Checker(PatternNumber, pigment1, pigment2) }
> //texture { T_Checker(PatternNumber, texture1, texture2) }etc...
The P_Checker() macro makes a pigment, T_Checker() makes an entire
texture, PatternNumber is any number from 0 to 30.
> I just wish to have one box and render each texture one by one.
Something like this:
#include "colors.inc"
#include "checker.inc"
camera {
orthographic
location < 0, 0,-1>
look_at < 0, 0, 0>
right x*1 up y*1
}
#declare TexA = texture {pigment {color White}}
#declare TexA = texture {pigment {color Black}}
box {<-1,-1, 0>, < 1, 1, 1>
texture {T_Checker(frame_number, TexA, TexB)}
}
And then render an animation with 30 frames.
--
Christopher James Huff <cja### [at] earthlink net>
http://home.earthlink.net/~cjameshuff/
POV-Ray TAG: chr### [at] tag povray org
http://tag.povray.org/
Post a reply to this message
|
![](/i/fill.gif) |
| ![](/i/fill.gif) |
| ![](/i/fill.gif) |
|
![](/i/fill.gif) |
|
![](/i/fill.gif) |
| ![](/i/fill.gif) |
| ![](/i/fill.gif) |
|
![](/i/fill.gif) |
Thanks a lot
>It's a part of:
> // checker.inc version 1.00
> // copyright Shiro Nakayama (syl### [at] cg-cg com) 2002
> // date 2002.11.04
>>Well, that doesn't tell where you got it, but I bet Shiro Nakayama
knows
>>more about how to use it than the people on these groups... ;-)
I don't remember where i found checker.inc and i'm
not shure of syl### [at] cg-cg com is good...
Thanks again
Friendly
Sylvain
Post a reply to this message
|
![](/i/fill.gif) |
| ![](/i/fill.gif) |
| ![](/i/fill.gif) |
|
![](/i/fill.gif) |
|
![](/i/fill.gif) |
| ![](/i/fill.gif) |
| ![](/i/fill.gif) |
|
![](/i/fill.gif) |
In article <3ea97646@news.povray.org>,
"leseur sylvain" <syl### [at] potar-hurlant com> wrote:
> I don't remember where i found checker.inc and i'm
> not shure of syl### [at] cg-cg com is good...
http://www.cg-cg.com/povray/macro.htm
--
Christopher James Huff <cja### [at] earthlink net>
http://home.earthlink.net/~cjameshuff/
POV-Ray TAG: chr### [at] tag povray org
http://tag.povray.org/
Post a reply to this message
|
![](/i/fill.gif) |
| ![](/i/fill.gif) |
| ![](/i/fill.gif) |
|
![](/i/fill.gif) |
|
![](/i/fill.gif) |
| ![](/i/fill.gif) |
| ![](/i/fill.gif) |
|
![](/i/fill.gif) |
> > What does it means BTW ?
>
By the way.
> What does what mean? Cross posting? It is a way to post one message to
> multiple groups. I'm not sure of the best way to do it with Outlook...
>
Multi-posting involves sticking separate posts about the same thing in
different newsgroups. If someone spends time answering a question in this
newsgroup, and then finds that it has already been answered in another, it
sometimes annoys them. Cross-posting links these posts together so that when
someone replies in one newsgroup, the reply appears as if by magic in each
of the other newsgroups.
It's really quite simple, and is described in almost every NG FAQ ever
written. In the line Newsgroups: (note that it is plural, which should give
you a hint!), you can type:
the names of each newsgroup seperated by comas:
povray.general, povray.windows, etc
And away you go.
Alan Walkington
Post a reply to this message
|
![](/i/fill.gif) |
| ![](/i/fill.gif) |
| ![](/i/fill.gif) |
|
![](/i/fill.gif) |
|
![](/i/fill.gif) |
| ![](/i/fill.gif) |
| ![](/i/fill.gif) |
|
![](/i/fill.gif) |
/*
The second "#declare TexA ..." should be "#declare TexB ...".
Only PatternNumbers from 1 to 3 and one default pattern are
defined, so the following scene shows all these patterns.
Sputnik
-------------------------------------
e-mail: fr### [at] computermuseum fh-kiel de
-------------------------------------
*/
// -F +D +A0.1 +W800 +H600
#include "colors.inc"
#include "checker.inc"
camera { location <-10, 15, -15> look_at 0 }
light_source { <-150, 200, -100> color rgb 1 }
#declare TexA = texture { pigment { color White } }
#declare TexB = texture { pigment { color Red } }
#declare TexC = texture { pigment { color Green } }
#declare TexD = texture { pigment { color Blue } }
#declare N = 1;
#while (N<=4)
#declare Z = N*8-12;
box { <-10,-2,Z>, <-4,0,Z+6> texture { T_Checker (N,TexA,TexB) } }
box { < -2,-2,Z>, < 4,0,Z+6> texture { T_Checker2(N,TexA,TexB) } }
box { < 6,-2,Z>, <12,0,Z+6> texture { T_Hexagon (N,TexA,TexB,TexC) } }
box { < 14,-2,Z>, <20,0,Z+6> texture { T_Hexagon2(N,TexA,TexB,TexC,TexD) } }
#declare N = N+1;
#end//while Nr
Post a reply to this message
|
![](/i/fill.gif) |
| ![](/i/fill.gif) |
| ![](/i/fill.gif) |
|
![](/i/fill.gif) |
|
![](/i/fill.gif) |
| ![](/i/fill.gif) |
| ![](/i/fill.gif) |
|
![](/i/fill.gif) |
>
> http://www.cg-cg.com/povray/macro.htm
>
> --
Of course like that, it's really more easy...
Thanks
Sylvain
Post a reply to this message
|
![](/i/fill.gif) |
| ![](/i/fill.gif) |
| ![](/i/fill.gif) |
|
![](/i/fill.gif) |
|
![](/i/fill.gif) |
| ![](/i/fill.gif) |
| ![](/i/fill.gif) |
|
![](/i/fill.gif) |
Now it's clear .
Ok
Thanks for the time
Friendly
Sylvain
Post a reply to this message
|
![](/i/fill.gif) |
| ![](/i/fill.gif) |
| ![](/i/fill.gif) |
|
![](/i/fill.gif) |
|
![](/i/fill.gif) |
| ![](/i/fill.gif) |
| ![](/i/fill.gif) |
|
![](/i/fill.gif) |
I'm going to try that .
Thanks a lot
Friendly
Sylvain
Post a reply to this message
|
![](/i/fill.gif) |
| ![](/i/fill.gif) |
| ![](/i/fill.gif) |
|
![](/i/fill.gif) |
|
![](/i/fill.gif) |
| ![](/i/fill.gif) |
|
![](/i/fill.gif) |