Might be a stupid Q, but need to know. I am working on bump map texturizing the Canberra BI8 model. ! want seams (depth) and rivets (height). To this end I created 2 bumpmaps for this. I put the references for the effects into the model xml, but only the first texture is shown.
So...
Should I a) use the model xml to call textures using two .eff files, or use one .eff file to describe the 2 textures? ; or b) can I generate a bumpmap with BOTH height and depth from the "base"?
The code I have is as follows:
- Code: Select all
2 .eff files, named eec_bumpspec_rivets & eec_bumpspec_seams
- Code: Select all
<?xml version="1.0" encoding="utf-8"?>
<!-- Bump and specular effect-->
<PropertyList>
<name>Aircraft/CanberraBI8/Models/Effects/eec_bumpspec_seams</name>
<inherits-from>Effects/bumpspec</inherits-from>
<parameters>
<texture n="2">
<image>Aircraft/CanberraBI8/Models/Liveries/seams_bump.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>
- Code: Select all
<?xml version="1.0" encoding="utf-8"?>
<!-- Bump and specular effect-->
<PropertyList>
<name>Aircraft/CanberraBI8/Models/Effects/eec_bumpspec_rivets</name>
<inherits-from>Effects/bumpspec</inherits-from>
<parameters>
<texture n="3">
<image>Aircraft/CanberraBI8/Models/Liveries/rivets_bump.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>
I also tried (without success)
- Code: Select all
<?xml version="1.0" encoding="utf-8"?>
<!-- Bump and specular effect-->
<PropertyList>
<name>Aircraft/CanberraBI8/Models/Effects/eec_bumpspec</name>
<inherits-from>Effects/bumpspec</inherits-from>
<parameters>
<texture n="2">
<image>Aircraft/CanberraBI8/Models/Liveries/seams_bump.png</image>
<filter>linear-mipmap-linear</filter>
<wrap-s>repeat</wrap-s>
<wrap-t>repeat</wrap-t>
<internal-format>normalized</internal-format>
</texture>
<texture n="3">
<image>Aircraft/CanberraBI8/Models/Liveries/rivets_bump.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>
with the n="" being set up as shown or both values being "2".
My relevant model xml code is as follows:
- Code: Select all
<!-- Bump Map Effect -->
<effect>
<inherits-from>Aircraft/CanberraBI8/Models/Effects/eec_bumpspec_seams</inherits-from>
<object-name>Low-Rez-Body</object-name>
<object-name>FUS-Hull</object-name>
<object-name>CP-R-Frame-Inside</object-name>
<object-name>CP-F-Canopy-Frame</object-name>
<object-name>WNG-L</object-name>
<object-name>WNG-R</object-name>
<object-name>WNG-R-Aileron</object-name>
<object-name>WNG-L-Aileron</object-name>
<object-name>WNG-F-Tip-Tank</object-name>
<object-name>WNG-R-Tip-Tank</object-name>
<object-name>ENG-L-Nacelle</object-name>
<object-name>ENG-R-Nacelle</object-name>
<object-name>EMP-Tail-Plane</object-name>
<object-name>EMP-L-Elev</object-name>
<object-name>EMP-R-Elev</object-name>
<object-name>EMP-Fin</object-name>
<object-name>EMP-Rudder</object-name>
<object-name>UC-L-Door</object-name>
<object-name>UC-LI-Door-Outside</object-name>
<object-name>UC-RI-Door-Outside</object-name>
<object-name>UC-R-Door</object-name>
<object-name>WNG-R-Inner-Flap</object-name>
<object-name>WNG-L-Inner-Flap</object-name>
<object-name>WNG-R-Outer-Flap</object-name>
<object-name>WNG-L-Outer-Flap</object-name>
<object-name>FUS-LO-Bomb-Door</object-name>
<object-name>FUS-RO-Bomb-Door</object-name>
<object-name>UC-RF-Door.002</object-name>
<object-name>UC-RF-Door.001</object-name>
<object-name>FUS-Hatch-Outside</object-name>
</effect>
<effect>
<inherits-from>Aircraft/CanberraBI8/Models/Effects/eec_bumpspec_rivets</inherits-from>
<object-name>Low-Rez-Body</object-name>
<object-name>FUS-Hull</object-name>
<object-name>CP-R-Frame-Inside</object-name>
<object-name>CP-F-Canopy-Frame</object-name>
<object-name>WNG-L</object-name>
<object-name>WNG-R</object-name>
<object-name>WNG-R-Aileron</object-name>
<object-name>WNG-L-Aileron</object-name>
<object-name>WNG-F-Tip-Tank</object-name>
<object-name>WNG-R-Tip-Tank</object-name>
<object-name>ENG-L-Nacelle</object-name>
<object-name>ENG-R-Nacelle</object-name>
<object-name>EMP-Tail-Plane</object-name>
<object-name>EMP-L-Elev</object-name>
<object-name>EMP-R-Elev</object-name>
<object-name>EMP-Fin</object-name>
<object-name>EMP-Rudder</object-name>
<object-name>UC-L-Door</object-name>
<object-name>UC-LI-Door-Outside</object-name>
<object-name>UC-RI-Door-Outside</object-name>
<object-name>UC-R-Door</object-name>
<object-name>WNG-R-Inner-Flap</object-name>
<object-name>WNG-L-Inner-Flap</object-name>
<object-name>WNG-R-Outer-Flap</object-name>
<object-name>WNG-L-Outer-Flap</object-name>
<object-name>FUS-LO-Bomb-Door</object-name>
<object-name>FUS-RO-Bomb-Door</object-name>
<object-name>UC-RF-Door.002</object-name>
<object-name>UC-RF-Door.001</object-name>
<object-name>FUS-Hatch-Outside</object-name>
</effect>
Long and the short - can I only have 1 texture, or more? Then, if so, how?
Gary aka N-SCOT