Mesh Import from Wavefront OBJ Format
Reported by lindsay.kay (at xeolabs) | May 19th, 2010 @ 11:46 AM
Description
.OBJ is a simple file format for description of geometry. SceneJS needs to import geometry, material and texture from these into a scene graph.
Proposed Solution
Create a SceneJS.LoadOBJ node that generates its subgraph when first visited by loading and parsing an OBJ file, in a similar manner to the existing SceneJS.loadCollada node:
var graph = new SceneJS.LoadOBJ({
uri: "http://foo.com/files/myobj.obj"
})
Limitations
V0.7.5 would provide limited OBJ support, where there would be documented guidelines for what drawing programs may export to OBJ files that are desired to work with SceneJS. Initially supported features are:
- Triangle import only
- Groups
- Textures
Resources
- ANTLR Grammar: http://www.antlr.org/grammar/1181878717345/WavefrontOBJ.g
Comments and changes to this ticket
-
lindsay.kay (at xeolabs) June 9th, 2010 @ 05:40 AM
- Milestone changed from V0.7.5 to V0.7.6
-
lindsay.kay (at xeolabs) August 3rd, 2010 @ 11:33 PM
- Milestone cleared.
- 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.