sleepyraccoon / jsc3d

Automatically exported from code.google.com/p/jsc3d
0 stars 0 forks source link

Multiple obj model loaded in a scene #79

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
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 anasv...@gmail.com on 4 Jul 2014 at 12:31

GoogleCodeExporter commented 9 years ago
and i want to load a Modle.obj and change its texture ,

Original comment by anasv...@gmail.com on 4 Jul 2014 at 12:48

GoogleCodeExporter commented 9 years ago
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 Humu2...@gmail.com on 4 Jul 2014 at 2:45