jsc3d icon indicating copy to clipboard operation
jsc3d copied to clipboard

Multiple obj model loaded in a scene

Open GoogleCodeExporter opened this issue 11 years ago • 2 comments

i can't have multiple object in a scene, 

how i'm suppose to do that? i looked into the source and it seems that system 
just doesn't work that way , i have to load every mesh and fill vertex buffer 
in code?...

Original issue reported on code.google.com by [email protected] on 4 Jul 2014 at 12:31

GoogleCodeExporter avatar Apr 09 '15 16:04 GoogleCodeExporter

and i want to load a Modle.obj and change its texture ,

Original comment by [email protected] on 4 Jul 2014 at 12:48

GoogleCodeExporter avatar Apr 09 '15 16:04 GoogleCodeExporter

In this case, you need to use the loader objects manually (for obj files, the 
right loader is JSC3D.ObjLoader) to load each files. When done, construct a new 
scene object and add the loaded stuff into it. Then call viewer.replaceScene() 
with the scene object and it will be ok.

I guess this discussion will be helpful: 
http://code.google.com/p/jsc3d/issues/detail?id=52.

Original comment by [email protected] on 4 Jul 2014 at 2:45

GoogleCodeExporter avatar Apr 09 '15 16:04 GoogleCodeExporter