Howto:Dynamic Liveries via Canvas: Difference between revisions

m (→‎Canvas Code: "Fuselage" must be a texture used in the 3D model)
Line 155: Line 155:


[[File:Two-layers.jpg|325px|thumb|right|The two textures concerned, the ASG paintwork and the separate alpha transparency with dirt streaks]]
[[File:Two-layers.jpg|325px|thumb|right|The two textures concerned, the ASG paintwork and the separate alpha transparency with dirt streaks]]
[[File:Dynamic-Textures-First-Try.jpg|325px|thumb|right|A first (failed) attempt to put a canvas onto a model object in place of its texture.]]


To document the implementation on a FlightGear aircraft from the aircraft developer's point of view, I've chosen one of my pet projects, the Eurofighter EF2000 V2.0 which will be released in early 2015.
To document the implementation on a FlightGear aircraft from the aircraft developer's point of view, I've chosen one of my pet projects, the Eurofighter EF2000 V2.0 which will be released in early 2015.
The intention is to use Canvas to allow multiple textures per livery, in this case those textures being the original livery paintwork and another, alpha-transparent texture consisting of dirt steaks specifically added to the livery paintwork to match with vents, seams and other sources of grimy build-ups. The intention is to allow dynamic management of the transparency of the dirt layer according to time and exposure to various elements, maintaining compatibility with the standard livery switching method and working similarly whether Rembrandt is enabled or not.  
The intention is to use Canvas to allow multiple textures per livery, in this case those textures being the original livery paintwork and another, alpha-transparent texture consisting of dirt streaks specifically added to the livery paintwork to match with vents, seams and other sources of grimy build-ups. The intention is to allow dynamic management of the transparency of the dirt layer according to time and exposure to various elements, maintaining compatibility with the standard livery switching method and working similarly whether Rembrandt is enabled or not.  


''This section will be updated as the implementation continues.''
''This section will be updated as the implementation continues.''
Line 187: Line 186:
     .setSize(2048,2048);
     .setSize(2048,2048);
</syntaxhighlight>
</syntaxhighlight>
[[File:Dynamic-Textures-First-Try.jpg|325px|thumb|right|A first (failed) attempt to put a canvas onto a model object in place of its texture.]]
[[File:Ef2000dyn1.jpg|325px|thumb|right|The EF2000 showing a dynamically-changed texture on the fuselage - at the moment, the resolution appears to be wrong and the UV coordinates seem to be being ignored.]]
80

edits