Hard Light Productions Forums

Community Projects => The FreeSpace Upgrade Project => Topic started by: Shivan Hunter on August 14, 2022, 02:08:09 pm

Title: I made a couple tweaks: fixed 3d loadout icons, radar icons
Post by: Shivan Hunter on August 14, 2022, 02:08:09 pm
I went through all the weapon tech models in PCS2 and tweaked the radius (and sometimes bounding box) of detail0, so they show up properly in the loadout screen instead of being tiny and horrible and impossible to see. Also properly centered the EMP missile and some others that were a bit off.

https://i.imgur.com/ASfcoUP.png

Also: I always found it odd that the radar icon for a corvette was the Iceni, so I made a Deimos replacement (idk if it's any good) and a tbl entry so that the Iceni icon is only used by the Iceni itself. Also got rid of the grey box around the Orion and cargo icons.

https://i.imgur.com/AHx5lJU.png

Anyway you guys can take it or leave it but the microscopic icons have always annoyed me, so here:
https://mega.nz/file/0Z9gXYAL#pESPPm6dCBZ8i7-FERgLLJuAIVxdoy-3uTzHMb4WUnw
Title: Re: I made a couple tweaks: fixed 3d loadout icons, radar icons
Post by: Grizzly on August 14, 2022, 02:27:16 pm
Formidable!
Title: Re: I made a couple tweaks: fixed 3d loadout icons, radar icons
Post by: Iain Baker on August 14, 2022, 03:55:47 pm
Nice one. Sometimes even relatively minor changes can make a big difference 👍 
Title: Re: I made a couple tweaks: fixed 3d loadout icons, radar icons
Post by: Galemp on August 14, 2022, 07:38:02 pm
Those weapons have been bugging me for a very long time. Thanks!

FWIW I prefer the Iceni as the generic Corvette icon. The Deimos icon isn't abstracted enough for my taste.
Title: Re: I made a couple tweaks: fixed 3d loadout icons, radar icons
Post by: Shivan Hunter on August 14, 2022, 08:09:47 pm
Thanks all :)

I see your point about the Iceni - I'll probably keep the Deimos one in my own tweaks since the Iceni icon bugs me, but the Deimos's shape doesn't lend itself well to making a simple, readable icon.
Title: Re: I made a couple tweaks: fixed 3d loadout icons, radar icons
Post by: Shivan Hunter on August 14, 2022, 11:23:13 pm
Just because there are a couple other models in the FSPort MVPs and in other mods that might like to use this trick, here's exactly what I discovered:

It's the radius and bounding box of the detail0 subobject, not the model as a whole, that matters.

The radius controls the size of the weapon as an icon: FSO seems to be trying to fit the model's radius within the height of the icon (this makes it tiny for the obvious reason). You can set the radius to an incorrect value, about 40%-ish of what it should be, to compensate for this. It usually took me a couple tries to make it look right.

Centering the icon within the rectangle uses detail0's bounding box. This is why the EMP bomb was so off-center - the detail0 is just the glass bit in front, with the rest of the model being a subobject of that. I extended detail0's bounding box back to cover the whole bomb, and the icon moved forwards to fit the rectangle.

Centering vertically is backwards, for some reason. Extending the bounding box downwards will make the icon move downwards inside its rectangle. A few of the models I tweaked have bounding boxes with the bottom bit moved in the opposite way to what you'd expect, because that made it fit correctly.

None of these tweaks to detail0 seem to change the way the model is displayed in its animation, on the side of the window, so don't worry about that.
Title: Re: I made a couple tweaks: fixed 3d loadout icons, radar icons
Post by: DefCynodont119 on August 14, 2022, 11:52:36 pm
Cool! I really like what you did with the 3d loadout weapon icons.
Title: Re: I made a couple tweaks: fixed 3d loadout icons, radar icons
Post by: 0rph3u5 on August 17, 2022, 02:14:50 am
Just because there are a couple other models in the FSPort MVPs and in other mods that might like to use this trick, here's exactly what I discovered:

It's the radius and bounding box of the detail0 subobject, not the model as a whole, that matters.

The radius controls the size of the weapon as an icon: FSO seems to be trying to fit the model's radius within the height of the icon (this makes it tiny for the obvious reason). You can set the radius to an incorrect value, about 40%-ish of what it should be, to compensate for this. It usually took me a couple tries to make it look right.

