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

Messages - hemant

#1
Support / Loading 3d model before blank screen appear.
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
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.
July 28, 2014, 07:23:33 AM
I had following type 3d mug. I want to change mug handle texture.



Please help me......
#4
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.