Answered step by step
Verified Expert Solution
Question
1 Approved Answer
need detailed code and explanation Instructions For this project, you are expected to build a 2D based animation, which is often used in video gaming.
need detailed code and explanation
Instructions For this project, you are expected to build a 2D based animation, which is often used in video gaming. Below is a captured frame showing what you need to achieve. The basic goal is to let you load different images, and synthesize a new image by putting different images together, and display the final image sequentially to screen. Project Description: This animation is about a dinosaur chasing a girl in the forest. To achieve this effect, there are three basic objects involved: a girl, a dinosaur, and a moving background. The relative positions of the dinosaur and the girl can be flexible, as long as the dinosaur is to the left of the girl, which makes sense. You can place the girl in the middle of the image. In practice, you do not need to change the positions of the girl and the dinosaur once the program starts. What you need to do is to load different images (about different poses of the girl and dinosaur) and copy them into the final image sequentially, meanwhile copy different parts of the background image using slide window mechanism to generate the animation effects. All the images involved for this animation have been provided in the attachment. Project Goal: - Get familiar with OpenCV by practicing different functions, including imread( ), imshow(), create( ), waitKey(), copyTo( ), Range(). - Understand the process of 2D based animation. - Learn the role of using "mask" in image processing. - Practice implementing user interactivity by programming on mouse/keyboard event Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started