09/12/2017

Tasks: Due Wed: Meet Varshney GrayScale Rendering I searched: single channel textures, grayscale framebuffer. https://www.khronos.org/registry/OpenGL-Refpages/gl4/html/glTexImage2D.xhtml Solution: Dropbox\OPENGL\TrySomething\Sponza\grayScaleRendering Compare GL_RGB & GL_RED                          Memory             Time GL_RGB        386MB               24ms GL_RED … Read more09/12/2017

09/06/2017

Research: Fixed depth error. Should initialize depth buffer after obj load Fixed drawing triangles for the cut line: I wrongly set the “layout (triangle_strip, max_vertices = 3) out”, if max_vertices = 3, only one triangle will be outputted! Should use vertex, tess, geom, frag shaders together now! Let recall the whole pipeline…https://www.khronos.org/opengl/wiki/Rendering_Pipeline_Overview (09/08 added) I met … Read more09/06/2017

09/05/2017

Problem: Could load texture correctly when rendering to framebuffer. However, when framebuffer is used, only left down corner of the texture is displayed. Solve: I loaded a model with some texture initialization before initiating framebuffer. And the model affected the initialization of framebuffer; Should initialize framebuffer before loading the model. Task for tomorrow: Try every … Read more09/05/2017

KNN

Assignment1: KNN Install BallTree Library: sudo apt-get install python-sklearn list.append(), add new item to the end. numpy.arange(), sort numpy.reshape(), the same with reshape() in matlab numpy.median(numpy.array(outs))???? defaultDict.get(), https://stackoverflow.com/questions/11041405/why-dict-getkey-instead-of-dictkey ballTree.query(X, k == k_in), http://scikit-learn.org/stable/modules/generated/sklearn.neighbors.BallTree.html