In the example at http://cs.sru.edu/~ddailey/svg/lighting.svg  -- I played a
bit with some lighting effects.

 

The example seems to work well in Firefox and Chrome (though not so well in
Opera).

 

Given the syntax of the effect, it made me wonder if one couldn't put
multiple lights inside the same filter primitive, or to at least chain
different colored effects together - like say cast a magenta light on a
scene from a distance, but put a yellow light bulb in the middle of the
stage

 

<filter id="pointLightB" filterUnits="objectBoundingBox" x="0" y="0"
width="1" height="1">

        <feDiffuseLighting in="SourceGraphic" diffuseConstant="1"
surfaceScale="10" lighting-color="white">

          <fePointLight x="40" y="50" z="10"/>

        </feDiffuseLighting>

      </filter>

 

I tried putting to fePointLights inside the same feDiffuseLighting, but the
first one seems to be ignored.

 

I tried chaining to feDiffuseLighting's inside the same filter, but one of
the other seems to be ignored.

I suppose I could store two lighting effects temporarily and then use an
feMerge to combine, but then why is a Light a child of a lighting effect
like this?

 

Is the syntax thusly suggestive for no reason?

 

If a filter primitive has to have the same light color, then why not just do
something like this:

 

        <feDiffuseLighting in="SourceGraphic" diffuseConstant="1"
surfaceScale="10" lighting-color="white"

         type= "fePointLight" x="40" y="50" z="10"/>

        </feDiffuseLighting>

?

 

Thanks in advance,

David



[Non-text portions of this message have been removed]



------------------------------------

-----
To unsubscribe send a message to: [email protected]
-or-
visit http://groups.yahoo.com/group/svg-developers and click "edit my 
membership"
----Yahoo! Groups Links

<*> To visit your group on the web, go to:
    http://groups.yahoo.com/group/svg-developers/

<*> Your email settings:
    Individual Email | Traditional

<*> To change settings online go to:
    http://groups.yahoo.com/group/svg-developers/join
    (Yahoo! ID required)

<*> To change settings via email:
    [email protected] 
    [email protected]

<*> To unsubscribe from this group, send an email to:
    [email protected]

<*> Your use of Yahoo! Groups is subject to:
    http://docs.yahoo.com/info/terms/

Reply via email to