Sorry your browser is not supported!

You are using an outdated browser that does not support modern web technologies, in order to use this site please update to a new browser.

Browsers supported include Chrome, FireFox, Safari, Opera, Internet Explorer 10+ or Microsoft Edge.

Newcomers DBPro Corner / stars behind objects

Author
Message
SanBa Games
14
Years of Service
User Offline
Joined: 28th Nov 2009
Location: Silicon Valley
Posted: 14th Aug 2011 05:43
Hi, I've been programming a space sim for a while now, and I was working on a starfield simulator for it. It creates a bunch of very small planes with a star texture on it that turn to face the camera every sync. When they pass out of sight, it creates new ones further ahead of you.

This looks really nice, but the one major problem I'm having is that, with the exception of my ship (which has zdepth turned off) the stars appear in front of everything. This clearly looks lousy, and I was wondering what the best way to make them ALWAYS appear behind every object BESIDES my skybox would be.

Thanks for any help in advance!

Sanba Games: Because We Can
wickedly kick it
18
Years of Service
User Offline
Joined: 13th Jul 2006
Location: Fort-worth Texas
Posted: 16th Aug 2011 04:20
Advice: IF you are really going for a space sim, passing stars will be impossible my advice, make a giant star plane, put it miles away (think of 1,000+ values) make it HUUUUGE and texture it.

Login to post a reply

Server time is: 2024-11-22 18:47:01
Your offset time is: 2024-11-22 18:47:01