Hi,
I have a query on displying 3D images using S3DView.java class provided by TI.
I call S3DView.java class and pass a stereographic image to it (Two images side by side)
But the end result which I am getting is not proper image having 3D effect.
Here is my code for reference
public class CowboidsActivity extends Activity {
private Bitmap bmp;
private Bitmap bmp1;
// private SurfaceHolder holder;
Bitmap scaled;
ImageView mImageView, mImageView1;
BitmapDrawable drawable;
private S3DView s3dView;
//
@Override
public void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(new StereoGLView(this));
setContentView(R.layout.main);
s3dView = new S3DView(CowboidsActivity.this, Layout.SIDE_BY_SIDE_LR, RenderMode.STEREO);
mImageView = (ImageView)findViewById(R.id.image1);
bmp = BitmapFactory.decodeResource(getResources(), R.drawable.stereo1);
mImageView.setImageBitmap(bmp);
}
public void onWindowFocusChanged(boolean hasFocus) {
super.onWindowFocusChanged(hasFocus);
if (hasFocus) {
S3DView.configureWindow(this, Layout.SIDE_BY_SIDE_LR, RenderMode.STEREO);
}
}
}
I have also used surfaceView for the same but there is no success.
Please provide some help to sort this out.