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 - gaurav

Pages: [1]
1
Support / Re: Loading same obj Model in different Activity
« on: September 02, 2014, 09:20:45 am »
k will give a try and will let u knw ..

is it possible to apply pinch zoom to obj model

2
Support / Loading same obj Model in different Activity
« on: 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

3
Support / Re: loading large OBJ File
« on: August 28, 2014, 03:57:10 am »
I tired using eclipse plug-in but it requires folder name, i am storing obj file in sd card
Just copy the file from the plugin's folder to your sd-card. I fail to see the problem here... ???


Ok will try today,  i only thought its nt possible coz i am downloading obj file from my server in runtime
Thank for help will try and let you know how it goes

4
Support / Re: loading large OBJ File
« on: August 27, 2014, 04:10:13 pm »
Still i am not getting how to use  serialized. I knw i am asking too much any sample code is present

5
Support / Re: loading large OBJ File
« on: August 27, 2014, 03:46:53 pm »
I tired using eclipse plug-in but it requires folder name, i am storing obj file in sd card

6
Support / Re: loading large OBJ File
« on: August 27, 2014, 02:18:34 pm »
android:largeHeap="true" is  working , perv i have puted in wrong place .
for 12 mb obj file it took ard 3 min and 2048*2048 texture 1 min so overall it took 4 min to load that model.is it right behaviour

Thanks For help
 one more qus can i apply pinch zoom for that obj model ?

7
Support / Re: loading large OBJ File
« on: August 27, 2014, 10:55:56 am »
i am using gt-i9300(s3) ,running 4.4.4 even i tested on moto G (4.4.4)  ..any tut for using serialized objects

8
Support / Re: loading large OBJ File
« on: August 27, 2014, 09:38:47 am »
am i doing wrong to load? even android:largeHeap="true" giving same result ..any way avoid this
            

9
Support / Re: loading large OBJ File
« on: August 27, 2014, 09:17:58 am »
Logcat :
    08-27 12:44:59.225: I/jPCT-AE(3387): OpenGL renderer initialized (using 2/8 texture stages)
08-27 12:44:59.230: I/jPCT-AE(3387): Adding Lightsource: 0
08-27 12:44:59.235: I/jPCT-AE(3387): Loading file from InputStream
08-27 12:44:59.530: I/Timeline(3387): Timeline: Activity_idle id: android.os.BinderProxy@41e95420 time:16428502
08-27 12:45:00.210: I/dalvikvm-heap(3387): Forcing collection of SoftReferences for 25022388-byte allocation
08-27 12:45:00.225: E/dalvikvm-heap(3387): Out of memory on a 25022388-byte allocation.
08-27 12:45:00.225: I/dalvikvm(3387): "GLThread 7412" prio=5 tid=12 RUNNABLE
08-27 12:45:00.225: I/dalvikvm(3387):   | group="main" sCount=0 dsCount=0 obj=0x42347a10 self=0x5e31c960
08-27 12:45:00.225: I/dalvikvm(3387):   | sysTid=4091 nice=0 sched=0/0 cgrp=apps handle=1576216776
08-27 12:45:00.225: I/dalvikvm(3387):   | state=R schedstat=( 906733878 74624665 440 ) utm=73 stm=17 core=1
08-27 12:45:00.225: I/dalvikvm(3387):   at java.lang.String.<init>(String.java:~422)
08-27 12:45:00.225: I/dalvikvm(3387):   at java.lang.AbstractStringBuilder.toString(AbstractStringBuilder.java:642)
08-27 12:45:00.225: I/dalvikvm(3387):   at java.lang.StringBuilder.toString(StringBuilder.java:663)
08-27 12:45:00.230: I/dalvikvm(3387):   at com.threed.jpct.Loader.loadBinaryFile(Loader.java:1188)
08-27 12:45:00.230: I/dalvikvm(3387):   at com.threed.jpct.Loader.loadTextFile(Loader.java:78)
08-27 12:45:00.230: I/dalvikvm(3387):   at com.threed.jpct.Loader.loadOBJ(Loader.java:331)
08-27 12:45:00.230: I/dalvikvm(3387):   at com.threed.jpct.Loader.loadOBJ(Loader.java:229)
08-27 12:45:00.230: I/dalvikvm(3387):   at com.emgeesons.watchapp.Model$MyRenderer.onSurfaceChanged(Model.java:431)
08-27 12:45:00.230: I/dalvikvm(3387):   at android.opengl.GLSurfaceView$GLThread.guardedRun(GLSurfaceView.java:1514)
08-27 12:45:00.230: I/dalvikvm(3387):   at android.opengl.GLSurfaceView$GLThread.run(GLSurfaceView.java:1242)
08-27 12:45:00.230: I/jPCT-AE(3387): [ 1409123700235 ] - ERROR: Couldn't read file from InputStream
08-27 12:45:00.240: W/dalvikvm(3387): threadid=12: thread exiting with uncaught exception (group=0x41bbfce0)
08-27 12:45:00.240: E/AndroidRuntime(3387): FATAL EXCEPTION: GLThread 7412
08-27 12:45:00.240: E/AndroidRuntime(3387): Process: com.emgeesons.watchapp, PID: 3387
08-27 12:45:00.240: E/AndroidRuntime(3387): java.lang.RuntimeException: [ 1409123700235 ] - ERROR: Couldn't read file from InputStream
08-27 12:45:00.240: E/AndroidRuntime(3387):    at com.threed.jpct.Logger.log(Logger.java:193)
08-27 12:45:00.240: E/AndroidRuntime(3387):    at com.threed.jpct.Loader.loadBinaryFile(Loader.java:1192)
08-27 12:45:00.240: E/AndroidRuntime(3387):    at com.threed.jpct.Loader.loadTextFile(Loader.java:78)
08-27 12:45:00.240: E/AndroidRuntime(3387):    at com.threed.jpct.Loader.loadOBJ(Loader.java:331)
08-27 12:45:00.240: E/AndroidRuntime(3387):    at com.threed.jpct.Loader.loadOBJ(Loader.java:229)


and it crash on this line
cube = Object3D.mergeAll(Loader.loadOBJ(inputStream, null, 5f));

10
Support / loading large OBJ File
« on: 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);

Pages: [1]