” 辅导CS4102编程、 写作CSCS4102 Computer Graphics Academic Year 2020/21, Semester 2, Practical 2General information: For your benefit please take note of the following information: Assignment title: 3D Rendering. Submission deadline: 9pm (2100) on the 23rd April 2021. Assignment weight: 60% of the coursework. Lateness penalty: Scheme B, 1 mark per 8-hour period, or part thereof. Required submission content: a Single file report (in PDF format), a standalone application, andthe full source code. Mark descriptors: httpss://info.cs.st-andrews.ac.uk/student-handbook/learning-teaching/feedback.html Good academic practice: httpss://www.st-andrews.ac.uk/students/rules/academicpractice/Aims: The aim of this practical is to help you understand the key principles behind various techniquesfrequently used for the rendering of 3D objects, and give you hands-on experience with their implementationand manipulation.Basic specification (up to 16 marks): Your task involves the creation of an application whichfacilitates interactive modelling of faces in 3D.All input data you need can be found zipped in the archive CS4102 2021 P2 data.zip. The archivecontains files named sh xxx.csv and tx xxx.csv (where xxx stands for a zero-padded integer between0 and 199), sh EV.csv, tx EV.csv, and mesh.csv. Each line in mesh.csv corresponds to a triangle in amesh used to represent a face; specifically, each line contains three integer indices. These index the 3Dcoordinates and colours of face mesh vertices in respectively sh xxx.csv and tx xxx.csv.Your application should start by drawing a triangle in the main window. Each of the corners of thistriangle correspond to a rendered face. The n-th (of 3) of these will have the 3D coordinates of itsvertices computed by adding the coordinates in sh 000.csv (the average face shape) summed with thecoordinate offsets in sh 00n.csv multiplied by the n-th weight in sh EV.csv. The corresponding coloursare similarly computed by adding the colours in tx 000.csv (the average face colour) summed with thecolour offsets in tx 00n.csv multiplied by the n-th weight in tx EV.csv.The interactive design performed by the user is simple: a click within the screen area communicateshow similar (close) the synthetic face should be from the three reference faces. The synthetic face isgenerated by interpolating 3D shape and colour between the three reference faces, and is displayed onthe side (or in a different window if more convenient) using Painters algorithm. You can use flat shadingand orthographic projection, and assume that faces are perfectly matte with a unity diffuse coefficientand that there is a single directional light source aligned with the viewing direction. You are free to useany library you wish for basic Mathematical operations but you must implement all relevant computergraphics techniques from scratch.1Advanced specification (up to 18 marks): For additional marks, there are several extensions whichyou may wish to consider (you are also free to come up with your own). For example, you may extendyour application to allow the user to interpolate between possibly all 199 possible reference faces byreplacing one or more of the initial reference faces. Note that the contribution of any replaced referencefaces should not be lost but rather kept Unchanged while other contributions are added. Consider allowingthe user to preview the possible reference faces before making the choice.Highly advanced specification (up to 20 marks): Assuming that you have successfully met theadvanced specification requirements, you May wish to add further interactive elements such as the abilityto rotate faces, change the direction or the number of light sources, the shading model, etc.Hints: The following suggestions should help you prevent common mistakes, and save time and effort: Make sure that your submission is complete i.e. that the application can be executed on differentmachines without the need for Tinkering by the marker. It is not reasonable to expect the markerto debug and fix your code (e.g. hard-coded paths). In your report, focus on the quality of content. Do not be overly verbose well formed, succinctexplanations are easier to read and more convincing than convoluted and excessively long verbiage.Aim for up to two pages of text but feel Free to include images or screenshots to complement thiscontent and illustrate your work better. If you are interested in learning more about the model use here, you may find it useful to have a lookat the following paper: httpss://gravis.dmi.unibas.ch/publications/Sigg99/morphmod2.pdf.Ognjen Arandjelovic (Oggie)请加QQ:99515681 或邮箱:99515681@qq.com WX:codehelp
“
添加老师微信回复‘’官网 辅导‘’获取专业老师帮助,或点击联系老师1对1在线指导。