Author Topic: Radar code question  (Read 2278 times)

0 Members and 1 Guest are viewing this topic.

Was toying with the idea of changing the radar to have a front and back scanner instead of just whole thing in one.  This probably isn't going to happen because I don't understand some of the math thats going on with this.  Has anybody messed around with this and know how it translates an object behind you to being in the other edge of the radar?

 

Offline Lightspeed

  • Light Years Ahead
  • 212
you cant be in any 'edge' of the radar. The centre point is always your ship (actually the whole z-axis of the universe (the one through your ship).
Modern man is the missing link between ape and human being.

 

Offline JarC

  • 28
I guess what he means is that what he would like to have, is the two rings (inner for front-view, outer for rear-view) of the radarscreen to be on separate displays. This is now combined in the same display where the inner circle represent targets in front and the outer circle representing targets behind you.
Use the WiKi Luke
See You @ WIGGY's

 
Like in X-Wing Alliance?  2 radars, one for back and one for the front?

 

Offline JarC

  • 28
yes, to be honest, I kinda like the idea myself, with the current display it is hard to determine if you got a bogey straight-up your tailpipe
Use the WiKi Luke
See You @ WIGGY's

 

Offline phreak

  • Gun Phreak
  • 211
  • -1
the orb is the first thing going into 3.6
Offically approved by Ebola Virus Man :wtf:
phreakscp - gtalk
phreak317#7583 - discord

 

Offline JarC

  • 28
orb? we get a white lighter as ejectseat?
Use the WiKi Luke
See You @ WIGGY's

 

Offline Lightspeed

  • Light Years Ahead
  • 212
i probably wont like the Orb™.

And I bet env mapping beats it to the first post 3.6 change :)
Modern man is the missing link between ape and human being.

 

Offline mikhael

  • Back to skool
  • 211
  • Fnord!
    • http://www.google.com/search?q=404error.com
Quote
Originally posted by PhReAk
the orb is the first thing going into 3.6


I nominate you for President of the World. :D
[I am not really here. This post is entirely a figment of your imagination.]

 
Yeah I would like to do something like the radar in XWA.  There are a couple of function calls that play with some vectors.  And I would assume this is where the relative position is determined.  My vector math is sadly lacking in this department.

 

Offline phreak

  • Gun Phreak
  • 211
  • -1
it should be pretty easy to render an orb, its the setup thats going to be somewhat problematic

i think you're looking for vm_vec_normalized_dir() if you want relative position
Offically approved by Ebola Virus Man :wtf:
phreakscp - gtalk
phreak317#7583 - discord

 

Offline Lynx

  • 211
Gawd, I hope this is optiaonal. I *hate* 3d radars.
Give a man fire and he'll be warm for a day, but set fire to him and he'll be warm for the rest of his life.

 
Lynx, everything except HTL, SEXPs and the bugfixes are off by default, and even HTL can be turned of if need be.
just another newbie without any modding, FREDding or real programming experience

you haven't learned masochism until you've tried to read a Microsoft help file.  -- Goober5000
I've got 2 drug-addict syblings and one alcoholic whore. And I'm a ****ing sociopath --an0n
You cannot defeat Windows through strength alone. Only patience, a lot of good luck, and a sledgehammer will do the job. --StratComm

  

Offline Lynx

  • 211
O yeah!:nod:
Give a man fire and he'll be warm for a day, but set fire to him and he'll be warm for the rest of his life.