|
|
|
|
|
|
| |
| |
|
|
|
|
| |
| |
|
|
Can some one help me?
I have a case, with holes for some LEDs in it.
I can put a light under the hole, so it looks like the LED.
What I want to do is group the light with the case.
IE so it is a part of the
#declare case_a =
union {
.
.
.
}
Post a reply to this message
|
|
| |
| |
|
|
|
|
| |
| |
|
|
Roger Orchard wrote:
>
> Can some one help me?
>
> I have a case, with holes for some LEDs in it.
>
> I can put a light under the hole, so it looks like the LED.
>
> What I want to do is group the light with the case.
>
Do You have to use light source for LED, i.e. does it have to emit
light? I have used cylinder with quite big red(or green or yellow)
pigment value and it looks quite similar to LED. Of course if You want
to render LED, which is main detail in the picture and should emit
light, then lights can be used in union: (from manual)
"The light_source is not really an object. Light sources have no visible
shape of their own. They are just points or areas which emit light. They
are categorized as objects so that they can be combined with regular
objects using union."
Additionally You should use probably looks_like for shape of LED.
Post a reply to this message
|
|
| |
| |
|
|
|
|
| |
| |
|
|
Roger Orchard wrote in message <37ba88f2@news.povray.org>...
>Can some one help me?
>
>I have a case, with holes for some LEDs in it.
>
>I can put a light under the hole, so it looks like the LED.
>
>What I want to do is group the light with the case.
>
>IE so it is a part of the
>#declare case_a =
>union {
>.
>.
>.
>}
No problem. The following is perfectly valid:
#declare case_a =
union{
/* Your case definition */
light_source{ /* Your light source */ }
}
Mark
Post a reply to this message
|
|
| |
| |
|
|
|
|
| |
| |
|
|
are you coping my case picture????? huh are you?! cop to it man?! i know
your just making cheep forgeries! aren't you admit it!!!! :)
hehehe LEDs are a pain.
Roger Orchard wrote:
> Can some one help me?
>
> I have a case, with holes for some LEDs in it.
>
> I can put a light under the hole, so it looks like the LED.
>
> What I want to do is group the light with the case.
>
> IE so it is a part of the
> #declare case_a =
> union {
> .
> .
> .
> }
Post a reply to this message
|
|
| |
| |
|
|
|
|
| |
| |
|
|
There are meny cases in the Pic.
But there are meny LEDs in a case (Side, base, Top and Light)
It is mainly, so I only move 1 object, not n objects
Noah A wrote in message <37BCCEAC.92B5E5BE@powersurfr.com>...
>are you coping my case picture????? huh are you?! cop to it man?! i know
>your just making cheep forgeries! aren't you admit it!!!! :)
>hehehe LEDs are a pain.
>
>Roger Orchard wrote:
>
>> Can some one help me?
>>
>> I have a case, with holes for some LEDs in it.
>>
>> I can put a light under the hole, so it looks like the LED.
>>
>> What I want to do is group the light with the case.
>>
>> IE so it is a part of the
>> #declare case_a =
>> union {
>> .
>> .
>> .
>> }
>
Post a reply to this message
|
|
| |
| |
|
|
|
|
| |
| |
|
|
I am shore i tried that so here is my basic led
#declare LED_yellow =
union
{
object
{
sphere { <0, 0, 5>, 1.5}
texture { T_Yellow_L_Glass }
interior { I_Glass }
}
cylinder
{
0*z, 5*z, 1.5
open
texture { LED_CASE_T }
}
disc
{
<0, 0, 0>
z,
1.5
texture { LED_CASE_T }
}
light_source
{
<0, 0, 0.5>
color White
}
}
Mark Wagner wrote in message <37bba4a5@news.povray.org>...
>
>Roger Orchard wrote in message <37ba88f2@news.povray.org>...
>>Can some one help me?
>>
>>I have a case, with holes for some LEDs in it.
>>
>>I can put a light under the hole, so it looks like the LED.
>>
>>What I want to do is group the light with the case.
>>
>>IE so it is a part of the
>>#declare case_a =
>>union {
>>.
>>.
>>.
>>}
>
>
>No problem. The following is perfectly valid:
>
>#declare case_a =
>union{
> /* Your case definition */
>
> light_source{ /* Your light source */ }
>}
>
>Mark
>
>
Post a reply to this message
|
|
| |
| |
|
|
|
|
| |
| |
|
|
Roger Orchard wrote:
>
> Can some one help me?
>
> I have a case, with holes for some LEDs in it.
>
> I can put a light under the hole, so it looks like the LED.
>
> What I want to do is group the light with the case.
>
> IE so it is a part of the
> #declare case_a =
> union {
> .
> .
> .
> }
I simulated LEDs in my Rusty character. If you download the source
archive from my July 1999 IRTC entry, there are a couple files that
make use of simulated LEDs. The source archive is here:
http://www.irtc.org/ftp/pub/anims/1999-07-15/boxer.zip
The files that you'll want are:
rusty.inc (describes the character Rusty)
boxer.inc (decsribes the character Boxer)
rusty_l.inc (defines which of Rusty's LEDs are lit at any given time)
boxer_l.inc (ditto for Boxer)
I believe that I used a union of spheres, and then applied an
emitting media as the interior for the entire union, although for
test animations I used a solid texture with a high ambient value.
Using a light_source for each LED is a bad idea, because that will
vastly increase your rendering time, and as a rule LEDs don't cast
enough light to create shadows.
Hope this helps,
John
--
ICQ: 46085459
Post a reply to this message
|
|
| |
| |
|
|
|
|
| |