#118 ✓resolved
lindsay.kay (at xeolabs)

Prohibit dynamic URI base for SceneJS.Instance

Reported by lindsay.kay (at xeolabs) | June 25th, 2010 @ 12:57 PM | in V0.7.6

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>



Comments and changes to this ticket

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.

New-ticket Create new ticket

Create your profile

Help contribute to this project by taking a few moments to create your personal profile. Create your profile »

SceneJS provides easy access to WebGL through a simple and declarative JavaScript API. The SceneJS API is functional, which enables its scene definitions to be really compact and expressive, while hooking into other JavaScript code just that little bit more smoothly.

Shared Ticket Bins

People watching this ticket

Pages