Board index FlightGear Development Aircraft

Aero L-159 ALCA

Questions and discussion about creating aircraft. Flight dynamics, 3d models, cockpits, systems, animation, textures.

Re: Aero L-159 ALCA

Postby MIG29pilot » Fri Jun 05, 2015 3:54 pm

Tomaskom wrote in Fri Jun 05, 2015 2:10 pm:Now you're going really offtopic

Sorry.
Thanks!
User avatar
MIG29pilot
 
Posts: 1454
Joined: Tue May 19, 2015 4:03 pm
Location: 6 feet under Snow
Callsign: MIG29pilot
Version: 3.7nightly
OS: Windows 10

Re: Aero L-159 ALCA

Postby MIG29pilot » Tue Jun 09, 2015 9:01 pm

Never has crashing been so fun.
User avatar
MIG29pilot
 
Posts: 1454
Joined: Tue May 19, 2015 4:03 pm
Location: 6 feet under Snow
Callsign: MIG29pilot
Version: 3.7nightly
OS: Windows 10

Re: Aero L-159 ALCA

Postby pjedvaj » Thu Jan 31, 2019 7:47 pm

I've decided to give this aircraft some love. I'm currently working on a single seat attack version of ALCA.

Model renders:

Image

Image

First screenshot:

Image
Retired
User avatar
pjedvaj
 
Posts: 682
Joined: Thu Mar 18, 2010 8:32 pm

Re: Aero L-159 ALCA

Postby pjedvaj » Sat Feb 02, 2019 4:23 pm

Package is based on the original L-159 and in this stage it has most of it's functionality (disintegration still isn't enabled) but it is repacked as ALCA.

Image

GitHub repository for the ALCA project: https://github.com/pjedvaj/ALCA

ToDo (short term):

1. UV mapping of external model
2. Textures (liveries)
3. Animations of external model

ToDo (long term):

1. Cockpit model
2. Instruments
3. Weapon system
4. New weapon models and textures
Retired
User avatar
pjedvaj
 
Posts: 682
Joined: Thu Mar 18, 2010 8:32 pm

Re: Aero L-159 ALCA

Postby pjedvaj » Mon Feb 04, 2019 12:52 pm

Image

Update on progress;

ToDo (short term):

1. UV mapping of external model - checked
2. Textures (liveries) >> to be done
3. Animations of external model - checked

It came back to me why I hate working with the AC model file format. :)
Retired
User avatar
pjedvaj
 
Posts: 682
Joined: Thu Mar 18, 2010 8:32 pm

Re: Aero L-159 ALCA

Postby legoboyvdlp » Mon Feb 04, 2019 2:11 pm

Looks good :D
User avatar
legoboyvdlp
 
Posts: 6508
Joined: Sat Jul 26, 2014 1:28 am
Callsign: YV-LEGO
Version: 2018.3.1
OS: Windows 10 HP

Re: Aero L-159 ALCA

Postby pjedvaj » Mon Feb 04, 2019 3:55 pm

It should look very nice when I finish it; I've played with FlightGear's ALS shaders and I'll be using Substance Painter to paint it and export PBR maps.

Image
Retired
User avatar
pjedvaj
 
Posts: 682
Joined: Thu Mar 18, 2010 8:32 pm

Re: Aero L-159 ALCA

Postby pjedvaj » Tue Feb 05, 2019 9:33 am

It's really hard to control reflectivity with texture maps in ALS shader;

Image

I'm getting much better results by disabling it. :cry:

Image

