www.jpct.net

jPCT-AE - a 3d engine for Android => Support => Topic started by: gaurav on September 02, 2014, 07:15:10 am

Title: Loading same obj Model in different Activity
Post by: gaurav 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
Title: Re: Loading same obj Model in different Activity
Post by: EgonOlsen on September 02, 2014, 09:14:24 am
JPCT-AE doesn't bind itself to an Activity. You should be able to reuse the World instance in the third Activity. You might habe to create an additional instance of FrameBuffer though.
Title: Re: Loading same obj Model in different Activity
Post by: gaurav 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
Title: Re: Loading same obj Model in different Activity
Post by: EgonOlsen on September 02, 2014, 11:19:01 am
Yes, of course. But jPCT-AE doesn't provide any means for this. You have to use the default methods that the Android SDK offers for this and apply the results to your objects.  jPCT-AE is not invasive. It doesn't force you into a specific way of structuring your app or making you use special input methods. It "just" does the rendering. Everything else is up to you.