We closed this forum 18 June 2010. It has served us well since 2005 as the ALPHA forum did before it from 2002 to 2005. New discussions are ongoing at the new URL http://forum.processing.org. You'll need to sign up and get a new user account. We're sorry about that inconvenience, but we think it's better in the long run. The content on this forum will remain online.
IndexProgramming Questions & HelpSyntax Questions › space background
Page Index Toggle Pages: 1
space background (Read 594 times)
space background
Oct 19th, 2009, 6:56am
 
Hello, i need to make a solar system  , Do anybody have an idea of how can i make the space background with opengl? ive tried using a quad primitive and apply a space texture and put it as background, the problem is then i move the camera position it doenst look realistic. I need that the texture always appears at the same position even if i move the camera position , i need that the background can be rendered in the same place, whatever the camera position .....Any idea?


thanks


Pun
Re: space background
Reply #1 - Oct 19th, 2009, 7:37am
 
If you apply the image, either as PImage or texture, before moving the camera, it'll stay put if you disable Z-sorting (and then re-enable it immediately after).
it's a hint() in Processing or gl.glDisable(GL.GL_DEPTH_TEST); if you're using straight openGL commands.
Page Index Toggle Pages: 1