Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Project 4: Ricky Rajani #15

Open
wants to merge 20 commits into
base: master
Choose a base branch
from
Open
Changes from 2 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
77 changes: 43 additions & 34 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,8 +1,6 @@
CUDA Rasterizer
===============

[CLICK ME FOR INSTRUCTION OF THIS PROJECT](./INSTRUCTION.md)

**University of Pennsylvania, CIS 565: GPU Programming and Architecture, Project 4**

* Ricky Rajani
@@ -26,46 +24,57 @@ This project implements a simplified rasterized graphics pipeline, similar to th

# Samples

- Cow
- Duck normal
- 2 cylinder enginek
Demos of scenes using basic rasterization pipeline using Lambert lighting.

Points
- duck - 20
- duck - 50
- Performance Analysis (timing for kernRasterize)
Cow | Duck
:-------------------------------: | :-------------------------------:
![](renders/cow_normal.PNG) | ![](renders/duck_normal.PNG)

Engine | Truck
:-------------------------------: | :-------------------------------:
![](renders/engine_normal.PNG) | ![](renders/truck_normal.PNG)

Demos of scenes using additional primitives

Point cloud: 50

Duck | Cow | Truck
:-------------------------------: | :-------------------------------: | :-------------------------------:
![](renders/duck_points.PNG) | ![](renders/cow_points.PNG) | ![](renders/truck_points.PNG)

Lines
- truck
- cow
- Performance Analysis (timing for kernRasterize)

UV Texture Mapping
- Cesium Milk Truck
- Duck
- Performance Analysis (timing for kernTextureMap)
Duck | Truck
:-------------------------------: | :-------------------------------:
![](renders/duck_lines.PNG) | ![](renders/truck_lines.PNG)

![](renders/rasterize-graph.PNG)
// TODO: add performance analysis

Bilinear Texture filtering
- Checkerboard with
- Checkerboard without
- Performance Analysis (timing)
Demos of scenes using UV texture mapping

Perspective Correction
- Checkerboard with
- Checkerboard without
- Performance Analysis (timing)
Duck | Truck
:-------------------------------: | :-------------------------------:
![](renders/duck_texture.PNG) | ![](renders/truck_texture.PNG)


Checkerboard | Checkerboard with Bilinear Filtering | Checkerboard with Perspective Correction
:-------------------------------: | :-------------------------------: | :-------------------------------:
![](renders/checkerboard-normal.PNG) | ![](renders/checkerboard-bilinear.PNG) | ![](renders/checkerboard-perspective.PNG)

// TODO: Add performance analysis

Timing for Checkerboard
kernTextureMap 0.88
kernTextureMap with Bilinear Texture Filtering 1.02
kernRasterize 90
kernRasterize with Perspective Correction 66

# Performance Analysis
Pipeline Timing: Box
Pipeline Timing: Duck
Pipeline Timing: Cow

- Number of primitives
- Vertex Transform and Assembly
- Primitive Assembly
- initDepth
- kernRasterize
- Render

![](renders/fps_graph.PNG)

![](renders/pipeline_timing_graph.PNG)

### Credits