what's different between 3d model transforming and world camera transforming?

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
public void onSurfaceCreated(GL10 gl, EGLConfig config) {
world = new World();
world.setAmbientLight(150, 150, 150);
TextureManager.getInstance().addTexture("tris3", new Texture(BitmapFactory.decodeResource(this.getResources(), R.drawable.tris3)));
snork = Loader.loadMD2(LoadAssets.loadf("tris3.md2"), scale);
snork.setTexture("tris3");
snork.strip();
snork.build();
world.addObject(snork);
}
public void onSurfaceChanged(GL10 gl, int width, int height) {
if (fb != null) {
fb = null;
}
this.width=width;
this.height=height;
fb = new FrameBuffer(gl,width, height);
}
onDrawFrame(GL10 gl) {
doAnim();
world.renderScene(fb);
world.draw(fb);
fb.display();
}
OnDrawFrame(GL10 gl) {
fb=new FrameBuffer(gl, this.getWidth(),this.getHeight());
doAnim();
world.renderScene(fb);
world.draw(fb);
fb.display();
}
onDrawFrame(GL10 gl){
fb=new FrameBuffer(gl, this.getWidth(),this.getHeight);
RGBColor transp = new RGBColor(?,?,?,?);
fb.clear(transparent);
world.renderScene(fb);
world.draw(fb);
fb.display();
}
Page created in 0.301 seconds with 12 queries.