Commit Graph

44 Commits

Author SHA1 Message Date
Peder Bergebakken Sundt 84cbd5e5c7 Fix transparancy check for nodes
The previous method tried to read from meshes which had been freed from memory
2019-03-22 18:02:29 +01:00
Peder Bergebakken Sundt b4e66809cb Performance optimizations, caching uniforms and bound textures and avoiding uploding them if they're already set. 2019-03-22 17:07:41 +01:00
Peder Bergebakken Sundt 2cac6e1766 Remove noise from timeutils.cpp 2019-03-22 00:08:03 +01:00
Peder Bergebakken Sundt 0475f17110 Small optimization, no having to recompute a matrix for all objects 2019-03-22 00:05:50 +01:00
Peder Bergebakken Sundt 97adb2fd3b Add support for transparent mesh sorting 2019-03-22 00:04:50 +01:00
Peder Bergebakken Sundt 2ade6919d1 Add texture support for models 2019-03-22 00:01:14 +01:00
Peder Bergebakken Sundt 8f7f0313f5 Prettify and embetter the mouse callback in scene.cpp 2019-03-21 23:58:28 +01:00
Peder Bergebakken Sundt 8801414e34 rename gamelogic into renderlogic 2019-03-21 08:41:24 +01:00
Peder Bergebakken Sundt e0253940bd Move the scene out of gamelogic into scene.cpp 2019-03-21 01:11:59 +01:00
Peder Bergebakken Sundt d7df5e5ab1 Minor cleanups and fix spotlights 2019-03-20 00:21:51 +01:00
Peder Bergebakken Sundt 4fbf2f296c Move implementation of function from scenenode hpp file to cpp file 2019-03-19 20:25:23 +01:00
Peder Bergebakken Sundt 1d7c297257 Minor modifications to the scene 2019-03-19 20:24:59 +01:00
Peder Bergebakken Sundt da4d088d9d Add texture coordinates to spheres 2019-03-19 20:23:16 +01:00
Peder Bergebakken Sundt 5518d8e7ee Add reflection mapping 2019-03-19 20:23:16 +01:00
Peder Bergebakken Sundt 8fc773e0f8 Add material struct, making it easier to apply properties thoughout the scene 2019-03-19 20:22:58 +01:00
Peder Bergebakken Sundt 3a6181f239 Revamp color system, again. Moving color components to scene objects instead 2019-03-19 20:11:52 +01:00
Peder Bergebakken Sundt 50e3b60c28 Add model loader, modify scene to load a car 2019-03-18 11:50:25 +01:00
Peder Bergebakken Sundt 29defbaba9 Add vertex color array 2019-03-18 11:48:11 +01:00
Peder Bergebakken Sundt 86f339ef56 Fix CRLF to LF 2019-03-17 15:30:21 +01:00
Peder Bergebakken Sundt 54cd22ff57 Add changes to the scene, using the displacement map
in addition: fix the normals of the cube generator
2019-03-17 15:25:37 +01:00
Peder Bergebakken Sundt c9e4332a65 Add displacement mapping with TBN being affected 2019-03-17 15:17:44 +01:00
Peder Bergebakken Sundt 02ab58ecc9 Add in new stuff to the scene 2019-03-16 20:14:24 +01:00
Peder Bergebakken Sundt 7135ebab6b Revamp the shader and lighting system 2019-03-16 20:12:35 +01:00
Peder Bergebakken Sundt 74d65ee092 Remove old scene 2019-03-16 20:09:17 +01:00
Peder Bergebakken Sundt 66458551c6 Add a plain to look at 2019-03-16 18:03:41 +01:00
Peder Bergebakken Sundt c699330ab5 Move hudNode out of root node, remove HUD node type, make main loop fetch window size and propagate it though update and render calls 2019-03-16 18:01:10 +01:00
Peder Bergebakken Sundt ce277dfce5 Chang the custom node shaders to be inherited by the children if left to nullptr 2019-03-16 16:48:06 +01:00
Peder Bergebakken Sundt 32ee578082 Fix insert to normals in generateSegmentedPlane using wrong end iterator 2019-03-16 16:35:13 +01:00
Peder Bergebakken Sundt 019bc2919e Move default values from constructor in SceneNode 2019-03-16 16:33:20 +01:00
Peder Bergebakken Sundt 5f705ff11c Fix tangent and bitangent generation 2019-03-16 16:32:13 +01:00
Peder Bergebakken Sundt 3141f6aca0 Allow to set mirror repeat on textures, move texture loading into global scope 2019-03-16 00:07:54 +01:00
Peder Bergebakken Sundt 4a9653642e Add method to generate a plane mesh, planned for heightmaps 2019-03-15 23:58:43 +01:00
Peder Bergebakken Sundt 0bd6cdf6a8 Add perlin noise generator 2019-03-15 21:23:23 +01:00
Peder Bergebakken Sundt 06e6ce7494 cleanup 2019-03-15 21:22:41 +01:00
Peder Bergebakken Sundt eac8fcdf9e Clean up VAO and texture IDs. I don't want to manage those 2019-03-15 18:09:20 +01:00
Peder Bergebakken Sundt 1b05c0ac82 Move MV transform of lights from fragmentshader to cpu 2019-03-15 17:29:59 +01:00
Peder Bergebakken Sundt da7a29a2d1 Make it possible ot have different shaders along scene graph 2019-03-15 16:45:06 +01:00
Peder Bergebakken Sundt 88376587e5 Clean up some types here and there 2019-03-15 16:34:17 +01:00
Peder Bergebakken Sundt e00637d46d Make uniforms named 2019-03-15 16:26:31 +01:00
Peder Bergebakken Sundt 9378c685a8 Do ex2 2019-03-14 12:43:41 +01:00
Peder Bergebakken Sundt 4247ae3659 ex1 done 2019-02-19 16:21:05 +01:00
Bart van Blokland 4645e40b62 Updated code handout for assignment 2 2019-02-18 17:52:50 +01:00
Bart van Blokland 5047f2b506 Fix for incorrect normals 2019-02-15 22:24:42 +01:00
bartvbl a430863701 Initial release 2019-02-04 18:34:28 +01:00