scp-fs2open / fs2open.github.com

Origin Repository for SCP FreeSpace 2 Open
https://www.hard-light.net/
Other
401 stars 161 forks source link

FR: 3D models on Radar #2990

Open z64555 opened 3 years ago

z64555 commented 3 years ago

This is an old one, not sure if it ever got put in Mantis or if it was just forgotten.

This feature would use the lowest LOD, or whichever appropriate, of the model at a reduced size instead of drawing a blip. This would be drawn on certain ship classes most notably the big ones but may be extended to other ships as well.

The pseudocode of the model render would be: If (we're close enough to see the profile of the ship) then draw model, Else draw blip

It will use the standard color codes for other blips, so if its a green blip then draw it with a green model. The trick is to get the style look right because it should be transparent looking (maybe additive blending mode).

z64555 commented 3 years ago

The standard radar should be able to do this easy, since it should use the same projection algorithm used to render everything to screen, only difference is that the Fov of the projection matrix is super wide (359 degrees or nearly the full circle). Backface culling and other tricks should apply

The problem occurs when trying to do an orb or dradis radar, as this requires boolean operations to clip the models that go outside of the plot area.

z64555 commented 3 years ago

One other possible implementation with drawing on orb and dradis is to play tricks with the alpha on the models, thereby only painting portions of the object that's within the plot area. Shaders may be able to do this, but I'm not sure what would be computationally cheaper