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("uri") // Eg. "http://fo.com/models/myModel.dae#VisualSceneNode/camera1"
};
})</code>
Comments and changes to this ticket
-
lindsay.kay (at xeolabs) August 3rd, 2010 @ 11:35 PM
- State changed from open to resolved
- Milestone order changed from 0 to 0
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.
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.