Show Posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.


Messages - apaladin@naver.com

Pages: [1]
1
Support / loadSerializedObject question
« on: September 20, 2012, 04:01:09 am »
Hi every one

i have a model 3ds file . it has a 0~7 part's.
eg. obj_0.res ~obj_7.res

cause i coded like this.

Object3D model = Loader.loadSerializedObject(res.openRawResource(R.raw.obj_0));
            
for(int i = R.raw.obj_0; i < R.raw.obj_7; i++){
 if(i == R.raw.obj_0)continue;
 Object3D _tmp = Loader.loadSerializedObject(res.openRawResource(i));
 _tmp.strip();
 _tmp.setVisibility(Object3D.OBJ_VISIBLE);
 _tmp.setAdditionalColor(RGBColor.RED);
 model.addChild(_tmp);
}

but dosen't seeing whole object.
just seeing "obj_0" first loaded "model" variable.

Question is 3dObject has Multiple part's. how can load it?
Just anybody little hint  for me ?

Pages: [1]