Day 55 is Xmas Eve's eve.. Already can feel the xmas mood now. Town, shopping center, mrt are all decorate with xmas item!
The fact i love xmas is whenever xmas is coming, a year is ending. Every time at this point, i will start thinking back on what had happen so far this year. Thinking back on the memories, epic moment and etc. Sometime couldn't believe that it happen so long ago. Anyway Merry Xmas everyone =)
Well still have to work today, cont working on the translation on the cutting plane. By apply texture on the cutting plane work fine. However i did notice that the animation start to get laggy because apply apply the plane cutting, where i suspect is due to the texture. I remenber that when reading on Jeff blog the texture should only be loaded one time if possible so that it will not cause memory issue. The way i am doing it is actually loading the texture to the texture2d every frame x30 per sec. This is really alot. i try various way but i cant because i have texture for the model node as well. After reading more and texture and see how the podloader applying the texture that don't cause any problem, i believe there must be a way to do it. So i decided to read up more before i start trying again. And YES! solve the problem with
glBindTexture(GL_TEXTURE_2D, m_gridTexture[0]);
So now will continue working on the translation to change the texture when moving in and out of the z axis. Its hardcoded still but it does look nice when u see the texture of the plane changing as u cutting.