Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Building rajawali.jar / Loading MD2 from sdcard #30

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

Building rajawali.jar / Loading MD2 from sdcard #30

anzarzulfiqar opened this issue May 22, 2012 · 11 comments

Comments

@anzarzulfiqar
Copy link

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
Copy link
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
Copy link

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
Copy link
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");

@anzarzulfiqar
Copy link
Author

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
Copy link
Member

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

@anzarzulfiqar
Copy link
Author

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
Copy link

ashunkhs commented Jun 6, 2012

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
Copy link
Member

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

@amolgupta
Copy link

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

@ramyscoops
Copy link

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

@ramyscoops
Copy link

thx :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants