• Home
  • Index
  • Search
  • Download
  • Server Rules
  • House Roleplay Laws
  • Player Utilities
  • Player Help
  • Forum Utilities
  • Returning Player?
  • Toggle Sidebar
Interactive Nav-Map
Tutorials
New Wiki
ID reference
Restart reference
Players Online
Player Activity
Faction Activity
Player Base Status
Discord Help Channel
DarkStat
Server public configs
POB Administration
Missing Powerplant
Stuck in Connecticut
Account Banned
Lost Ship/Account
POB Restoration
Disconnected
Member List
Forum Stats
Show Team
View New Posts
View Today's Posts
Calendar
Help
Archive Mode




Hi there Guest,  
Existing user?   Sign in    Create account
Login
Username:
Password: Lost Password?
 
  Discovery Gaming Community Discovery Development Discovery Developers Forum
1 2 3 4 5 6 Next »
fl-Darkmap

Server Time (24h)

Players Online

Active Events - Scoreboard

Latest activity

fl-Darkmap
Offline darkwind
8 hours ago, (This post was last modified: 8 hours ago by darkwind.)
#12
Frontier Sheriff
Posts: 1,237
Threads: 143
Joined: Oct 2019
Staff roles:
Coding Developer

(Yesterday, 02:39 AM)darkwind Wrote:
(03-31-2026, 01:16 PM)IahimD Wrote: Can you also preview the Tau-23 corridors? Less impact full from a gameplay perspective, but totally messed up.
Also, a clarification: Kepler corridors are visible; they just lack plane coords. Omega-97 corridors are... less clear

I figured out Kung-Fu of it with a lot of cheating.
Code:
// Freelancer: vector forward = [0, 0, -1] (NEG_Z_AXIS)
// Projection on a navmap (X/Z plane, Y-up)
func ProjectToNavMap(rx, ry, rz float64) (angleDeg float64, projLen float64) {
    v := [3]float64{0, 0, -1} // NEG_Z_AXIS — "forward"
    v = rotX(v, toRad(rx))    // pitch
    v = rotY(v, toRad(ry))    // yaw
    v = rotZ(v, toRad(rz))    // roll

    fx, fz := v[0], v[2]
    projLen = math.Sqrt(fx*fx + fz*fz)

    // atan2(fx, -fz): angle from "north" of a map (-Z direction)
    angleDeg = math.Atan2(fx, -fz) * 180 / math.Pi

    if projLen < 1e-9 {
        return angleDeg, 0 // you could yield error here, but we do not need it :)
    }

    return angleDeg, projLen
}


func toRad(deg float64) float64 {
    return deg * math.Pi / 180
}

func rotX(v [3]float64, a float64) [3]float64 {
    c, s := math.Cos(a), math.Sin(a)
    return [3]float64{v[0], c*v[1] - s*v[2], s*v[1] + c*v[2]}
}

func rotY(v [3]float64, a float64) [3]float64 {
    c, s := math.Cos(a), math.Sin(a)
    return [3]float64{c*v[0] + s*v[2], v[1], -s*v[0] + c*v[2]}
}

func rotZ(v [3]float64, a float64) [3]float64 {
    c, s := math.Cos(a), math.Sin(a)
    return [3]float64{c*v[0] - s*v[1], s*v[0] + c*v[1], v[2]}
}

Now i know perfect Angle for every object how to reflect onto 2D map view through Universal Math formula that does it always right (sun)
With also decrease of object length due to rotation possible look down or up at some level of degree of angle X (reflects perfect any length decrease between 0% to 100%)
If the object is vertical, i render it with width and length both equal to its width then.

So now i can render whatever object complex rotations
Code:
[zone]
nickname = zone_bw02_corridor_06
pos = 28650.5370143416, -3.97673741662251E-12, 19858.683528309
rotate = -180, 27.1180854357753, 180
shape = BOX
size = 1500, 1500, 32700
property_flags = 131072
visit = 128
sort = 99

Updated the map to reflect it perfect





Also checked visbility of Omega7


Interstellar Autogit Ctrl-V Encryptor Discovery At Linux
Dark Tools DarkBot DarkLint DarkStat DarkMap
Reply  


Messages In This Thread
fl-Darkmap - by darkwind - 03-30-2026, 10:05 PM
RE: fl-Darkmap - by Koshi.Inaba - 03-30-2026, 10:44 PM
RE: fl-Darkmap - by darkwind - 03-31-2026, 12:23 PM
RE: fl-Darkmap - by Kherty - 03-31-2026, 03:07 AM
RE: fl-Darkmap - by darkwind - 03-31-2026, 12:41 PM
RE: fl-Darkmap - by IahimD - 03-31-2026, 01:09 PM
RE: fl-Darkmap - by darkwind - 03-31-2026, 01:14 PM
RE: fl-Darkmap - by darkwind - 8 hours ago
RE: fl-Darkmap - by IahimD - 03-31-2026, 01:16 PM
RE: fl-Darkmap - by darkwind - 03-31-2026, 01:20 PM
RE: fl-Darkmap - by darkwind - Yesterday, 02:39 AM
RE: fl-Darkmap - by darkwind - 8 hours ago
RE: fl-Darkmap - by IahimD - 03-31-2026, 01:32 PM

  • View a Printable Version
  • Subscribe to this thread


Users browsing this thread:
1 Guest(s)



Powered By MyBB, © 2002-2026 MyBB Group. Theme © 2014 iAndrew & DiscoveryGC
  • Contact Us
  •  Lite mode
Linear Mode
Threaded Mode