Page MenuHomeWildfire Games

Material Requirements Cleanup
ClosedPublic

Authored by Stan on Jan 24 2017, 9:55 PM.

Details

Reviewers
vladislavbelov
Group Reviewers
Restricted Owners Package(Owns No Changed Paths)
Trac Tickets
#4113
Summary

If you use the material basic_trans_spec, it will require you to add a normTex, which the name does not imply. Solution : Do not load the norm texture.

Only files using it are:

art/actors/units/celts/wolfhound.xml: <material>basic_trans_spec.xml</material>
art/materials/basic_trans_parallax_spec.xml: <alternative material="basic_trans_spec.xml" quality="8"/>

Which doesn't have a norm texture

Test Plan

Not sure. It should have sent a warning, but for some reason it doesn't, maybe I need to clear the cache.

Diff Detail

Repository
rP 0 A.D. Public Repository
Lint
Lint Skipped
Unit
Unit Tests Skipped
Build Status
Buildable 5104
Build 8750: Vulcan BuildJenkins

Event Timeline

Stan created this revision.Jan 24 2017, 9:55 PM
Stan edited the summary of this revision. (Show Details)Jan 24 2017, 10:09 PM
Stan updated the Trac tickets for this revision.

I think there're few materials with useless requires, but also there're places when material is used and its params are passed, but the name of the material doesn't contain this param, so it should be checked too.

Stan updated this revision to Diff 3082.Aug 12 2017, 12:26 AM

Cleanup every file
rename two.

Stan updated this revision to Diff 4706.Dec 10 2017, 6:34 PM

@vladislavbelov could you review this ? Making sure everything now requires the right textures because D1016 returns too much false positives for me to fix. I also need to investigate why particles appear in your script and if they use incorrect materials as well.

Stan retitled this revision from Basic_trans_spec should not require parallax to Material Requirements Cleanup .Dec 10 2017, 6:35 PM
Stan added a subscriber: Itms.
Vulcan added a subscriber: Vulcan.Dec 10 2017, 10:55 PM
Executing section Default...
Executing section Source...
Executing section JS...

Successful build - Chance fights ever on the side of the prudent.

Updating workspaces...
Build (release)...
Build (debug)...
Running release tests...
Running cxxtest tests (308 tests)....................................................................................................................................................................................................................................................................................................................OK!
Running debug tests...
Running cxxtest tests (308 tests)....................................................................................................................................................................................................................................................................................................................OK!
Checking XML files...
/public/art/materials/player_trans_ao_parallax.xml:0: Relax-NG validity error : Element material has extra content: text
Stan added a comment.Feb 13 2018, 9:36 PM
This comment was removed by Stan.
Stan planned changes to this revision.Feb 20 2018, 11:33 PM
Stan updated this revision to Diff 5854.Feb 20 2018, 11:37 PM

Rebase, add some files.

vladislavbelov accepted this revision.Feb 20 2018, 11:54 PM

Changes are valid (only cleaning and renaming). The xml validator still have warnings/errors, because it doesn't count a parent actor. So we'll probably need another cleaning, but after the validator fix.

This revision is now accepted and ready to land.Feb 20 2018, 11:54 PM

Build failure - The Moirai have given mortals hearts that can endure.

Link to build: https://jenkins.wildfiregames.com/job/differential/55/display/redirect

Stan updated this revision to Diff 5862.Feb 21 2018, 9:08 PM

Build failure - The Moirai have given mortals hearts that can endure.

Link to build: https://jenkins.wildfiregames.com/job/differential/59/display/redirect

Stan closed this revision.Feb 22 2018, 7:28 PM