TODO/2.2/Fix model scaling
General
List of bad scaling in ufopedia:
- Stun rod
- machine pistol
- micro shotgun
- laser rifle
- stealth intercepter
- heavy laser
[open] Fix scaling for all models integrated into the game; examples of broken things here, here, here and here.
- Mattn 21:08, 20 December 2006 (CET) please don't scale these models - they are used in our maps files already - define a scale and rotate factor in our models.ufo to make them work via menu
- now with scale and angle parameters in ufo files aircraft models can be easily adjusted to fit into proper menus, but i somehow find lack of position parameter per model type, however I am not sure if this cannot be done by already implemented scale and angle--Zenerka 12:14, 3 January 2007 (CET)
- We really need a more general solution for all those scaling issues. we currently have at least 5 places where models (that are used in the inventory) are shown ...
- the battlescape (uses the original model-size afaik)
- ufopedia
- production menu
- the inventory
- and the aircraft menu (should be fixed already?)
- (is the aircraft-equip menu planned to show 3d models?)
- aircraft equip menu already shows 3d models, and they are nicely rotated (like view from above)--Zenerka 13:04, 8 January 2007 (CET)
- Sorry, i wasn't verbose enough here ... i was talking about the upgrades themself, not just the aircraft. Is it planned to display upgrades in 3D? --Hoehrer 13:29, 8 January 2007 (CET)
- If we ever get models for them - yes definitly Mattn 17:05, 10 January 2007 (CET)
- We already have at least one (See the shiva model in Changelog/2.1) Which meant it is one more place wher3e we need nice placement of a 3d model. --Hoehrer 17:33, 10 January 2007 (CET)
- Sorry, i wasn't verbose enough here ... i was talking about the upgrades themself, not just the aircraft. Is it planned to display upgrades in 3D? --Hoehrer 13:29, 8 January 2007 (CET)
- aircraft equip menu already shows 3d models, and they are nicely rotated (like view from above)--Zenerka 13:04, 8 January 2007 (CET)
Related Bugs
- #1754442 Ufopedia - too big images/models
- #1697992 Oversized research graphics (duplicate)
- #1768056 Huge stun rod image (duplicate)
Possible solutions
Either add the functionality so we can tweak size, placement and rotation for each of them --Hoehrer 16:22, 7 January 2007 (CET)
- My personal favourite so far would be a model-scale-list for each model that gets displayed. This list has the scale, position and rotation for each place the model is displayed (I can provide a code-mockup if s/b would like that). You just hand the pointer to this list to the renderer and he then uses the correct scale for each model. This would be in a common place (e.g. the research list or something completely separate) so it only needs to be parsed in one place. --17:33, 10 January 2007 (CET)
Update: There already seems to be basic support for menu-depending scaling in the code. See models.ufo
:
menuscale <x,y,z>
and this in cl_menu.c
and cl_menu.h
menuModel->menuScaleCnt menuModel->menuScaleMenusPtr[] menuModel->menuScaleValue[]
Looks pretty useable already, but I dunno how advanced implementation is right now though. --Hoehrer 14:39, 6 August 2007 (CEST)
use images
... or we may have to resort to images to make the task easier. --Hoehrer 16:22, 7 January 2007 (CET)
Autoscaling
Or we could get good autoscaling to work. Currently it does not display menu_models with tags at all (i.e. Models that consists of more that one part: crafts, aliens, ugvs etc..) --Hoehrer 13:21, 6 August 2007 (CEST)
Possible (temporary) workaround
We could deactivate autoscaling in ufopedia for now and scale every single entry with a "menu_model" entry in models.ufo. --Hoehrer 13:21, 6 August 2007 (CEST)