Jump to content

[WIP] Persistent Trails Development Discussion


Recommended Posts

So, i have been working on a new plugin, and while there is still a lot on the bug/TODO list, i think its time to present an early preview of whats to come:

Persistent Explorer Tracks

MVMEu1H.png

The plugin tracks the movement of the currently active vessel and draws a line to show where it has moved. The tracks are persistent and can be shared individually (each track is saved in a small textfile).

Possible uses include:

- Documenting rover exploration courses through terrain

- Markers for runway liftoff and landing

- Tower buzzing attempt documentation

- Airshows

- Race track markers

- etc. etc.

Planned features:

- create geo-referened "Log Entry Nodes" on a track, which will be displayed as spheres with a Label and a description text.

- directional markers / arrows

- (maybe/future) real textured tire tracks for each wheel on the ground

Well, still a lot to do, mainly figuring out GUI/Window/Initialization stuff :-)

Comments and feedback welcome!

Edited by SirJodelstein
Link to comment
Share on other sites

Well, here is my list of open problems / stuff i have not figured out how to solve. If someone knows a solution it would be great if you could point me into the right direction (Or just a plugin where i could have a look at the code):

- GUI windows open with the wrong size, and trying to force them to open with a given size has no effect. Using TACLib for the windows.

- billboarded 2D text that displays a text at a given 3D coordinate, and reveals addidtional text on mouseover. Something like the Apo/Peri displays in the map view.

- drawing 3D cones as direction indicators (without colliders)

Link to comment
Share on other sites

Could you add rover track type things that look semi realistic? Like rover tracks on the moon with this?

Like i said in the first post: I will try to add that feature in a later version, once i have the line-renderer stuff done. While such "realistic" would be really cool to have, the line-tracks can be configured to be seen while zoomed out, so you can show a traverse course of your rover over a large strip of terrain. The textured tire tracks would be more of a "close-up" graphics enhancement.

One suggestion - RGB or HEX color code inputs would be a better way of allowing users to pick track colors.

well, i personally dislike typing rgb or hex codes for color input, so i looked for a Paint/Photoshop/Inkscape-style color picker. Couldn't find one, so this was the solution i found: Load image, click on image, detect RGB value of clicked position. You can use any image you like for this dialog.

Edited by SirJodelstein
Link to comment
Share on other sites

Plugin is almost ready for release. Solved billboard-Labels, directional markers and gui stuff.

However, i keep getting seemingly random crashes from StackOverflows when dealing with really long tracks

Stack overflow might be from trying to draw too many lines, (maybe), could trying to read every 'Nth' entry in the tracklog solve that? I'm not sure how C# handles these things, much less how your code does. But if it isn't being tidy and clean in it's 'read tracklog->grab point, connect to last point->draw track->return to tracklog entry;' loop(or however you constructed this), it may be leaving junk on the stack after each iteration.

In any case, this looks like it'd be fun, are the tracks positions fixed based on position within a SOI?

Link to comment
Share on other sites

This thread is quite old. Please consider starting a new thread rather than reviving this one.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...