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.

Prohibit dynamic URI base for SceneJS.Instance

#118

Dynamic config of SceneJS.Instance nodes is fine, as long as it's only the fragment part of the URI that changes.

Good:

This is OK because the Instance will loadone subgraph, once and for all, then instance different camera Symbols from within that.

SceneJS.instance(
   function(data) {

     return {
          uri: "http://fo.com/models/myModel.dae" + data.get("fragment") // Eg. "#VisualSceneNode/camera1"
     };
 })</code>



Bad:

This is bad because internally the Instance might load a completely different file each time, which although theoretically SceneJS memory management would keep up, it would do heavy swapping.

SceneJS.instance(

function(data) {
     return {
          uri: data.get(&quot;uri&quot;) // Eg. &quot;http://fo.com/models/myModel.dae#VisualSceneNode/camera1&quot;
     };
 })</code>



Reported by lindsay.kay (at xeolabs) · June 25th, 2010 @ 12:57 PM

State: resolved
Milestone: V0.7.6

Activity

  1. lindsay.kay (at xeolabs)
    lindsay.kay (at xeolabs)

    Lighthouse code formatting has a bug, BTW

    June 25th, 2010 @ 12:58 PM

  2. lindsay.kay (at xeolabs)
    lindsay.kay (at xeolabs)
    • State changed from open to resolved
    • Milestone order changed from 0 to 0

    August 3rd, 2010 @ 11:35 PM

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.