Main Menu
Menu

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.

Show posts Menu

Topics - gaurav

#1
Support / Loading same obj Model in different Activity
September 02, 2014, 07:15:10 AM
i have 3 Activity . say a ,b, c . i have loaded obj model in "a" Activity then when i click on button it open "b" Activity and take image and open c Activity . In "c" Activity i want display same model which i loaded in "A" Activity. is any way so that i can save the time   and use same loaded model instead of loading again
#2
Support / loading large OBJ File
August 27, 2014, 07:43:15 AM
i am trying to load large obj file (12mb) but app is crashing . but same code is working to load obj file having 1 mb

My code is

File sdRoot = Environment.getExternalStorageDirectory();
            File file = new File(sdRoot+ "/WatchApp/12345.obj");
            InputStream inputStream = null;
            try {
               inputStream = new FileInputStream(file);
            } catch (FileNotFoundException e1) {
               // TODO Auto-generated catch block
               e1.printStackTrace();
            }
            cube = Object3D.mergeAll(Loader.loadOBJ(inputStream, null, 5f));

cube.build();

            world.addObject(cube);