Java-Gaming.org Java4K winners: [ by our judges | by the community ]         
Featured games (67)
games approved by the League of Dukes
Games in Showcase (∞)
games submitted by our members



News: Read the Java Gaming Resources, or peek at the official Java tutorials
 
    Home     Help   Search   Login   Register   
Pages: [1]
  Print  
  Easiest way to make a skybox?  (Read 1373 times)
0 Members and 2 Guests are viewing this topic.
Offline baldacim

JGO n00b
*

Posts: 10



« on: 2011-04-25 19:44:41 »

Hello everyone, I'm trying to make a skybox and wanted ideas about the best way.
I thought about creating a giant cube around my scene, placing its centroid in the same position of the camera. But I do not know if it's the best way.

Is there any difference in performance using a texture in a small or large cube?

I tried but when the camera moved some parts of the screen flashed to black.

If anyone know of a tutorial I would like to look.

Any suggestions would help me a lot.
Offline gouessej

JGO Kernel
*****

Posts: 3558
Medals: 30


TUER


« Reply #1 on: 2011-04-26 06:58:29 »

Maybe disable the test of depth (Z buffer) when drawing it. Draw it before all other objects of the scene.

Julien Gouesse
Pages: [1]
  Print  
 
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.16 | SMF © 2011, Simple Machines Valid XHTML 1.0! Valid CSS!
Page created in 0.072 seconds with 20 queries.