Author
Topic: Video Capture (Read 2664 times)

Ok now that the Game is developed it has to be posted to the market.Great !!! Wait .. now wouldnt it be interseting if I could capture the Video of the gameduring play.....it would be great for marketing right!!! but how...

Now I know it is quite possible as everytime a new Bitmap is created in onDrawFrameor to be more specific frame...

So what I want is to somehow save each frame in image formatand then later on compile all these images into a single video file

Something like :onDrawFrame(fb){fb.clear(RGBCOLOR);world.renderscene(fb);world.draw(fb);fb.display();world.savecurrentframeimageBMP(OUTPUTSTREAM);}

Can anybody tell how it can be made possible...Something like taking ScreenShots....

Now that I think of it this technique can also be applied for making animated movies.

Eg : In the game music ride 2 posted in Projects (JPCT) there is video of game being played in realtime .

You can obtain the current image from the FrameBuffer by using the getPixels()-methods. They return an int[]-array that you can convert into a Bitmap and save it as an image. This will be very slow and not even close to real time though.

Then either grab the images via HDMI connection with some capture device (i never tried this, but people are doing so it has to work) or grab the video directly on the device, if it's rooted and fast enough...my old Galaxy Note (the only rooted device that i own) can't really handle this.

I have made a truck model and the truck has four cylinders as tyres.Now i have used joint rotation to animate the tyres ..When I export the MD2(mikshaper3d) and load the animation (ie object.animate(ind,frame)The animation is very very creepy the tyres rotate as specified but after some time during the anim they shrink and then again expand . So I loaded the anim in milkshape MD2 viewer , there was a same problem there tooBut when I disable interpolation the anim runs fine (what is happening what's the problem)So how do i disable interpolation in JPCT (of the object)

I have made a truck model and the truck has four cylinders as tyres.Now i have used joint rotation to animate the tyres ..When I export the MD2(mikshaper3d) and load the animation (ie object.animate(ind,frame)The animation is very very creepy the tyres rotate as specified but after some time during the anim they shrink and then again expand . So I loaded the anim in milkshape MD2 viewer , there was a same problem there tooBut when I disable interpolation the anim runs fine (what is happening what's the problem)So how do i disable interpolation in JPCT (of the object)

I think that this question is more related to the interlation of keyframes. A linear interpolation on them can look strange if there aren't enough in between keyframes defined. So either add more keyframes to the animation or disable linear interpolation by using Object3D.getAnimationSequence().setInterpolationMethod(....);