Write a basic 3d model viewer

Assignment Help Basic Computer Science
Reference no: EM13851125

Problem statement: Write a basic 3D model viewer.

Requirements:

Write a 3D model viewer with the following features in Java:

• Uses the provided skeleton code as a foundation for your application. You can modify it as you wish.

• Can load model data from the model files with .dat extension provided on the Stream course page (this

functionality is provided in the skeleton code). You will need to decide on a data structure to store the data.

• Six buttons to increment and decrement the x, y, and z positions of the model in world space, using a translation transform, by a sensible value based on the canvas size (e.g. 10%). The origin must be located at the centre of the screen.

• Three sliders with a range of 0-360 each that adjust the model's rotation in the xy, xz, and yz planes in local model space.

• Two buttons to scale the model up or down by a factor of 1.1 and 0.9, respectively. The initial scale must be chosen based on the model extent such that the model fits nicely into the viewport.

• All transformations must be implemented using matrices.

• Three check boxes: one to toggle rendering the wireframe, one to toggle filling in the polygons' surface area, and one to toggle back-face culling.

• Cull faces that are facing away from the camera when rendering solid objects (i.e. not only the wireframe) and the user has enabled culling. The camera should be located at the origin and facing down the negative z-axis.

• Render the model using the Painter's algorithm. The rendered wireframe model should appear "solid" when the
respective check box is selected. The wireframe mesh should also be clearly visible, overlaid on the surface, when this option is enabled.


Attachment:- New WinRAR archive.rar

Reference no: EM13851125

Questions Cloud

Validating the operation of the dhcp server : Screenshots from your client device validating the operation of the DHCP server
Possible federal income tax effects of these transactions : What are the possible Federal income tax effects of these transactions - Comment on the availability of head-of-household filing in each of the following independent situations
Develop in accordance with the sdlc : A description of the current information systems that the company has to support the business. The description should include an overview of the following:
Conduct research on an artist from any movement : Conduct research on an artist from any movement. Choose one of their works. Analyze the image using the four visual cues: color, form, depth, and movement. Explain how the artist makes use of these four cues.
Write a basic 3d model viewer : Uses the provided skeleton code as a foundation for your application. You can modify it as you wish. Can load  model data from the model files with .dat extension provided on the Stream course page (this  functionality is provided in the skeleton cod..
Discuss and critique the two main planning methodologies : Discuss and critique the two main planning methodologies (Population and Institutional) that can be used in developing a health services plan.
Edward recognize income as a result of janets improvements : Discuss the probable justification for each of the following aspects of the tax law - Has the law in part (a) always been the rule and what is the justification, if any, for the current rule?
Report on the company including ratio analysis : You will run the Excel template and submit a 2-page report on the company that will cover the following: An overview of the company. Ratio analysis (Value Indicators worksheet). Valuation (both P/E and FCF worksheets)
Is the cyber criminal logistically and practically immune : It is not practical to consider extradition for such crimes. Given this dilemma, how do you see the enforcement and prosecution of cyber criminals being resolved in the future? Is the cyber criminal logistically and practically immune from prosecu..

Reviews

Write a Review

Basic Computer Science Questions & Answers

  Comma-delimited text file

This is based on a comma-delimited text file that has already been created containing a 3 digit ID # and a first and last name. The last part of the excercise is as follows.

  Determine the size and contents

Determine the size and contents of: e=1:-1:5;

  Pipelined machine versus the single cycle machine

What is the speedup of the pipelined machine versus the single cycle machine assuming there are no stalls?What is the speedup of the pipelined machine versus the single cycle machine if the pipeline stalls 1 cycle for 30% of the instructions?

  Create a new account for a new customer

You have been asked to write a program to organize accounts in a bank. Suppose all the accounts are stored in a data file called account.dat.

  Write a program perform using mars - assembly language

Write a program which will perform the following " using MARS - Assembly language" a. Read in a string from the user b

  How does viewing this material inform

How does viewing this material inform

  Technology someday eliminate need for antenna maintenance

What technology may someday eliminate this need for antenna maintenance? In your own words, briefly describe how this technology works.

  The device consists of three lights lined up in a row

A friend would like you to build an "electronic eye" for use as a fake security device. The device consists of three lights lined up in a row, controlled by the outputs Left, Middle, and Right, which, if asserted, indicate that a light should b..

  Quality utilizing the electronic health record

Final Paper will focus on a particular main theme or topic related to current and future requirements for the Electronic Health Record and its impact on health care delivery and society. Utilize your textbook for ideas and information as you defi..

  Computer the value of the given number

Prompt the user for a number and an exponent. Computer the value of the given number (the base) raised to the power of the exponent.

  Solve equations and show that no solution exists

Solve the following equations for x and y or show that no solution exists. Show your work (in particular, what division must you carry out to solve each case). (i) 5x + 23  6 mod 47

Free Assignment Quote

Assured A++ Grade

Get guaranteed satisfaction & time on delivery in every assignment order you paid with us! We ensure premium quality solution document along with free turntin report!

All rights reserved! Copyrights ©2019-2020 ExpertsMind IT Educational Pvt Ltd