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.


Topics - hemant

Pages: [1]
1
Support / Loading 3d model before blank screen appear.
« on: September 04, 2014, 06:15:54 am »
I am using your default code to load 3d model. I put progress bar when loading 3d model.

I face a problem when loading a 3d model.  My screen color black.

I want to change screen background color when loading 3d model.

/**
    * Loading 3d model task
    */
   class ModelLoadingTask extends AsyncTask<Void, Void, Void>
   {
      @Override
      protected void onPreExecute()
      {
         mProgressDialog = new ProgressDialog(ThreeDWorld.this);
         mProgressDialog.setMessage("Loading.. 3D model Please wait");
         mProgressDialog.show();
         mGLView = new GLSurfaceView(getApplication());
      }

      @Override
      protected Void doInBackground(Void... params)
      {
         mGLView.setEGLConfigChooser(new GLSurfaceView.EGLConfigChooser()
         {
            public EGLConfig chooseConfig(EGL10 egl, EGLDisplay display)
            {
               // Ensure that we get a 16bit framebuffer. Otherwise, we'll fall
               // back to Pixelflinger on some device (read: Samsung I7500)
               int[] attributes = new int[]
               { EGL10.EGL_DEPTH_SIZE, 16, EGL10.EGL_NONE };
               EGLConfig[] configs = new EGLConfig[1];
               int[] result = new int[1];
               egl.eglChooseConfig(display, attributes, configs, 1, result);
               return configs[0];
            }
         });
         mRenderer = new MyRenderer();
         mGLView.setRenderer(mRenderer);
      
         return null;
      }

      @Override
      protected void onPostExecute(Void result)
      {
         mllMain.addView(mGLView);
                       mProgressDialog.dismiss();
      }
   }

2
Support / Change texture starting position on 3d model
« on: August 01, 2014, 07:05:12 am »
I had load 3d mug with texture successfully but texture starting position is wrong.

How to manage texture position.
Please help me.

3
Support / I want to change 3d mug handle tetxure.
« on: July 28, 2014, 07:23:33 am »
I had following type 3d mug. I want to change mug handle texture.



Please help me......

4
Support / Change dynamically texture in jptc android
« on: July 23, 2014, 07:11:49 am »
I want to change dynamically texture on 3d model.

I have one bottle 3d object and i want to change dynamically bottle lable.

code:

// Create a texture out of the icon...:-)
Texture texture = new Texture(BitmapHelper
.rescale(BitmapHelper.convert(getResources()
.getDrawable(R.drawable.icon)), 64, 64));
TextureManager.getInstance().addTexture("texture", texture);



I am changing cocacola lable to custom dynamically. Is there any way to possible in android.

Please help me.

Pages: [1]