Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

App: Processing Language: Java Write an animation in which the camera rotates according to the user input. If the user presses Q, then the camera

App: Processing

Language: Java

image text in transcribed

Write an animation in which the camera rotates according to the user input. If the user presses "Q", then the camera rotates around a circle with a radius of 200px looking at the origin. Else if the user presses " A ", the camera rotates around itself not looking at the origin but to a point in infinity (or to a point far far away). The screen size and any other code is up to you. Please remember that 1. The default camera position is: camera(width/2.0, height/2.0, (height/2.0) /tan(PI60.0/360.0), width/2.0, height/2.0, 0, 0, 1, 0); 2. The camera parameters are: camera(camX, camY, camZ, lookX, lookY, lookZ, upX, up Y, upZ)

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Computer Aided Database Design

Authors: Antonio Albano, Valeria De Antonellis, A. Di Leva

1st Edition

0444877355, 978-0444877352

More Books

Students also viewed these Databases questions