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 / 3D space sim game radar

Author
Message
SanBa Games
14
Years of Service
User Offline
Joined: 28th Nov 2009
Location: Silicon Valley
Posted: 21st Aug 2011 11:32
I have been hard at work on a space sim. Right now I'm working on the radar functionality. I generated a bunch of random planets and am trying to track them on a radar. At first I wanted a radar like most space sim games have, where the middle of the radar is straight ahead and up is above you, down is below you, left is to your left, right is to your right, and on the edges of the radar means your target is behind you.

This was a little beyond my capabilities.

So then I figured I'd try a 2d-style radar and let the player figure out for himself if the target was above or below him, and wind up with a minimap of sorts. This is a bummer, especially in a free-roaming space sim. I don't really want it, but for now, at least until I figure out something better, I'm going to have to go with it.

Unfortunately, I can't get it working.

I figured I'd tell it the central point on the radar, tell it the angle it needs to move and the distance it needs to move, and then draw the dot right there.

It decided not to do what I wanted.

If anyone can give me a hand, especially if said hand includes helping me realize my original intent for this radar thing, that would be fantastic.

The functions for the radar are the last two, so just scroll all the way to the end.

Sanba Games: Because We Can

Attachments

Login to view attachments
Kezzla
16
Years of Service
User Offline
Joined: 21st Aug 2008
Location: Where beer does flow and men chunder
Posted: 22nd Aug 2011 11:49
hmmm you could try something like a radar sphere.

an opaque sphere in the corner of the screen with a 3d dot representing the player.

Take the co-ordinates of the planets within range of the radar and shrink them down to the dimensions of the radar sphere.
place them as colored 3d dots inside the sphere, rotate them with the ship so its just like having a mini version of the surrounding space on screen at any given time.

A complex thing to make. You got me puzzling now.

im gonna try some ideas

Sometimes I like to use words out of contents

Login to post a reply

Server time is: 2024-11-22 17:13:11
Your offset time is: 2024-11-22 17:13:11