2019-07-24 10:51 CEST

View Issue Details Jump to Notes ]
IDProjectCategoryView StatusLast Update
0006204Spring engineGeneralpublic2019-04-18 21:24
Reportersprung 
Assigned ToKloot 
PrioritylowSeveritytweakReproducibilityalways
StatusresolvedResolutionfixed 
Product Version104.0 +git 
Target VersionFixed in Version104.0 +git 
Summary0006204: Make nanoframe shadow grow alongside unit instead of appearing suddenly
DescriptionA nanoframe's shadow appears suddenly at 2/3 completion ( https://github.com/spring/spring/blob/develop/rts/Rendering/UnitDrawer.cpp#L1261 ).

It would be good if it grew alongside the unit in the "fill" phase between 1/3 and 2/3 completion.
Additional InformationPseudocode description:

```C++
void CUnitDrawer::DrawUnitModelBeingBuiltShadow(const CUnit* unit, bool noLuaCall)
{
    if (unit->buildProgress <= 0.333f)
        return;

    if (unit->buildProgress <= 0.666f) {
        unitDrawer->GetDrawerState(DRAWER_STATE_SEL)->SetBuildClipPlanes
            ( {0, 1, 0, 0 }
            , {0,-1, 0, unit->buildProgress * 3.f - 2.f}
    ); }

    DrawUnitModel(unit, noLuaCall);
}
```
TagsNo tags attached.
Checked infolog.txt for lua ErrorsIrrelevant
Attached Files

-Relationships
+Relationships

-Notes

~0019950

Kloot (developer)

don't write me pseudocode
+Notes

-Issue History
Date Modified Username Field Change
2019-04-17 11:32 sprung New Issue
2019-04-18 21:24 Kloot Assigned To => Kloot
2019-04-18 21:24 Kloot Status new => resolved
2019-04-18 21:24 Kloot Resolution open => fixed
2019-04-18 21:24 Kloot Fixed in Version => 104.0 +git
2019-04-18 21:24 Kloot Note Added: 0019950
+Issue History