Does anyone have any clues (yes I've read the manual and played around)? :)
Retired
User avatar
pjedvaj
 
Posts: 682
Joined: Thu Mar 18, 2010 8:32 pm

Re: Aero L-159 ALCA

Postby legoboyvdlp » Tue Feb 05, 2019 10:14 am

What you want is a texture that controls reflectivity with the alpha channel.

It goes in texture slot n4:

Code: Select all
<texture n="4">         
  <image>Aircraft/Generic/Effects/ReflectMaps/reflectmap.png</image>
  <filter>linear-mipmap-linear</filter>
  <wrap-s>clamp</wrap-s>
  <wrap-t>clamp</wrap-t>
  <internal-format>normalized</internal-format>
</texture>


It also must be enabled:
Code: Select all
<reflect-map-enabled type="int">1</reflect-map-enabled>



It seems that the alpha channel (0 - 1) is multiplied by the material specularity to give the final reflectivity.

The bare metal of your texture should have maximum alpha I think, while the paint should be a lower value (0.2?)

Also remember that reflections and specularity are different things although they seem to work similarly. Specularity is the reflection of light sources while reflectivity is basically just reflecting a cubemap.

This: is specularity

Image

while this is reflectivity:

Image

A mix of high specularity and weak reflections seems to work well especially for airliners but for fighters it might be different.


By the way, that looks really good -- nice work!
User avatar
legoboyvdlp
 
Posts: 6508
Joined: Sat Jul 26, 2014 1:28 am
Callsign: YV-LEGO
Version: 2018.3.1
OS: Windows 10 HP

Re: Aero L-159 ALCA

Postby pjedvaj » Tue Feb 05, 2019 10:39 am

Thanks for a speedy reply and help.

At least I got the code right (now is disabled).

Code: Select all
<!-- Reflection -->

      <reflection-enabled type="int">1</reflection-enabled>
      <reflection-type type="int">2</reflection-type>
      <reflection-dynamic type="int">1</reflection-dynamic>
      <reflection-fresnel type="float">0.01</reflection-fresnel>
      <reflection-rainbow type="float">0.2</reflection-rainbow>
      <reflection-noise type="float">0.01</reflection-noise>
      <reflection-correction type="float"><use>/sim/rendering/refl_correction</use></reflection-correction>
      
      <!--

      <reflect-map-enabled type="int">1</reflect-map-enabled>

      <texture n="4">
         <image>Aircraft/ALCA/Models/Liveries/Metallic.png</image>
         <filter>linear-mipmap-linear</filter>
         <wrap-s>clamp</wrap-s>
         <wrap-t>clamp</wrap-t>
         <internal-format>normalized</internal-format>
      </texture>

      <texture n="5">
         <type>cubemap</type>
         <images>
            <positive-x>Aircraft/Generic/Effects/CubeMaps/fair-sky/fair-sky_nx.png</positive-x>
            <negative-x>Aircraft/Generic/Effects/CubeMaps/fair-sky/fair-sky_px.png</negative-x>
            <positive-y>Aircraft/Generic/Effects/CubeMaps/fair-sky/fair-sky_ny.png</positive-y>
            <negative-y>Aircraft/Generic/Effects/CubeMaps/fair-sky/fair-sky_py.png</negative-y>
            <positive-z>Aircraft/Generic/Effects/CubeMaps/fair-sky/fair-sky_nz.png</positive-z>
            <negative-z>Aircraft/Generic/Effects/CubeMaps/fair-sky/fair-sky_pz.png</negative-z>
         </images>
      </texture> -->


I'm not going for glossiness or specularity, I need reflectivity shader to render Metal map exported from Substance Painter.

Didn't know about Alpha channel multiplication, that should be it. I'll try to play with it. :wink:
Retired
User avatar
pjedvaj
 
Posts: 682
Joined: Thu Mar 18, 2010 8:32 pm

Re: Aero L-159 ALCA

Postby pjedvaj » Tue Feb 05, 2019 11:12 am

Thanks again, you saved the day. Alpha did the trick, fully transparent is non-metal, and opaque is rendering as metal.

Image

I'm still getting issues from my normal map interfering with reflectivity (darker texture and UV seam lines). I'll paint it manually anyway;

Image
Retired
User avatar
pjedvaj
 
Posts: 682
Joined: Thu Mar 18, 2010 8:32 pm

Re: Aero L-159 ALCA

Postby legoboyvdlp » Tue Feb 05, 2019 11:30 am

Looks great! I don't see any normal map at all though; I hope that didn't break it?


Also, is this going to be your final livery? I don't think you can change this runtime.
User avatar
legoboyvdlp
 
Posts: 6508
Joined: Sat Jul 26, 2014 1:28 am
Callsign: YV-LEGO
Version: 2018.3.1
OS: Windows 10 HP

Re: Aero L-159 ALCA

Postby pjedvaj » Tue Feb 05, 2019 11:38 am

It's just an original one exported from Substance Painter, I'm drawing fuselage seams and rivets by hand in vector to be used as normal map.
Don't worry, it's also just a shader test livery. :D

I'm planning to paint at least 4 liveries: CZAF, IQAF and Draken included.

Image
Retired
User avatar
pjedvaj
 
Posts: 682
Joined: Thu Mar 18, 2010 8:32 pm

Re: Aero L-159 ALCA

Postby legoboyvdlp » Tue Feb 05, 2019 12:17 pm

In that case you would need to redo the reflectivity map (I'm sure you realized that). An all over low-value (whatever you used for the red paint) should work except for parts that are bare metal, like the gears or whatever else :)
User avatar
legoboyvdlp
 
Posts: 6508
Joined: Sat Jul 26, 2014 1:28 am
Callsign: YV-LEGO
Version: 2018.3.1
OS: Windows 10 HP

Re: Aero L-159 ALCA

Postby pjedvaj » Tue Feb 05, 2019 1:55 pm

Hope everything will go smoothly, for now I'm getting good results. This is first time I've used Substance Painter and it's a pleasure to work with.

Image
Retired
User avatar
pjedvaj
 
Posts: 682
Joined: Thu Mar 18, 2010 8:32 pm

PreviousNext

Return to Aircraft

Who is online

Users browsing this forum: wlbragg and 2 guests