Lighthouse has a new layout. Prefer the old one? Return to the old layout, and switch back any time from the link at the top of each page.

SceneJS.Lights in seperate transform hierarchy

#79

Problem

In V0.7.4, a Lights node cannot be transformed independently of it's illuminated subnodes because it is within the same subgraph as those nodes.

In the example below, the translation cannot be used to move the light around because it will also move the content that it illuminates:


var a = new SceneJS.Node(
     new SceneJS.Translate({ ... },
            new SceneJS.Lighting({ ... },

               new SceneJS.Geometry({ ... })
           )
      )
);

Solution

In V0.7.5, Lights nodes now have a global effect, where once they are defined they then illuminate all other nodes subsequently rendered during the graph's left-right traversal. This allows them to be within their own transform hierarchies:


var a = new SceneJS.Node(
     new SceneJS.Translate({ ... },
            new SceneJS.Lighting({ ... })
     ),

     new SceneJS.Geometry({ ... })
);

The left-to-right traversal semantic was introduced in V0.7.5 by the SceneJS.Symbol and SceneJS.Instance nodes.

Reported by lindsay.kay (at xeolabs) · May 17th, 2010 @ 06:05 AM

State: resolved
Milestone: V0.7.5

Activity

  1. lindsay.kay (at xeolabs)
    lindsay.kay (at xeolabs)
    • State changed from new to resolved

    May 24th, 2010 @ 03:59 AM

Please Sign in or create a free account to add a new ticket.

With your very own profile, you can contribute to projects, track your activity, watch tickets, receive and update tickets through your email and much more.