Building rajawali.jar / Loading MD2 from sdcard #30

Closed
anzarzulfiqar opened this Issue May 22, 2012 · 11 comments

Projects

None yet

5 participants

@anzarzulfiqar

Hi,
I need to draw md2 animations and the md2 file resides on sdcard. For doing the same i need to modify the MD2Parser and AParser classes. But , if i am attaching my rajawali project with Rajawali-Examples Project as a library project . its not loading model. and none of the examplse are working. Kindly help me with this issue...

Thanks

@MasDennis
Rajawali member

Hi,
A good way to load stuff from the sd card is to serialize them.
See this example http://www.rozengain.com/blog/2012/01/16/rajawali-tutorial-4-optimisation/
This example shows how you can load a regular BaseObject3D but it works the same way with a VertexAnimationObject3D.
Like this:

VertexAnimationObject3D mMyModel = new VertexAnimationObject3D((SerializedObject3D)ois.readObject());

@ashunkhs

Hi sir

This is the solution to access the model from SDcard once loaded/saved from resource during development .. . But i need to load the models only from SDcard without interaction from resource. kindly help me with this issue.....

thanks..

@MasDennis MasDennis pushed a commit that referenced this issue May 23, 2012
MasDennis Parsers now also take a String that specifies the path to the file on…
… the SD Card. Fixes issue #30
a791e20
@MasDennis
Rajawali member

The Obj, MD2 and FBX parsers have a new constructor that take a path to a file on the SD Card:

ObjParser parser = new ObjParser(this, "/mypath/myfile.obj");
...
MD2Parser parser = new MD2Parser(this, "/mypath/myfile.md2");
...
FBXParser parser = new FBXParser(this, "/mypath/myfile.fbx");

@MasDennis MasDennis closed this May 23, 2012
@anzarzulfiqar

Hi,
Could you plz specify the path to new jar or source files which i can use now , and which includes this constructors to load model from sdcard...
Thanx in advance

@MasDennis
Rajawali member

Same location as always (see readme.md on the project page): https://github.com/MasDennis/Rajawali/raw/master/build/rajawalilib.zip

@anzarzulfiqar

Hi,
I need you help in regard with .obj models. I included your given jar file and now md2 models are working fine with their textures., but with obj models texture is not coming. i tried all possible actions from my side. the texture mtl and jpeg/png file is to be saved on sdcard along with obj model..

@ashunkhs

hi

I need your help regarding to set the texture on .md2 model.
I create multiple texture for multiple .md2 models but I am not able to set them on their respective models.Here first texture is coming on all .md2 model and rest of the texture is not applied . please help me on this issue quickly.

@MasDennis
Rajawali member

I'll look at it later, got lots of other stuff to do first if you look at the list of issues ;-)

@amolgupta

can I also load .ser files from sd card in the similar way??

@ramyscoops

hi,
I want import .3ds object from sd card,to show it in my phone android, it should change the Class Max3DSParser.java??

@ramyscoops

thx :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment