1
0
Fork 0

Add normal-map effect to c172p, including update to paintkit to allow

easy modification.
This commit is contained in:
stuart 2010-04-07 23:07:46 +00:00
parent 5b063ad32b
commit 817aa23583
8 changed files with 72 additions and 1 deletions

Binary file not shown.

After

Width:  |  Height:  |  Size: 92 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 64 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 172 KiB

View file

@ -0,0 +1,15 @@
<?xml version="1.0" encoding="utf-8"?>
<!-- Bump and specular effect -->
<PropertyList>
<name>Aircraft/c172p/Models/Effects/bumpspec-fuselage</name>
<inherits-from>Effects/bumpspec</inherits-from>
<parameters>
<texture n="2">
<image>Aircraft/c172p/Models/Liveries/fuselage-normal.png</image>
<filter>linear-mipmap-linear</filter>
<wrap-s>repeat</wrap-s>
<wrap-t>repeat</wrap-t>
<internal-format>normalized</internal-format>
</texture>
</parameters>
</PropertyList>

View file

@ -0,0 +1,15 @@
<?xml version="1.0" encoding="utf-8"?>
<!-- Bump and specular effect -->
<PropertyList>
<name>Aircraft/c172p/Models/Effects/bumpspec-tail</name>
<inherits-from>Effects/bumpspec</inherits-from>
<parameters>
<texture n="2">
<image>Aircraft/c172p/Models/Liveries/tail-normal.png</image>
<filter>linear-mipmap-linear</filter>
<wrap-s>repeat</wrap-s>
<wrap-t>repeat</wrap-t>
<internal-format>normalized</internal-format>
</texture>
</parameters>
</PropertyList>

View file

@ -0,0 +1,15 @@
<?xml version="1.0" encoding="utf-8"?>
<!-- Bump and specular effect -->
<PropertyList>
<name>Aircraft/c172p/Models/Effects/bumpspec-wing</name>
<inherits-from>Effects/bumpspec</inherits-from>
<parameters>
<texture n="2">
<image>Aircraft/c172p/Models/Liveries/wing-normal.png</image>
<filter>linear-mipmap-linear</filter>
<wrap-s>repeat</wrap-s>
<wrap-t>repeat</wrap-t>
<internal-format>normalized</internal-format>
</texture>
</parameters>
</PropertyList>

View file

@ -7,8 +7,34 @@
<pitch-deg>-3.0</pitch-deg>
<z-m> -0.065 </z-m>
</offsets>
<!-- Normal shader effect. Separate effects required for each normal map texture -->
<nasal>
<effect>
<inherits-from>Aircraft/c172p/Models/Effects/bumpspec-wing</inherits-from>
<object-name>wing_1</object-name>
<object-name>flaps</object-name>
<object-name>rightaileron</object-name>
<object-name>leftaileron</object-name>
</effect>
<effect>
<inherits-from>Aircraft/c172p/Models/Effects/bumpspec-fuselage</inherits-from>
<object-name>fuselage_1</object-name>
</effect>
<effect>
<inherits-from>Aircraft/c172p/Models/Effects/bumpspec-tail</inherits-from>
<object-name>vstab</object-name>
<object-name>rudder_1</object-name>
<object-name>hstab</object-name>
<object-name>elevatorleft</object-name>
<object-name>elevatorright</object-name>
</effect>
<nasal>
<load>
var livery_update = aircraft.livery_update.new(
"Aircraft/c172p/Models/Liveries", 10,