FlipMesh.bb 504 B

12345678910111213141516171819202122232425262728293031
  1. ; FlipMesh Example
  2. ; ----------------
  3. Graphics3D 640,480
  4. SetBuffer BackBuffer()
  5. camera=CreateCamera()
  6. light=CreateLight()
  7. ; Create sphere
  8. sphere=CreateSphere()
  9. ; Scale sphere
  10. ScaleEntity sphere,100,100,100
  11. ; Texture sphere with sky texture
  12. sky_tex=LoadTexture("media/sky.bmp")
  13. EntityTexture sphere,sky_tex
  14. ; Flip mesh so we can see the inside of it
  15. FlipMesh sphere
  16. Color 0,0,0
  17. While Not KeyDown( 1 )
  18. RenderWorld
  19. Text 0,0,"You are viewing a flipped sphere mesh - makes a great sky!"
  20. Flip
  21. Wend
  22. End