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 / depth proplem

Author
Message
mido
19
Years of Service
User Offline
Joined: 9th Nov 2005
Location:
Posted: 8th Feb 2006 18:14
i'm making a space game and when i create a really big object like the sun (radius 640000), all the smaller objects that are infront of it disapear.

also,
I DIDN"T USE (DISABLE OBJECT Z DEPTH)command

M25
Pincho Paxton
22
Years of Service
User Offline
Joined: 8th Dec 2002
Location:
Posted: 8th Feb 2006 18:40
You could use set camera range to maybe fix this problem. Anyway your sun should not be so close to the planets. A sun can also be a flat plain, just rotate it to face the camera all of the time.

Sven B
20
Years of Service
User Offline
Joined: 5th Jan 2005
Location: Belgium
Posted: 8th Feb 2006 20:45
It is possible that objects disappear when they are too small in perspective. But it is also possible that this has to do with the camera range.
set camera range minDist, maxDist

In your case, maxDist has to be alot higher than 640 000).

It's the programmer's life:
Have a problem, solve the problem, and have a new problem to solve.
mido
19
Years of Service
User Offline
Joined: 9th Nov 2005
Location:
Posted: 9th Feb 2006 23:22 Edited at: 9th Feb 2006 23:26
Quote: "
A sun can also be a flat plain, just rotate it to face the camera all of the time.
"


i need the sun to be a sphere

[edit]
sorry about double posting, i don't know what happened!

M25
mido
19
Years of Service
User Offline
Joined: 9th Nov 2005
Location:
Posted: 9th Feb 2006 23:22
Quote: "
A sun can also be a flat plain, just rotate it to face the camera all of the time.
"


i need the sun to be a sphere

Quote: "
In your case, maxDist has to be alot higher than 640 000).
"


it is 99000000

M25
Classic Evil
19
Years of Service
User Offline
Joined: 4th Nov 2005
Location: watching you through your window
Posted: 9th Feb 2006 23:30
what exactly does disable object z depth do.
try to not make your sun so big other wise it will overlap the planets

There are two types of people in this world: people who are extremly cool and are good at everything and people who are me.
Pincho Paxton
22
Years of Service
User Offline
Joined: 8th Dec 2002
Location:
Posted: 10th Feb 2006 00:06
Disable object depth makes an object draw in front of everything, even if it is behind everything. You can use it for certain things, but once you move around in 3D it can look a real mess at times. Great for 2D though.

re faze
20
Years of Service
User Offline
Joined: 24th Sep 2004
Location: The shores of hell.
Posted: 10th Feb 2006 17:54
you could scale everything down so its smaller but looks just as big in proportion.

mido
19
Years of Service
User Offline
Joined: 9th Nov 2005
Location:
Posted: 10th Feb 2006 18:25
i will try that out

M25
Newbie5UK
20
Years of Service
User Offline
Joined: 13th Nov 2004
Location:
Posted: 10th Feb 2006 23:07 Edited at: 10th Feb 2006 23:09
Mido, I'm writing one to, would liek to email you the exe for you to look at, maybe exchange ideas... I'm struggling with how to "store" the galaxy .. but the graphics are pretty good... using space shuttle... not sure if i can post an image here....
mido
19
Years of Service
User Offline
Joined: 9th Nov 2005
Location:
Posted: 12th Feb 2006 22:46
no proplem

Quote: "you could scale everything down so its smaller but looks just as big in proportion."


it's the same as using big objects

M25

Login to post a reply

Server time is: 2025-05-23 16:44:33
Your offset time is: 2025-05-23 16:44:33