99爱在线视频这里只有精品_窝窝午夜看片成人精品_日韩精品久久久毛片一区二区_亚洲一区二区久久

合肥生活安徽新聞合肥交通合肥房產生活服務合肥教育合肥招聘合肥旅游文化藝術合肥美食合肥地圖合肥社保合肥醫院企業服務合肥法律

代做CSE 470、djava/Python 編程

時間:2024-04-14  來源:合肥網hfw.cc  作者:hfw.cc 我要糾錯



CSE **0 Homework #3: Lights, Camera, Action! Instructor: D. Hansford, PhD
Big Picture: You will develop a WebGL application that displays two surfaces of revolution. The surfaces will be rendered with the Phong illumination model, using exact vertex normals, and shading will be done in the fragment shader. The application will allow for different lighting, and material, and viewing effects. Details of these program features are described below.
Concepts:
• Build parametric surfaces and surface normals.
• Build a triangulation data structure.
• Set-up parameters for the Phong illumination model.
• Set up Phong shading in the fragment shader.
• Draw multiple objects.
• Work with the LookAt and perspective functions.
• Gain more experience with animation by implementing a moving light.
• Implement interaction and event handlers.
Details:
Surface of Revolution (SOR)
Create two SORs, a cylinder and an interesting shape of your choosing. Your design cannot be a cone or sphere, and it must have some curviness. (Do not use the sphere from the demo programs.)
Let the SOR be s(t, theta) over the domain theta in [0, 2*Pi] and t in [a,b], where a and b are real numbers. The SOR is defined by a generating curve (generatrix), g(t) = [f(t), t, 0], which is a curve in the xy-plane. (Tip: Center the curve about the x-axis.) The first coordinate, f(t), is a function. The surface is defined as
s(t, theta) = R(theta) g(t), where R is a rotation about the y-axis. Example: For the cylinder, you could choose f(t) = 1.0, a = -1, and b = 1.
You will discretize the domain, evaluate the SOR (create 3D points), and build a triangulation data structure. When writing the surface evaluation function, make the number of evaluations in the t- and theta-directions to be input variables to make testing easy.
In addition to creating 3D points on the SOR, you will compute exact normals at the points. (See Lighting and Shading ppt, slide 37.)
Create a triangulation data structure using an “index” array that points to the vertex and normal arrays. Drawing the triangulation will be done using drawElements. (See cube.zip and cubev program for an implementation example. See Week 5, Geometry Part 2 notes for a description of the data structure. See “Tips on using drawElements” in Week 4.)
For each SOR, create a minmax box. This will be helpful for determining LookAt parameters, perspective parameters, and a good light position. Print these minmax boxes to the console.
 
Tip: Get this working for the cylinder first.
Two options for organizing the data: 1) Put all the data for the cylinder and custom surface into one set of data structures. At the time of drawing, you can use an offset pointer to access the desired block of data. OR 2) Re-load buffers when the user chooses a new SOR.
Render the surface with the Phong illumination model with fragment shading.
The surface construction code must be in a file, called lastName_geometry.js, which is separate from the initialization and event handlers.
Materials
 • • • •
Light
Create two distinct materials.
Create a user interface to toggle between materials.
Give these materials names to characterize them, not “material 1".
The material names should appear with the user interface in the HTML page.
Set the light color to white.
Set the initial position of the light to be at the eye.
Program two options for the light: stationary at the eye and a rotating about the SOR.
• • •
Modeling and Viewing
• Use the LookAt function from MV.js.
• Use the perspective function from MV.js. Initialize the aspect ratio to be one and the field of
view (fov) to be 60 degrees. Determine reasonable near and far parameters.
• A slider will allow the user to adjust the fov.
• You must use the supplied code that rotates the object via the mouse. (This modifies the
LookAt parameters.) User interaction
  All controls (such as buttons and sliders) must be accompanied by descriptive text. Organize the controls into sections in the HTML page based on functionality and add text that identifies these sections.
The SOR can be rotated via click and mouse movements.
A control allows selection between the two SORs.
A control allows the user to change the material properties between two different settings. A slider allows the shininess factor to change from 1 to 1000. (See rotatingSquare3 program for a slider example.)
A control allows the user to change the fov between 10 and 100 degrees. (You can choose the increment.)
Print to
Each value printed must be accompanied by text that describes the value.
• •
• • • •

the console
 
