|
|
> On 06/10/2013 7:52 PM, Alain wrote:
>>> On 05/10/2013 8:55 PM, Christian Froeschlin wrote:
>>>> some pointers:
>>>
>>> You forgot to mention looks_like.
>>>
>>> 3.4.4.1.7 Looks_like
>>> Normally the light source itself has no visible shape. The light simply
>>> radiates from an invisible point or area. You may give a light source
>>> any shape by adding a looks_like { OBJECT } statement
>>>
>> looks_like is great unless part of the object is suposed to cast a
>> shadow.
>
> I did not think of that, it would not work as required.
>
The looks_like can be seen as a special case of an union.
There is nothing to prevent you to include a light_source within an union.
After looking at your code, I noticed that your torch is made of several
polygons rotated around the torch's axis.
If the body of the torch is to cast any shadow, you'd need to add a disk
or something just under the flame.
A disk is defined as follow:
disc{Center, Direction, Radius}
Where Center is where the disk is placed.
Direction is perpendicular to it's surface and define the orientation.
In your case, Direction can be defined a <0,1,0>.
If you use a disc in a scene having any fog or media, you should add
"hollow". Otherwise, it tend to interfer with the fog or media.
Alain
Post a reply to this message
|
|