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

Contrast software restriction policies and applocker

From the e-Activity, compare and contrast Software Restriction Policies and AppLocker from an application control function. Suggest two (2) situations that would influence y

Review and compare a number of devices and operating systems

Device Hardware and OS Research In this assignment you will review and compare a number of devices and operating systems. This task will require you to undertake research.

What is the probability that at most of them are infected

Suppose that of 100 computers checked for viruses 30 where infected and 70 where not. If we select 10 computers at random what is the probability that at most 4 of them are

The sales office and the printer in the business office

A table identifying each subnet, the subnet address, subnet mask in dotted decimal, highest useable address, lowest useable address, and broadcast address.The IP address, subn

Analyze appropriate software application to address solution

Analyze appropriate software application(s) to address solutions within a specific discipline. You currently are employed by a fundraising company. You are planning a huge ev

Non-traditional channels of monetary policy

What do you think about the non-traditional channels of monetary policy? Could you provide an example of a variable or set of variables that could show non-traditional chann

Function that accepts one input parameter

Using Pseudocode, create your own function that accepts one input parameter and returns a float number. You decide the theme. You should provide the pseudocode and an example

Number of deployment platforms

1. Identify and describe how the following events would change and SDP: a. The software design tool is not acquired as planned. d. Only half the number of deployment platforms

Reviews

Write a Review

 
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