With that, manage to draw out a imported obj object. Next i try to do the rotate and translate. Translate is already been done by the apple template, using the same way i did the rotate but it did not work at first. "Same way" is always what i thought, after analyzing i still do not understand how the translate work even though the code was provided. This part, i stopped coding and start looking for answer online again. I decided that i have to understand what opengl es shader actually means! so Wikipedia is the best solution.
After reading what is shader, the attribute and uniform that state in the blog of jeff start to make more sense. I went back to the code, set the attribute and uniform in the sharder class, also bind-ing to the attribute and uniform of our ivar and this work!
Will post up screenshot soon of imported object soon!



No comments:
Post a Comment