日韩精品一区二区三区高清_久久国产热这里只有精品8_天天做爽夜夜做爽_一本岛在免费一二三区

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

代做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 設計編程
  • 無相關信息
    合肥生活資訊

    合肥圖文信息
    2025年10月份更新拼多多改銷助手小象助手多多出評軟件
    2025年10月份更新拼多多改銷助手小象助手多
    有限元分析 CAE仿真分析服務-企業/產品研發/客戶要求/設計優化
    有限元分析 CAE仿真分析服務-企業/產品研發
    急尋熱仿真分析?代做熱仿真服務+熱設計優化
    急尋熱仿真分析?代做熱仿真服務+熱設計優化
    出評 開團工具
    出評 開團工具
    挖掘機濾芯提升發動機性能
    挖掘機濾芯提升發動機性能
    海信羅馬假日洗衣機亮相AWE  復古美學與現代科技完美結合
    海信羅馬假日洗衣機亮相AWE 復古美學與現代
    合肥機場巴士4號線
    合肥機場巴士4號線
    合肥機場巴士3號線
    合肥機場巴士3號線
  • 短信驗證碼 trae 豆包網頁版入口 目錄網 排行網

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

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

    日韩精品一区二区三区高清_久久国产热这里只有精品8_天天做爽夜夜做爽_一本岛在免费一二三区

      <em id="rw4ev"></em>

        <tr id="rw4ev"></tr>

        <nav id="rw4ev"></nav>
        <strike id="rw4ev"><pre id="rw4ev"></pre></strike>
        欧美色偷偷大香| 欧美日韩精品二区第二页| 亚洲破处大片| 国产毛片精品国产一区二区三区| 欧美二区在线播放| 新片速递亚洲合集欧美合集| 亚洲激情视频| 狠狠综合久久av一区二区小说| 国产精品亚洲成人| 亚洲与欧洲av电影| 久久理论片午夜琪琪电影网| 亚洲欧美视频在线观看| 国产亚洲精品成人av久久ww| 欧美国产精品va在线观看| 久久视频在线视频| 在线精品视频在线观看高清| 久久综合国产精品台湾中文娱乐网| 亚洲图片激情小说| 一区二区三区精品国产| 亚洲欧美在线看| 欧美有码在线观看视频| 在线观看国产精品淫| 亚洲视频在线观看三级| 美女啪啪无遮挡免费久久网站| 久久精品一区蜜桃臀影院| 老鸭窝91久久精品色噜噜导演| 欧美三级韩国三级日本三斤| 亚洲精品国精品久久99热一| 欧美在线播放一区二区| 久久婷婷国产综合尤物精品| 久久精品综合| 国产精品永久在线| 欧美人与性动交a欧美精品| 亚洲一区二区三区四区中文| 欧美视频专区一二在线观看| 一区二区精品国产| 亚洲自拍另类| 亚洲视频综合| 亚洲精品久久久久久久久久久久久| 1000精品久久久久久久久| 久久久久久久综合| 欧美视频手机在线| 欧美一级在线视频| 国产三级精品在线不卡| 久热综合在线亚洲精品| 久久人人97超碰精品888| 午夜性色一区二区三区免费视频| 国产一区二区三区在线观看网站| 国产精品美女一区二区在线观看| 国产精品视频1区| 玖玖综合伊人| 中文av字幕一区| 欧美h视频在线| 久久精品一区二区国产| 欧美午夜美女看片| 亚洲网站在线观看| 欧美日韩喷水| 亚洲精品国产无天堂网2021| 国产精品久久久久毛片软件| 1769国内精品视频在线播放| 国产欧美视频一区二区| 欧美一激情一区二区三区| 国产一区日韩一区| 国产日韩欧美日韩| 国产欧美日本在线| 国产一区二区精品久久99| 欧美在线免费视屏| 久久久久**毛片大全| 午夜精品免费视频| 亚洲电影免费在线观看| 好看的亚洲午夜视频在线| 欧美日韩成人在线视频| 国产欧美在线观看一区| 在线成人黄色| 一本一本久久a久久精品综合麻豆| 欧美日韩免费区域视频在线观看| 怡红院精品视频在线观看极品| 久久精品99无色码中文字幕| 一区二区精品| 国产亚洲欧洲| 午夜精品久久99蜜桃的功能介绍| 亚洲欧美国产视频| 亚洲精品日韩在线| 亚洲免费在线观看视频| 老司机午夜免费精品视频| 国产精品每日更新| 亚洲蜜桃精久久久久久久| 国产一区二区三区不卡在线观看| 欧美日韩中字| 欧美日韩国产成人在线观看| 亚洲午夜精品久久久久久app| 亚洲欧美在线x视频| 欧美日韩精品在线观看| 欧美日韩亚洲一区二区| 欧美激情第五页| 日韩视频免费观看| 午夜精品久久久久影视| 欧美成人性生活| 麻豆av一区二区三区久久| 国产一区二区三区丝袜| 国产精品一区视频| 99精品黄色片免费大全| 国产日韩精品在线观看| 欧美日本一道本在线视频| 欧美午夜精品久久久久久超碰| 国产亚洲午夜高清国产拍精品| 国产精品亚洲欧美| 久久久xxx| 亚洲激情影视| 美女视频网站黄色亚洲| 亚洲免费高清视频| 国产精品xxx在线观看www| 中文精品在线| 国产精品久久久久久久午夜片| 久久久999成人| 欧美精品 日韩| 亚洲男女毛片无遮挡| 亚洲九九爱视频| 99在线精品视频在线观看| 国产精品日日做人人爱| 久久久国产精品亚洲一区| 亚洲午夜在线| 亚洲高清不卡一区| 噜噜噜噜噜久久久久久91| 国产精品毛片在线看| 亚洲精品久久久久久下一站| 欧美国产一区视频在线观看| 国产精品大片wwwwww| 一本大道av伊人久久综合| 国产欧美一区在线| 在线成人激情视频| 国产精品v亚洲精品v日韩精品| 欧美日韩亚洲一区二区三区在线观看| 亚洲免费观看高清完整版在线观看| 国产日韩视频一区二区三区| 狠狠色狠狠色综合日日91app| 欧美激情片在线观看| 欧美日韩另类字幕中文| 国产精品女人久久久久久| 欧美韩国日本一区| 一区二区三区在线视频观看| 亚洲成人在线观看视频| 欧美激情按摩| 国产精品婷婷午夜在线观看| 欧美一区二区三区男人的天堂| 亚洲免费精品| 欧美一区二区三区喷汁尤物| 亚洲视频福利| 亚洲午夜未删减在线观看| 久久久久久亚洲精品中文字幕| 亚洲国产日韩综合一区| 两个人的视频www国产精品| 国产精品久久久久久久免费软件| 欧美在线网站| 亚洲高清激情| 欧美影院午夜播放| 欧美精品啪啪| 国产日产欧产精品推荐色| 欧美插天视频在线播放| 欧美一区二区日韩一区二区| 久久综合99re88久久爱| 久久精品亚洲一区二区三区浴池| 欧美精品国产精品| 欧美与欧洲交xxxx免费观看|