Centering the icon within the rectangle uses detail0's bounding box. This is why the EMP bomb was so off-center - the detail0 is just the glass bit in front, with the rest of the model being a subobject of that. I extended detail0's bounding box back to cover the whole bomb, and the icon moved forwards to fit the rectangle.

Centering vertically is backwards, for some reason. Extending the bounding box downwards will make the icon move downwards inside its rectangle. A few of the models I tweaked have bounding boxes with the bottom bit moved in the opposite way to what you'd expect, because that made it fit correctly.

None of these tweaks to detail0 seem to change the way the model is displayed in its animation, on the side of the window, so don't worry about that.

Does this make any difference to the collision of the missiles in gameplay?
Title: Re: I made a couple tweaks: fixed 3d loadout icons, radar icons
Post by: Shivan Hunter on August 17, 2022, 02:21:29 am
The tech models are only used in the loadout screen; in gameplay, the model is the low-poly version which I haven't touched. So it shouldn't make any difference unless someone has used a tech model as an ingame missile model.

(How does missile/projectile collision work in FSO if, for instance, the missile travels much farther per frame than its bounding box size? I've made extremely fast-traveling weapons before and they still hit very small targets.)
Title: Re: I made a couple tweaks: fixed 3d loadout icons, radar icons
Post by: 0rph3u5 on August 17, 2022, 09:41:52 am
Ah, I must have missed that you were talking about the tech model.
Title: Re: I made a couple tweaks: fixed 3d loadout icons, radar icons
Post by: mjn.mixael on September 08, 2022, 12:27:11 pm
This is good stuff. I'm going to hold off on the icon change pending more opinions, but I'll stick the weapons update in a 4.6.7 patch shortly.
Title: Re: I made a couple tweaks: fixed 3d loadout icons, radar icons
Post by: Iain Baker on September 08, 2022, 12:36:26 pm
This is great, but by blowing up the weapon icon images it shows their lack of detail. This probably wouldn’t have been a problem back when we all had 15 inch 4:3 monitors that maxed at 1024(ish) resolution, but on 23 inch and up monitors running at 1080p and above it’s pretty noticeable. #firstworldproblems  :lol:

Just a thought - would they benefit from AI upscale?

 
Title: Re: I made a couple tweaks: fixed 3d loadout icons, radar icons
Post by: mjn.mixael on September 08, 2022, 12:38:51 pm
These are actual 3D models, so I dunno what you're gonna do with an AI upscale.
Title: Re: I made a couple tweaks: fixed 3d loadout icons, radar icons
Post by: Iain Baker on September 08, 2022, 12:46:02 pm
Really? I’m talking about the static icons in the load out screen. I thought those were sprites? If not, I guess I lernt something new 👍
Title: Re: I made a couple tweaks: fixed 3d loadout icons, radar icons
Post by: mjn.mixael on September 08, 2022, 12:50:11 pm
Depending on your FSO settings, those can be actual image icons (retail's are blue outlines of the rough weapon shape) or sprites generated from the 3D model you see in the full weapon view on the right of the screen in weapon select.
Title: Re: I made a couple tweaks: fixed 3d loadout icons, radar icons
Post by: Strygon on September 08, 2022, 03:20:44 pm
Even then, AI Upscale can't magically add more detail where there previously was none. It makes existing details sharper, but doesn't add anything in of itself.
Title: Re: I made a couple tweaks: fixed 3d loadout icons, radar icons
Post by: Shivan Hunter on September 08, 2022, 06:45:03 pm
The issue with the weapon icons is that there's no lighting on them - this was always the case, but it's much more apparent if the icons are the proper size. I won't say "this should be easy to implement" because I know nothing in FSO is ever easy to implement :P
Title: Re: I made a couple tweaks: fixed 3d loadout icons, radar icons
Post by: Shivan Hunter on January 29, 2024, 05:31:07 am
 :bump:

Sorry to pester, but the destroyer and cargo icons are still surrounded by a mysterious box:

(https://i.imgur.com/OqMOqYB.png)

the radar-capital.dds and radar-cargo.dds files in my link in the first post should fix this! ;7