1 / 9

Sky and Terrian

Sky and Terrian. Tiantian Xie 523514108@qq.com. Agenda. Sky skybox skydome Terrian Demo Resource. Skybox. A skybox consists of box mesh texture for sky( rsc ). Skydome. A skydome consists of semisphere mesh texture for sky( rsc ). for each normalized p(x,y,z) s=x/2+0.5

katina
Download Presentation

Sky and Terrian

An Image/Link below is provided (as is) to download presentation Download Policy: Content on the Website is provided to you AS IS for your information and personal use and may not be sold / licensed / shared on other websites without getting consent from its author. Content is provided to you AS IS for your information and personal use only. Download presentation by click this link. While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server. During download, if you can't get a presentation, the file might be deleted by the publisher.

E N D

Presentation Transcript


  1. Sky and Terrian Tiantian Xie 523514108@qq.com

  2. Agenda • Sky • skybox • skydome • Terrian • Demo • Resource

  3. Skybox • A skybox consists of • box mesh • texture for sky(rsc)

  4. Skydome • A skydome consists of • semisphere mesh • texture for sky(rsc) for each normalized p(x,y,z) s=x/2+0.5 t= z/2 - 0.5

  5. Terrian • A Terrian consists of • height mesh • procedure generation(right top) • exported from ps/3dmax,...(right bottom) • textures • global (left) • local (right) procedue generation exported from ps where white indicates 1.0 and black indicates 0.0

  6. Demo

  7. Demo • setup 500 1°/sec x 256 cell range:1~2000 Cell width: 2.0 z Eye:(30,30,-30) at:(0,0,0) up:(0,1,0)

  8. Demo • Terrian Apply global texture set fragment input color to its height height map combine GL_MODULE (2*arg0*arg1) textue coordinate scale:256.0 reset input fragment color (1,1,1)

  9. Resource • Terrian and Sky online tutorial • OpenGL terrian generation • Sky resource • skybox • skydome • Terrain resource • Heightmaps

More Related