teaching machines

pinterrm – HW2

March 19, 2015 by . Filed under cs455, postmortems, spring 2015.

I spent the majority of my time on this assignment on figuring out exactly how to draw magnets to the screen. Mostly because I was still stuck in a modeling state of mind and this lead to the thinking that I should upload every vertex as a 3d model of sorts in the orthographic projection to see in 2d. After many failed attempts I realized the simplicity of uniforms and very few vertices loaded on the gpu.

After this hurdle was overcome, adding the magnet logic was fairly straightforward – I ended up writing additional Vector4 operators (just plus and minus) to help aid in computation.

001 002 003 004