관리자   |   포스트   |    로그아웃

아이튜브(itubes.co.kr)'s 반짝정보

아이튜브
아이튜브는 여성, 아동, 교육, 휴대폰 관련해 품질이 좋거나 가격이 저렴한 상품을 소개합니다. 아이튜브스 블로그에서 추천하는 제품들은 시간이 지나면 할인혜택이 종료되고 품절되는 경우가 많습니다. 발빠르게 혜택을 얻으시기 바랍니다.
ITUBE 아동, 육아정보

http://itubes.co.kr/rss
1. Orthographic , Perspective
Category : Open GL/study Date : 2010/03/30 07:28
Orthographic:
사용자 삽입 이미지

Perspective:

사용자 삽입 이미지


     gl.glMatrixMode(GL10.GL_PROJECTION);
        float size = .01f * (float) Math.tan(Math.toRadians(45.0) / 2);
        float ratio = _width / _height;
        // perspective:
        gl.glFrustumf(-size, size, -size / ratio, size / ratio, 0.01f, 100.0f);
        // orthographic:
        //gl.glOrthof(-1, 1, -1 / ratio, 1 / ratio, 0.01f, 100.0f);//we set our viewport to make a orthographic view//for the border in the order of left, right, bottom, top, zNear, zFar.

 //we set up our viewport
        gl.glViewport(0, 0, (int) _width, (int) _height);
 //------------------------------------------------------------      
        gl.glMatrixMode(GL10.GL_MODELVIEW);
        gl.glEnable(GL10.GL_DEPTH_TEST);// If we don’t enable that, we will see the last drawn object always in front of all other objects
       
    // define the color we want to be displayed as the "clipping wall"
    gl.glClearColor(0f, 0f, 0f, 1.0f);
   
    // enable the differentiation of which side may be visible
    gl.glEnable(GL10.GL_CULL_FACE);
    // which is the front? the one which is drawn counter clockwise
    gl.glFrontFace(GL10.GL_CCW);
 //   we set up our model environment 





엮인글 쓰기 0 | 덧글 쓰기 1 | 목록 열기 상위로
http://itubes.co.kr/trackback/678
HoustonGracie 2011/07/18 01:08 Reply | MODIFY/DELETE
I received my first <a href="http://bestfinance-blog.com">loan</a> when I was not very old and it supported my business very much. But, I need the term loan once again.
Today 182 : Yesterday 306 : Total 416927 / Subscribe to RSS / Guest Book COPYRIGHT(C) 2008.01.07 아이튜브스(itubes.co.kr) ALL RIGHT RESERVED.
최근 올라온 글
전체 (507)
생활 (58)
이벤트 (317)
휴대폰 (49)
IT 제품 (12)
이슈 (3)
주식투자 (7)
소프트웨어 (15)
트윗 (25)
안드로이드 (8)
Open GL (12)
study (0)
program (0)
Box2D (1)
Http (0)
Notification (0)
JavaModeling (0)
Inten (0)
Bada (0)
ITUBE ENTERTAINMENT

블로그 최근 덧글
관리자만 볼 수 있는 댓글...
 2011 – 비밀방문자
dsdfsf
 2011 – Test
19