首页
网站开发
桌面应用
管理软件
微信开发
App开发
嵌入式软件
工具软件
数据采集与分析
其他
首页
>
> 详细
program程序代做、代写c/c++,Java编程
项目预算:
开发周期:
发布时间:
要求地区:
This assignment tests your understanding of hierarchical transformations, the camera, textures, and shaders.
Write a program in JavaScript/WebGL that draws an animated scene with the requirements given below. Template code is provided to handle many of the aspects necessary to get basic objects rendered with textures and moving in a scene. Use the template code found on the course webpage.
There are important notes about the template code regarding textures below! You will very likely have to address these, so make sure to read them carefully. There is a lot of information here, it is for your benefit. Make sure you read the assignment text from beginning to end. If you have questions consult this assignment text first.
In Lab 5 and 7 we modify the assignment basecode to support textures in multiple ways. I strongly suggest using either Lab 5 or Lab 7 as your starting point!
Marking Scheme
Total Marks: 49
1.[4 Marks] At least one hierarchical object of at least two-levels in the hierarchy (e.g. human arm body -> shoulder -> elbow -> wrist...).
2.[6 Marks] Make use of at least two textures either procedural or mapped. You must map them to a(n) object(s) in a meaningful way. Using the textures from the Lab modified assignment base code does not count toward the two. Simply placing a texture on a default object using the default object coords does not count. Using textures as in the lab code with no meaningful or non-trivial development does not count.
3.[5 Marks] Convert the ADS shader in the assignment base code from a vertex shader to a fragment shader. You need to compute the lighting equation per fragment.
4.[2 Marks] Convert the Phong to Blinn-Phong in the new fragment shader created in step 3.
5.[5 Marks] At least one shader edited or designed from scratch to perform a clearly visible effect. Each line of your shader code must be commented clearly explaining exactly what the following line does and why. You must clearly identify the purpose and effect the shader produces in the submitted README.
6.[4 Marks] 360 degree camera fly around using lookAt() and setMV() to move the camera in a circle while focusing on a point that the camera is circling. This can be a single fly around or can be a part of a composed scene or can be a loop.
7.[4 Marks] Connection to real-time. You should make sure that your scene runs in real-time on fast enough machines. Real-time means that one simulated second corresponds roughly to one real second.
8.[2 Marks] You should display the frame rate of your program in the console window or the graphics window once every 2 seconds.
9.[5 Marks] Complexity: scene setup and design, movement of animated elements, and programming.
10.[5 Marks] Creativity: storytelling, scene design, object appearance and other artistic elements.
11.[5 Marks] Quality: Attention to detail, modelling quality, rendering quality, motion control.
12.[2 Marks] Programming style.
13.[-2 Marks if not] Make and submit a movie of your animation. The movie should be at least 512x512 resolution and in a standard format, such as mp4. Include a cover image (png or jpg) of at least 512x512 pixels. You may use any screen capture program that is available (e.g. ShareX).
14.[-4 Marks if not] Provide a readme.txt that describes what you have done, what you have omitted, and any other information that will help the grader evaluate your work, including what is stated below.
Requirements/Policies
Collaboration
None. If you discuss this assignment with others, you should submit their names along with the assignment material.
Original Work
The assignment must be done from scratch. Apart from the template provided, you should not use code from any other source, including the previous offering of the class.
Note there are many shader sources on the internet. Please develop your own first! You can seek inspiration but do not use others’ code.
Zero Mark
If the code does not run, or no objects appear in the window, or only the template code is running properly, no partial marks will be given.
Clarifications
●Note that creativity and complexity are both important for this assignment, but are in many ways subjective. The mark will be applied in a way that reflects whether you've done something non-trivial w.r.t. the given code.
●Make sure you rotate the hierarchical elements from [1] around the correct point, i.e. where they touch the parent body parts, so bodies do not appear to break apart.
●Start your code in main.js:render() and feel free to write additional functions
●You must do the assignment from scratch. If you use existing code (e.g. A1, Lab5, Lab 7) then you must state that clearly in your readme.txt file. Using any piece of code from any source (including previous offerings of the course, A1, the web etc) without attribution will be considered plagiarism.
●You can use libraries as stated below. You will not get credit for the code you have not written, however, it might help with the visual complexity of your scene. For example, if you use an existing 3D model for required element 1, then you will not get credit for it. See below for more details.
Project Submission Instructions
1.Make a backup copy of your project folder first to avoid accidentally deleting your work.
2.Rename the parent project folder to include your name
3.Remove unnecessary files from the project.
4.Archive the project folder in a zip folder and call it csc305_assignment_2.zip.
5.Test the archive
a.Unzip the archive in a different location.
b.Make sure everything works as expected.
6.Submit the zip file on brightspaces.
We want to be able to open your zip file, run, and see your project right away. Also, note that you can add as many files as you want to the project as well as modify any settings that you need to (see below). However, it would be useful if you stated unusual settings and additional files in the readme.txt.
Movie Submission Instructions
1.There are lots of screen capture software that simplify screen recording. On Windows, ShareX is very good.
2.Call your movie file
_
_movie.[mpg,mp4], replacing
and
with your first name and last name.
3.Call your image file
_
_image.jpg.
4.Zip the two files in an archive called
_
_bundle.zip.
5.Submit the file on brightspaces.
Security Issues with Textures
If the textures do not work, check the console for an error message related to “Cross-origin image”. To use textures in WebGL we have to bypass a security issue that is present with most browsers.
The easiest way to handle this is with the python HTTP server approach we discussed in Lab. This is how we will mark your assignment.
1.Open explorer/file manager and navigate to the code folder.
2.Now shift-click in the file list and open a command prompt or powershell here
1.Alternatively, you can open a command prompt or power shell from the windows menus and then use cd [folder] to navigate to the correct folder.
3.Now run the following:
python -m http.server 8080
4.Now you should be able to open a browser and type
localhost:8080
In the URL bar
5.You’ll see your files being hosted on a simple local server, you can now click your html file.
FAQ
1.Are there any size limitations to the project? i.e. number of classes, project size, memory, number of textures, texture resolution etc?
A: In terms of texture resolution, number of textures etc, there are:
a.Hardware and software limitations. There is a maximum number of textures you can have active at the same time, and there is a maximum size for textures.
b.Practical limitations. Brightspace has a 1gb limit on what you can upload and a recommended 40mb maximum. You also want your project to run in real-time.
2.What should be the duration of the movie?
A: However long to capture it generally, if it loops you may want to capture two or three loops. Often these are between 20-60 seconds.
3.Can we use images from the web?
A: As long as the images are free for public use, sure. Do not use assets that are copyrighted. Note that the filters on google images are rarely correct w.r.t usage rights. Check out resources like:
a.Wiki Commons
i.https://commons.wikimedia.org/wiki/Main_Page
b.PARIS MUSÉES
i.https://www.parismuseescollections.paris.fr/en
c.Smithsonian Open Access
i.https://www.si.edu/OpenAccess
4.Can we use external libraries?
A: As long as they (a) are free for public use, (b) do not make the required elements unfairly easier for you (do not use an engine, tool, package, module, or any resource that solves a required element for you), and (c) the TA can run your project, you can use additional libraries. However, if the TA cannot run your program because of missing dependencies etc. you will have a problem. Generally, that means they need to be freely available and you need to submit the complete assignment. No setup or downloading on our part should be required to get it to run.
5.Can we use audio?
A: You can, however 3) also applies here.
6.How ambitious can we be?
A: I encourage you to take this opportunity and explore your programming abilities and your creative interests. However, I advise you not to aim too high, unless you are confident about what you are doing. Above all, FIRST make sure that you have covered the required elements of the assignment. THEN, add complexity incrementally in a way that does not break your base of working elements.
Hints
●Use the timestamp or dt variables to synchronize your animation elements.
●Use setColor(r,g,b) to set the desired colors.
●For the motions, you may want to use functions such as
○x(timestamp) = A*Math.cos(w*timestamp+h)
■Where timestamp is real-time, A is amplitude, Math.cos is cosine function, w is the angular frequency, h is the phase
○x(t + dt) = x(t) + x'(t)dt
■Next position in time ( x(t + dt) ) is just the current position ( x(t) )plus velocity ( x'(t) ) scaled by the change in time (dt).
○Wave functions
○Euler integration for movement
●Common mistakes with motion
○eye[0] = eye[0]*Math.cos(theta) + eye[2]*Math.Sin(theta) ;
○eye[2] = -eye[0]*Math.sin(theta) + eye[2]*Math.cos(theta) ; // incorrect use of the newly computed eye[0] instead of the original eye[0]
○Camera Motion
2
软件开发、广告设计客服
QQ:99515681
邮箱:99515681@qq.com
工作时间:8:00-23:00
微信:codinghelp
热点项目
更多
代做ceng0013 design of a pro...
2024-11-13
代做mech4880 refrigeration a...
2024-11-13
代做mcd1350: media studies a...
2024-11-13
代写fint b338f (autumn 2024)...
2024-11-13
代做engd3000 design of tunab...
2024-11-13
代做n1611 financial economet...
2024-11-13
代做econ 2331: economic and ...
2024-11-13
代做cs770/870 assignment 8代...
2024-11-13
代写amath 481/581 autumn qua...
2024-11-13
代做ccc8013 the process of s...
2024-11-13
代写csit040 – modern comput...
2024-11-13
代写econ 2070: introduc2on t...
2024-11-13
代写cct260, project 2 person...
2024-11-13
热点标签
mktg2509
csci 2600
38170
lng302
csse3010
phas3226
77938
arch1162
engn4536/engn6536
acx5903
comp151101
phl245
cse12
comp9312
stat3016/6016
phas0038
comp2140
6qqmb312
xjco3011
rest0005
ematm0051
5qqmn219
lubs5062m
eee8155
cege0100
eap033
artd1109
mat246
etc3430
ecmm462
mis102
inft6800
ddes9903
comp6521
comp9517
comp3331/9331
comp4337
comp6008
comp9414
bu.231.790.81
man00150m
csb352h
math1041
eengm4100
isys1002
08
6057cem
mktg3504
mthm036
mtrx1701
mth3241
eeee3086
cmp-7038b
cmp-7000a
ints4010
econ2151
infs5710
fins5516
fin3309
fins5510
gsoe9340
math2007
math2036
soee5010
mark3088
infs3605
elec9714
comp2271
ma214
comp2211
infs3604
600426
sit254
acct3091
bbt405
msin0116
com107/com113
mark5826
sit120
comp9021
eco2101
eeen40700
cs253
ece3114
ecmm447
chns3000
math377
itd102
comp9444
comp(2041|9044)
econ0060
econ7230
mgt001371
ecs-323
cs6250
mgdi60012
mdia2012
comm221001
comm5000
ma1008
engl642
econ241
com333
math367
mis201
nbs-7041x
meek16104
econ2003
comm1190
mbas902
comp-1027
dpst1091
comp7315
eppd1033
m06
ee3025
msci231
bb113/bbs1063
fc709
comp3425
comp9417
econ42915
cb9101
math1102e
chme0017
fc307
mkt60104
5522usst
litr1-uc6201.200
ee1102
cosc2803
math39512
omp9727
int2067/int5051
bsb151
mgt253
fc021
babs2202
mis2002s
phya21
18-213
cege0012
mdia1002
math38032
mech5125
07
cisc102
mgx3110
cs240
11175
fin3020s
eco3420
ictten622
comp9727
cpt111
de114102d
mgm320h5s
bafi1019
math21112
efim20036
mn-3503
fins5568
110.807
bcpm000028
info6030
bma0092
bcpm0054
math20212
ce335
cs365
cenv6141
ftec5580
math2010
ec3450
comm1170
ecmt1010
csci-ua.0480-003
econ12-200
ib3960
ectb60h3f
cs247—assignment
tk3163
ics3u
ib3j80
comp20008
comp9334
eppd1063
acct2343
cct109
isys1055/3412
math350-real
math2014
eec180
stat141b
econ2101
msinm014/msing014/msing014b
fit2004
comp643
bu1002
cm2030
联系我们
- QQ: 9951568
© 2021
www.rj363.com
软件定制开发网!