POV-Ray : Newsgroups : povray.advanced-users : LEDs Server Time
30 Jul 2024 12:23:39 EDT (-0400)
  LEDs (Message 1 to 7 of 7)  
From: Roger Orchard
Subject: LEDs
Date: 18 Aug 1999 06:20:34
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 {
.
.
.
}


Post a reply to this message

From: Vahur Krouverk
Subject: Re: LEDs
Date: 18 Aug 1999 11:44:57
Message: <37BAD52E.FBCF87C4@fv.aetec.ee>
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

From: Mark Wagner
Subject: Re: LEDs
Date: 19 Aug 1999 02:31:01
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

From: Noah A
Subject: Re: LEDs
Date: 19 Aug 1999 23:42:30
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

From: Roger Orchard
Subject: Re: LEDs
Date: 20 Aug 1999 03:51:05
Message: <37bd08e9@news.povray.org>
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

From: Roger Orchard
Subject: Re: LEDs
Date: 20 Aug 1999 10:02:40
Message: <37bd6000@news.povray.org>
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

From: John VanSickle
Subject: Re: LEDs
Date: 22 Aug 1999 15:16:15
Message: <37C04FA6.1696BF97@erols.com>
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

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