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.

DarkBASIC Discussion / Creating stars in a space environment

Author
Message
Neil Young
21
Years of Service
User Offline
Joined: 6th Jan 2004
Location:
Posted: 8th Jan 2004 11:47
What I have is a large 400,000 radius sphere with a star image textured onto it. Now, this works very well at conveying the essence of stars actually being there, but there is a problem ...

... well the sphere has a radius of 400,000 right, and my camera has a back range of 400,000, so when the camera's front value is real low and back value real high (400,000) then the buffer cant show closer objects in front of farther objects, so what im trying to do is keep myself from being dependant on the huge 400,000 valued sphere to create stars, because my planets are being obscured by it.
Jess T
Retired Moderator
21
Years of Service
User Offline
Joined: 20th Sep 2003
Location: Over There... Kablam!
Posted: 8th Jan 2004 11:50
Why are you using such a large sphere?

Use two or three relatively small ones that follow the player that slowly rotate according to the players rotation, and you'll get a real nice paralaxx effect.

Hope I Helped...


Team EOD :: Programmer/Logical Engineer/All-Round Nice Guy
Neil Young
21
Years of Service
User Offline
Joined: 6th Jan 2004
Location:
Posted: 8th Jan 2004 11:56
Yeah I considered your idea. I reduce the star sphere diameter to 200,000, then move it in the direction the camera is facing 200,000 units, so it appears to be 400,000 away, then when the cam changes position the stars return to their position and move in the appropriate direction again, etc.. Though I'd like to find a simpler method.

The reason it's so huge is because I wanted to provide a large environment for my space system. When the objects are real small and so close it doesn't seem real, cause the camera can move right up to it and its like nothing, it's so small.

Is there perhaps a way to manipulate the way the camera views objects or something so I can use small objects and distances?
Jess T
Retired Moderator
21
Years of Service
User Offline
Joined: 20th Sep 2003
Location: Over There... Kablam!
Posted: 8th Jan 2004 12:30
just use somethign along the lines of:



Although, I'm not too sure that that'd work... I'm a bit tired atm, sorry.

Give it a try and if it doesn't work, then try somethign else...

Hope I Helped...


Team EOD :: Programmer/Logical Engineer/All-Round Nice Guy
Axelman
21
Years of Service
User Offline
Joined: 18th Oct 2003
Location: Parallel Universe
Posted: 8th Jan 2004 12:49
hey jess wouldn't that just make the camera go all funny?

nothing right in left brain:nothing left in my right brain
Neil Young
21
Years of Service
User Offline
Joined: 6th Jan 2004
Location:
Posted: 8th Jan 2004 12:57
That doesn't exactly do anything different, it just rotates the sphere as the camera moves, but I wouldn't need that if the sphere is stationary, there is really no difference. Thank you for your help, though, you have given me a place to start, I will be working on it. Thanks.
Jess T
Retired Moderator
21
Years of Service
User Offline
Joined: 20th Sep 2003
Location: Over There... Kablam!
Posted: 8th Jan 2004 13:57
Glad to have helped...

@Axelman, no, it's meant to simulate the paralax of the starts as the player ( ie, the camera ) rotates on all 3 axis.


Team EOD :: Programmer/Logical Engineer/All-Round Nice Guy
JoelJ
21
Years of Service
User Offline
Joined: 8th Sep 2003
Location: UTAH
Posted: 9th Jan 2004 00:23
make the sphere have about a -2000 to -4000 radius
that'll do ya good...

Login to post a reply

Server time is: 2025-05-22 06:26:19
Your offset time is: 2025-05-22 06:26:19