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 Professional Discussion / 3d radar for space flight sims, how?

Author
Message
feiting
22
Years of Service
User Offline
Joined: 19th Oct 2003
Location:
Posted: 26th Oct 2003 16:40
Can anyone point me or tell me how to do that 3D radar thingy for space flight games?

StarWraith has an interesting sphere thingy while other games just say "arrow means behind you".

He who does not take the assassin job, will get killed by one who does.
Mr Anderson
22
Years of Service
User Offline
Joined: 14th Oct 2003
Location: NYC
Posted: 27th Oct 2003 00:38 Edited at: 27th Oct 2003 01:35
There may be a better way than this but I think it could be done like so...

The radar has a sphere or detection correct... so you just test all objects that are with in the sphere of the ship. And place 3d point to the local coordinate system of the sphere.

I hope that wasn't too complex... but I think I would do it that way for a first start.. Example in Pseudo (sorry - still haven't grasped DB syntax.. its easy, but I have to think...)

Step One
For Each Object
calc how far (x, y, z) 'this gives the radar point you'll need
Is within sphere radius
- Yes: draw point with value in translucent sphere.
- No: ignore
Next Object

Hope that helps. Maybe someone has another idea

IDIC (Infinite Diversity Infinite Combinations)
Surreal Studio IanG
22
Years of Service
User Offline
Joined: 21st Sep 2003
Location: Cyberspace...I think
Posted: 27th Oct 2003 19:19
sounds about the best way i can figure out
Mentor
23
Years of Service
User Offline
Joined: 27th Aug 2002
Location: United Kingdom
Posted: 27th Oct 2003 22:47
or you could just point a camera at the scene from far away and send that image to small section of the screen along with a sprite overlay with a grid/target pattern (if you see what I mean)

Mentor.

Login to post a reply

Server time is: 2026-07-26 16:03:21
Your offset time is: 2026-07-26 16:03:21