report作业 | project – CS 453/553 — Spring Quarter 2019

CS 453/553 — Spring Quarter 2019

report作业 | project – 这个题目属于一个report的代写任务, 是比较有代表性的report等代写方向, 这个项目是project代写的代写题目

report代写 代做report

project #1: Simple Grayscale Point Cloud

40 Points
Due: April 8

This page was last updated: April 2, 2019

The Scenario You have run a temperature simulation of a 3D room that has 4 heat sources. from the simulation at each node in a 3D grid. 5ou will be creating several visualizations (in Projects 2, 3, 4, andYou are given the temperature data

  1. 5o understand the distribution of temperatures within the 3D room. Requirements:
  1. Put this project number and your name in the title bar.
  2. The coordinate range of the data volume is: -1.0 x,y,z 1. The number of data points you place within this region will be up to you.
  3. For the temperature range of the data, use: 0.0 t 100. The temperatures defined by the equation actually go higher than 100 degrees in places, but don’t worryabout it. After computing t, you can just clamp it to 100.:

const float TEMPMIN = { 0.f };const float TEMPMAX = { 100.f }; (^)

.. .if( t > TEMPMAX ) (^) t = TEMPMAX;

  1. Display the temperature data as a point cloud. The number of data points to use is up to you: #define NX #define NY ?????? (^) #define NZ ???
  2. Color the dot using grayscale — a low intensity for a low temperature and a high intensity for a hightemperature. Don’t go all the way to black — you won’t be able to see your lowest temperature points. const float GRAYMIN = { 0.20f };const float GRAYMAX = { 1.00f }; (^) .. .if( t > TEMPMAX ) (^) (^) float gray = GRAYMIN + ( GRAYMAX – GRAYMIN ) * ( t – TEMPMIN ) / ( TEMPMAX – TEMPMIN );t = TEMPMAX; (^) glColor3f( gray, gray, gray ); // r = g = b gives gray Getting the Temperature Data I am going to let you “cheat” on the scalar data. Instead of reading it from a file as would normally be done,compute a scalar temperature value at each node point in each plane according according to a function included in your sample.cpp code called will pass back the temperature there.Temperature( x, y, z ); Pass in the x, y, z of where your node is located and it Setting up the Data in your Program If you are comfortable with structures, a 3D array of structures is a good way to store and access the data for thisproject: struct node{ float x, y, z; // location float t; // temperature (^) (^) float rad; // radius (to be used later)float rgb[3]; // the assigned color (to be used later) float grad; // total gradient (to be used later)}; (^) struct node Nodes[NX][NY][NZ]; If you are not comfortable with C structures, a 3D array for X, a 3D array for Y, etc. will work too. The InitGraphics( ) function is a good place to set all these values. Fill the (x,yin the 3D array, and use those (x,y,z) to compute a temperature. ,z) components of each structure Turn-in Turn-in a PDF report with a couple of images showing the intensity distribution in your point cloud. Grading: Item Points Correct points display 20
  • Correct grayscale distribution
  • Potential Total