$30 off During Our Annual Pro Sale. View Details »

SER431 Lecture 11

SER431 Lecture 11

Advanced Graphics
Quiz 04 and Project 01
(201809)

Javier Gonzalez-Sanchez
PRO

September 20, 2018
Tweet

More Decks by Javier Gonzalez-Sanchez

Other Decks in Programming

Transcript

  1. jgs
    SER 431
    Advanced Graphics
    Lecture 11: Quiz 04 and Project 01
    Javier Gonzalez-Sanchez
    [email protected]
    PERALTA 230U
    Office Hours: By appointment

    View Slide

  2. jgs
    Double Blending

    View Slide

  3. Javier Gonzalez-Sanchez | SER431 | Fall 2018 | 2
    jgs
    Avoid Double Blending
    glStencilFunc(GL_ALWAYS, 1, 0xFFFFFFFF);
    glStencilOp(GL_REPLACE, GL_REPLACE, GL_REPLACE);
    // code here
    glStencilFunc(GL_EQUAL, 1, 0xFFFFFFFF);
    glStencilOp(GL_KEEP, GL_KEEP, GL_KEEP);

    View Slide

  4. Javier Gonzalez-Sanchez | SER431 | Fall 2018 | 3
    jgs
    Avoid Double Blending
    glStencilFunc(GL_ALWAYS, 1, 0xFFFFFFFF);
    glStencilOp(GL_REPLACE, GL_REPLACE, GL_REPLACE);
    // code here
    glStencilFunc(GL_EQUAL, 1, 0xFFFFFFFF);
    glStencilOp(GL_ZERO, GL_ZERO, GL_ZERO);

    View Slide

  5. jgs
    Project 01

    View Slide

  6. Javier Gonzalez-Sanchez | SER431 | Fall 2018 | 5
    jgs
    Core Ideas | Optional for Project 01
    1. Originality: something new.
    2. Re-playability: players want to play again.
    3. Surprise: avoid repetition.
    4. Reasonable Winning chances but Challenging (Tension Curve)
    5. Reasonable Waiting Times
    6. Uniformity (Rules, Format, Graphics, Concept)
    http://www.thegamesjournal.com/articles/WhatMakesaGame.shtml

    View Slide

  7. Javier Gonzalez-Sanchez | SER431 | Fall 2018 | 6
    jgs
    Graphics
    https://www.youtube.com/watch?v=aviL3HX3UEc

    View Slide

  8. Javier Gonzalez-Sanchez | SER431 | Fall 2018 | 7
    jgs
    Core Features | Optional for Project 01
    Part 1
    • 2 viewports
    • Double buffer
    • Mesh data structure
    • OBJ files
    • Display lists
    • Text
    • Timer
    • Window Reshape
    • Configuration Menu
    • Moving objects
    • User-controlled
    object
    Part 2
    • Light
    • Normal (face, vertex,
    weighted)
    • Textures (images)
    • Texture generation
    • Materials
    Part 3
    • Fixing Errors

    View Slide

  9. Javier Gonzalez-Sanchez | SER431 | Fall 2018 | 8
    jgs
    Project 01 | Requirements
    Add a menu that allows Enable and Disable the following implemented features:
    1. Texture generation: Marble, Fire and Cloudy textures
    2. Multiscale Terrain
    3. Skybox
    4. Draw Bounding boxes (no need to implement collision yet)
    5. Fog
    6. Reflection
    7. Shadows

    View Slide

  10. jgs
    Due date: October 5, 11:59 PM

    View Slide

  11. jgs
    Quiz 04

    View Slide

  12. Javier Gonzalez-Sanchez | SER431 | Fall 2018 | 11
    jgs
    Shadows

    View Slide

  13. jgs
    Due date: September 22, 11:59 PM

    View Slide

  14. jgs
    SER431 Advanced Graphics
    Javier Gonzalez-Sanchez
    [email protected]
    Fall 2018
    Disclaimer. These slides can only be used as study material for the class SER431 at ASU. They cannot be
    distributed or used for another purpose.

    View Slide