• The minmax box dimensions for the two SORs.
• The initial Eye, At, Up.
• The initial perspective arguments.
• The initial light position.
General Guidelines
• The number of evaluations for your SORs should produce smooth surfaces and the default light position should be at the eye. The cylinder should be the default SOR.
• Next to the canvas, display your name, date, program description, and resources you used.
• Create (at least) three files: lastName_hw3.html, lastName_hw3.js, lastName_geometry.js.
• Add your name and date to the top of each file.
• Turn in your assignment to Canvas.
Extra Credit
If you do extra credit, label a separate section in the html page with the controls for this extra functionality. Let us know what you did!
You could display surface normals. Let us know if you created a second vertex shader for this. You could add more lights.
You could create a light object with an emissive color added to the Phong illumination model. You could animate your SOR – create a dance or apply morphing via linear maps.
 請加QQ:99515681  郵箱:99515681@qq.com   WX:codinghelp















 

掃一掃在手機打開當前頁
  • 上一篇:越南旅游景點簽證好辦嗎(越南旅游簽證的有效期多久)
  • 下一篇:代寫 2XC3、代做 Python 設計編程
  • 無相關信息
    合肥生活資訊

    合肥圖文信息
    急尋熱仿真分析?代做熱仿真服務+熱設計優化
    急尋熱仿真分析?代做熱仿真服務+熱設計優化
    出評 開團工具
    出評 開團工具
    挖掘機濾芯提升發動機性能
    挖掘機濾芯提升發動機性能
    海信羅馬假日洗衣機亮相AWE  復古美學與現代科技完美結合
    海信羅馬假日洗衣機亮相AWE 復古美學與現代
    合肥機場巴士4號線
    合肥機場巴士4號線
    合肥機場巴士3號線
    合肥機場巴士3號線
    合肥機場巴士2號線
    合肥機場巴士2號線
    合肥機場巴士1號線
    合肥機場巴士1號線
  • 短信驗證碼 豆包 幣安下載 AI生圖 目錄網

    關于我們 | 打賞支持 | 廣告服務 | 聯系我們 | 網站地圖 | 免責聲明 | 幫助中心 | 友情鏈接 |

    Copyright © 2025 hfw.cc Inc. All Rights Reserved. 合肥網 版權所有
    ICP備06013414號-3 公安備 42010502001045

    99爱在线视频这里只有精品_窝窝午夜看片成人精品_日韩精品久久久毛片一区二区_亚洲一区二区久久

          麻豆国产精品va在线观看不卡 | 99精品国产一区二区青青牛奶| 欧美亚洲免费高清在线观看| 亚洲高清在线观看一区| 欧美国产欧美亚州国产日韩mv天天看完整| 亚洲欧洲综合| 欧美日韩网站| 亚洲欧美日韩一区二区在线| 国产一区二区三区成人欧美日韩在线观看 | 国产欧美日韩激情| 久久九九国产精品怡红院| 在线成人黄色| 国产精品99免费看 | 老司机精品视频网站| 亚洲黄色成人| 欧美视频福利| 久久久www免费人成黑人精品| 亚洲第一天堂av| 欧美视频国产精品| 久久九九免费| 久久中文字幕一区| 国产精品爽爽ⅴa在线观看| 国产日产精品一区二区三区四区的观看方式 | 亚洲欧美日韩国产综合| 亚洲精品美女免费| 久久精品99国产精品| 亚洲网址在线| 久久一区免费| 亚洲午夜精品一区二区| 国内精品视频一区| 欧美母乳在线| 久久久国产亚洲精品| 日韩亚洲在线| 精品不卡在线| 国产精品久久久久秋霞鲁丝| 裸体丰满少妇做受久久99精品| 一区二区国产日产| 在线观看的日韩av| 国产精品美女久久久久久2018| 久久久久综合网| aa级大片欧美三级| 尤物在线精品| 国产精品永久| 欧美午夜激情视频| 欧美激情乱人伦| 久久国产手机看片| 国产精品99久久久久久白浆小说 | 欧美日韩在线免费| 久久综合激情| 久久精品国产999大香线蕉| 亚洲小视频在线观看| 亚洲人成网站精品片在线观看| 国产亚洲激情在线| 国产伦精品一区二区三区高清| 欧美日韩成人在线播放| 麻豆av一区二区三区| 久久国产视频网站| 欧美国产日韩精品| 久久综合色婷婷| 久久人人爽人人爽| 亚洲欧美视频在线| 日韩视频中文| 一区二区三区四区国产| 亚洲国产精品精华液2区45| 激情自拍一区| 国产日韩欧美制服另类| 国产乱理伦片在线观看夜一区| 欧美日韩在线播放三区四区| 欧美日韩999| 欧美精品情趣视频| 欧美激情日韩| 欧美大片在线看免费观看| 欧美jizz19性欧美| 免费久久久一本精品久久区| 玖玖玖国产精品| 久久婷婷国产综合精品青草| 久久久九九九九| 久久久一区二区| 久久精品导航| 久久免费高清| 久久夜色精品国产亚洲aⅴ| 女女同性精品视频| 欧美激情亚洲一区| 欧美日韩国产综合网| 欧美日韩午夜| 国产精品视频福利| 国产一区二区福利| 1000部国产精品成人观看| 在线日韩精品视频| 亚洲免费观看高清完整版在线观看熊 | 欧美日韩一区二区国产| 欧美视频一区二区三区在线观看 | 欧美视频网站| 国产日产亚洲精品系列| 影视先锋久久| 99热在这里有精品免费| 一区二区成人精品| 欧美一区二区三区四区在线| 久久久99免费视频| 欧美不卡视频一区发布| 欧美性感一类影片在线播放| 国产欧美日韩不卡免费| 在线成人中文字幕| 一区二区日韩伦理片| 欧美一区二区国产| 欧美成人黄色小视频| 国产精品国产三级国产aⅴ入口| 国产日韩在线视频| 亚洲日韩欧美视频一区| 亚洲欧美乱综合| 免费在线欧美视频| 一区二区欧美日韩视频| 亚洲美女福利视频网站| 亚洲欧美制服中文字幕| 欧美在线播放一区二区| 久久综合99re88久久爱| 欧美精品日韩一本| 欧美色大人视频| 国产精品普通话对白| 国产一区二区无遮挡| 亚洲区一区二| 性感少妇一区| 欧美日韩国产在线看| 欧美一区二区三区免费观看视频| 夜夜嗨av色综合久久久综合网 | 狠狠做深爱婷婷久久综合一区 | 亚洲免费网站| 你懂的亚洲视频| 国产日韩精品一区二区三区| 91久久一区二区| 久久精品日韩| 国产精品天美传媒入口| 亚洲裸体在线观看| 久久久久久久一区二区三区| 国产精品av久久久久久麻豆网| 久久aⅴ乱码一区二区三区| 欧美日韩精品综合| 亚洲电影免费观看高清完整版在线观看| 中文一区在线| 欧美日韩国产综合一区二区| 亚洲电影自拍| 久久久91精品国产一区二区三区| 国产精品久久久久久久久搜平片 | 国产啪精品视频| 亚洲精品一区二区三区四区高清| 久久女同互慰一区二区三区| 国模大胆一区二区三区| 午夜电影亚洲| 国产欧美亚洲视频| 性久久久久久久久久久久| 国产精品久久波多野结衣| 一本色道**综合亚洲精品蜜桃冫| 欧美另类videos死尸| 亚洲经典在线| 免费看av成人| 91久久精品国产91性色| 暖暖成人免费视频| 亚洲激情在线激情| 欧美二区不卡| 亚洲一区免费视频| 国产亚洲福利一区| 欧美午夜精品久久久| 午夜久久美女| 亚洲日本aⅴ片在线观看香蕉| 欧美激情亚洲视频| 99riav久久精品riav| 国产精品免费区二区三区观看| 亚洲一区二区三区在线视频| 欧美日韩中文字幕在线视频| 午夜久久黄色| 亚洲欧洲在线看| 国产欧美日韩综合一区在线播放| 欧美日韩91| 国产精品久久久久9999| 在线视频一区二区| 国产热re99久久6国产精品| 欧美在线免费观看视频| 精品999在线观看| 欧美成人资源网| 亚洲视频精选在线| 国产农村妇女精品一区二区| 久久精品99国产精品酒店日本| 伊人一区二区三区久久精品| 欧美精品一区二区精品网| 亚洲愉拍自拍另类高清精品| 国产热re99久久6国产精品| 老司机精品视频一区二区三区| 亚洲人成高清| 国产精品夜夜夜一区二区三区尤| 久久九九全国免费精品观看| 91久久国产综合久久蜜月精品 | 欧美有码在线观看视频| 依依成人综合视频| 国产精品初高中精品久久| 久久精品亚洲精品| 亚洲精品专区| 激情视频一区| 国产精品a级| 暖暖成人免费视频| 午夜精品久久久久久99热|