Author Topic: Loading same obj Model in different Activity  (Read 1848 times)

Offline gaurav

  • byte
  • *
  • Posts: 10
    • View Profile
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

Offline EgonOlsen

  • Administrator
  • quad
  • *****
  • Posts: 12295
    • View Profile
    • http://www.jpct.net
Re: Loading same obj Model in different Activity
« Reply #1 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.

Offline gaurav

  • byte
  • *
  • Posts: 10
    • View Profile
Re: Loading same obj Model in different Activity
« Reply #2 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

Offline EgonOlsen

  • Administrator
  • quad
  • *****
  • Posts: 12295
    • View Profile
    • http://www.jpct.net
Re: Loading same obj Model in different Activity
« Reply #3 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.