EAE6320Assignment8

Add to
My games
Add to
Wishlist
Save to
Collection
No reviews
Exceptional
Meh
Skip

About

Question:

What was the point of the assignment?

Answer:

The point of this assignment was to implement a way for our geometry builder project to read a human readable lua file and write a binary file using the lua data.

Question: 

What did you do personally to complete the assignment?

Answer:

I transfered the lua reading code from my cGeometry.cpp to the GeometryBuilder.cpp and wrote some code to write a binary file from the lua file. I then wrote a way for my cGeometry object to take in a binary file rather than a lua file. I also move the winding order changing code from my platform dependent cGeometry.cpp to the GeometryBuilder.cpp.

Question: 

Did you get any help from a fellow student?

Answer:

Yes, I received some help bug fixing from Emma after I spent an hour trying to find a bug and it turns out it was due to an extra & operator I had placed in my binary reading code. 

Question: 

Tell us the order of the four things in the binary file and why you chose that order

Answer:

I chose to read them in the same order that my cGeometry factory method takes in parameters. That order is vertexcount, indextcount, vertexdata, and indexdata.

Question: 

Tell us at least two advantages of using binary file formats (I am looking for two specific reasons, but you can include more if you wish). Compare the advantages of binary formats with the advantages of human-readable formats. Why do we use binary formats at run-time in our class but human-readable formats to store the data in source control?

Answer:

One advantage is that the computer can load the binary file faster than it can load a lua file. The second advantage is that a binary file takes up less space than a human readable file does.

Question: 

Tell us whether the built binary geometry files should be the same or different for the different platforms, and explain why. (In other words, should the binary file for a specific geometry that your GeometryBuilder outputs for Direct3D be the same as the one that it outputs for that same geometry in OpenGL? If so, explain why. If not, explain why there are differences and what they are.)

Answer:

They should be different because they take in vertexes in different winding orders. It is more efficient to change the winding order when writing our binary file rather than having one binary file and changing the order during run time.

Question: 

Tell us how big (in bytes) the human-readable version is on disk and how big (in bytes) the binary version is on disk

Answer:

Lua size:  For a cone geometry is 3 Kb

Binary size: For a cone geometry is 2 Kb

Question: 

Tell us how long it takes to load the human-readable version and how long it takes to load the binary version

Answer:

Lua load:

first geometry took 0.000270 secs

second geometry took 0.00121 secs

third geometry took  0.000199 secs

Binary load:

first geometry took 0.000035 secs

second geometry took 0.000046 secs

third geometry took  0.000057 secs

Platforms
Release date
Developer
Luis Garcia Remes
Age rating
Not rated
Edit the game info
Last Modified: Oct 25, 2019

Where to buy

itch.io