Attention all skinners!
Results 1 to 25 of 305

Thread: Attention all skinners!

Hybrid View

  1. #1
    SOH-CM-2024 Pat Pattle's Avatar
    Join Date
    Jun 2005
    Location
    Newton Abbot, Devon. Dear old Blighty
    Age
    60
    Posts
    2,907
    Blog Entries
    1
    Can you upload a full uncompressed (i.e. not a JPG) version somewhere?
    And if you have a grayscale (a heightmap) version it will also be useful to me.
    Thanks!
    You have pm Ankor.
    CFS3 Battle of Britain Website: https://cfs3bob.wixsite.com/cfs3-bob
    CFS3 ACC Member & ETO Expansion Group

  2. #2
    Hi!
    Sorry for abrupt disappearance. Got too busy with real life stuff. I was going to release the beta of new shaders earlier this week, but it seems they won't be ready even this weekend.

    Yes, I think having both bump map and corrugation on the main texture may look weird, but I suppose you can't remove it on all existing skins anyway (I don't know how many are out there).
    Once it works you will be able to try of course

    I tried the texture by Pat Pattle and it really helped me to understand what I should work on.

    I will let everyone know when I have more news.

  3. #3
    I didn't realize you were this close! Looking forward to it!

  4. #4
    We'll be using this thread for an open discussion of the Beta testing a few of us are involved in. It should be at least somewhat instructive for those of you who are not directly involved, so thanks in advance for being patient with us while we sort things out.
    US Army, Major, Ret.

    Service To The Line,
    On The Line,
    On Time

    US Army Ordnance Corps.

  5. #5
    I thought the sun glare was a bit too overpowering, and seemed to be very sensitive to your viewing direction, so that with a slight turn of your head with TrackIR it would instantaneously flare up, or dim to nothing. I'm not sure it was the right place, but I went into Skybox.fx, and changed vs_glare from

    Diffuse = In.Diffuse * (1.2 * vSunScreenPos.w * (1.0 - smoothstep(1.2, 1.5, max(abs(vSunScreenPos.x),abs(vSunScreenPos.y)))) * (tex2Dlod(Tex0, float4(0.5,0.5, 0, 0)).x));

    to

    Diffuse = In.Diffuse * (1.05 * vSunScreenPos.w * (1.0 - smoothstep(1.2, 1.5, max(abs(vSunScreenPos.x),abs(vSunScreenPos.y)))) * (tex2Dlod(Tex0, float4(0.5,0.5, 0, 0)).x));

    and that seemed to settle things down.
    US Army, Major, Ret.

    Service To The Line,
    On The Line,
    On Time

    US Army Ordnance Corps.

  6. #6
    What texture is used for the sun glare effect? That might have something to do with it. I like it a lot, though some times if you maneuver quickly and the sun move behind a panel or other cockpit structure, the glare will not fade out until it is appearing to come out of the middle of an area where it should be blocked.

    Would it be possible to get a full features list so we know what to look for?

    Bugs - some have been around a while, others new, just restating them since it's a new version:
    -Bomb craters flicker
    -models using textures with an alpha channel to hide certain parts have shadows cast on them by the invisible parts
    -reflector sight bug as mentioned before (alt-tab did improve this)
    -sometimes at low level I will see a small roundish shadow on the ground not associated with a cloud, or terrain or any models.
    -reflections (I know these are known issues but just describing how they appear)
    -normal reflective aircraft do seem to have the r.dds working, but it also appears to change the color of the main texture somewhat as if it was a semi-transparent layer.
    -glass actually does use the environment effect, but only very faintly. It may actually be the fresnel effect applied to the glass and not actual reflection.

    Self-lit textures:
    Very nice! I was able to experiment with making my own and made some luminescent gauge markings.

    Reflector sights:
    After alt-tabbing out and then going back in, I was able to get a good look at them. I attempted to make a new one using a different reticle texture. The new texture was 512x512 and the lines of the reticle were about three or four pixels wide. The problem was that only the wider portions of the lines displayed all the time, with the rest only visible from certain angles.

    Cockpit lighting:
    I was confused by the notes in the ini file. The example didn't seem to use all the parameters. They do seem to work well though.

    Fresnel effect:
    I think this time you've got it pretty close, but it still makes the models look too wet or glossy. I think this may have to do with using the environment map. Perhaps if it used its own texture this could be improved. By way of explanation, specular effects look "dry" (as long as they aren't too sharp and intense) and the environment map makes a surface look "wet". I think the fresnel effect should be pretty dry, perhaps slightly wetter on reflective aircraft, but not much.

    Specular effect:
    Looks good, but seems more "wet" than previous versions and a bit overpowering. Also, is there a naming convention for adding specular and reflective maps for models that don't have them yet, or is this feature not enabled yet?

    Bump maps:
    Generally the bump effect looks better, but on models without an actual normal map, it still produces some odd effects. Is there still a way to turn it off for models that don't have a normal map and leave it enabled for those that do?

    Props:
    What is the purpose of the prop textures listed in the .ini file?

  7. #7
    I have the moving reticle working now. It works well with TrackIR in that I have to recenter it much less often since you can now tell when your line of site is drifting off center. It allows you to keep aiming correctly even after you've done a lot of head turning and maneuvering in combat that would normally leave the TrackIR view and Gun Sight out of sync.

    I did see some of the flashing on my Nvidia GTX670 with the latest 347.25 drivers, but it wasn't too bad. I eventually crashed into another plane and displaying those plane destruction effects triggered the screen to fill with errors (fragments of the HUD Gauge Textures everywhere) and the game crashed. Encountering the same conditions when I was flying a plane without the new reticle did not cause any problems.

    My screen is 3840 x 1024, and I have always seen a white boundary line narrower than that when flying through the clouds. That seems to be resolved in this version. I do not see any effect from changing the values for FOV in the ini file.

    I'm really liking how the cloud shadows look. I have them set at 10 for both Scale and Density. Wave Scale and Bump are both set to 5. Here's looking out the side window over the French Coast of the Channel.

    Attached Thumbnails Attached Thumbnails Cloud_Shadows.jpg  
    US Army, Major, Ret.

    Service To The Line,
    On The Line,
    On Time

    US Army Ordnance Corps.

  8. #8
    Hi! Great to see you've got it working!

    MajorMagee, that line is the correct place to adjust sun glare strength.
    My code doesn't load any special textures for sun glare, I think they are just the ones listed in <SunGlare ...> lines of suneffect.xml
    There is also a couple of lines in vs_overlay shader in the same file:
    Brightness = tex2Dlod(Tex0, float4(0.5, 0.5, 0, 0)).x
    * 0.18 * vSunScreenPos.w * (1.0 - smoothstep(0.7,1.2, max(abs(vSunScreenPos.x),abs(vSunScreenPos.y))));
    That 0.18 multiplier controls the darkening (larger value -> darker) of the screen when looking toward the sun.
    I think it is realistic as is, but it is also possible to make the whole image brighter instead, similar to the stock white out effect:
    Find these lines near the end of the file - inside pass BlendOverlay { ... } section:
    BlendOp = RevSubtract;
    SrcBlend = SrcAlpha;
    DestBlend = One;
    And change RevSubtract to Add. You may also need to increase the above mentioned multiplier to better see the effect.

    It is possible to make the glare react quicker to sun visibility - right now it takes about 10 frames for the glare to disappear when the sun is occluded.
    Line 116 (the end of ps_occlusion, just before vs_average):
    return float4(lightAmount.xxx, 0.1);
    Change 0.1 to higher value, 0.2 will make the reaction time 2 times faster (i.e. 5 frames).

    I have always seen a white boundary line narrower than that when flying through the clouds. That seems to be resolved in this version.
    Yes, this is one of small fixes that I forgot to mention. It was very annoying.

    I have the moving reticle working now. It works well with TrackIR in that I have to recenter it much less often since you can now tell when your line of site is drifting off center. It allows you to keep aiming correctly even after you've done a lot of head turning and maneuvering in combat that would normally leave the TrackIR view and Gun Sight out of sync.
    Yep, that's the point. I wonder what Microsoft was thinking back then when they added TrackIR support, but didn't implement correctly moving reticles.

    Would it be possible to get a full features list so we know what to look for?
    I haven't made such list yet, there are some minor tweaks, but unless you notice them naturally they don't worth mentioning.
    Probably one interesting change is a fix to terrain bump mapping code. Previously it was causing ugly effects when standing on a run way with low sun - the width of bright and shadowed side of the runway unrealistically increased towards the end as if it wasn't flat, but pyramid shaped. This version should have it fixed, but as a side effect its likely decreased the overall strength of terrain bump mapping so I will have to retweak it.
    Other that this I think you already found most of the main issues. So anything else will be a surprise to me as well

    Very nice! I was able to experiment with making my own and made some luminescent gauge markings...
    ...Also, is there a naming convention for adding specular and reflective maps for models that don't have them yet, or is this feature not enabled yet?

    The trick here is that besides the normal map which is always a standalone texture, all other "material" maps has to be merged into one texture by using different channels (RGBA).
    The name should tell my code which channels are used for which purpose.
    Available codes area:
    +lrgb => colored light map, rgb channels.
    +lr, +lg, +lb, +la => grayscale light map (i.e. just the brightness) in one of the channels, i.e. "+lr" is light map in red channel.
    +sr, +sg, +sb, +sa => specular map in one of the channels.
    +gr, +gg, +gb, +ga => glossiness map in one of the channels (black - "rough" surface, white - extremely sharp highlights)
    So, if you want to have both specular and glossiness maps you need to name your texture like this: main_texture_name.+sr+gg.dds
    This will tell my shaders to look for specular map in red channel and for glossiness map in green channel.

    To reduce texture size for such maps you can save one or two channel textures using ATI1N (single channel) or ATI2N (two channel) compression using AMD Compressonator tool I mentioned before. This should provide better quality and smaller file size than standard DXT compression.
    Note that if you use DXT compression color channels will interfere with each other because this compression works on the resulting color as a whole and not on separate channels.
    Also note that normal and material maps doesn't have to be exactly the same size as the main texture. You can make them smaller if fine details are not needed.

    Another feature of texture naming is # as wildcard character. You can name normal map spitfire_ix#_t.+nm.dds and it will match both "c" and "e" models.

    - Bomb craters flicker
    Try changing ZBiasFlatEffects. For WOFF we set it to 1.
    By the way, I feel that ZBiasBitsResolution set to 15 is not correct since we are using high resolution z buffer (even if it is not selected in cfs3config, my shaders force it). I think it should be set to 23 or 24 .

    - models using textures with an alpha channel to hide certain parts have shadows cast on them by the invisible parts
    Yep, still need to look into it.

    - reflector sight bug as mentioned before (alt-tab did improve this)
    Investigating. Top priority.

    - sometimes at low level I will see a small roundish shadow on the ground not associated with a cloud, or terrain or any models.
    Yes, annoying issue. Can't find solution yet.

    - normal reflective aircraft do seem to have the r.dds working, but it also appears to change the color of the main texture somewhat as if it was a semi-transparent layer.
    Yes, haven't had time to make it look better, for now they behave as very reflective standard aircrafts.

    - glass actually does use the environment effect, but only very faintly. It may actually be the fresnel effect applied to the glass and not actual reflection.
    You are right. I still haven't managed to fix it properly. It is not too difficult, but this glass reflection really stands out from other cfs3 rendering features and I have to write some new code to properly support it.


    Cockpit lighting:
    I was confused by the notes in the ini file.

    Yes, light settings doesn't work there yet.


    but it still makes the models look too wet or glossy
    Yes, want to tone it down. However, in WOFF most models are too dull that's why I have to increase the overall glossiness. Maybe I will add a parameter to configure this.


    What is the purpose of the prop textures listed in the .ini file?
    Simplified shader for better performance - no shadows, simplified lighting, etc. Current version also adds some shine to props, but it doesn't look good on some models so I will likely remove it.


    I attempted to make a new one using a different reticle texture. The new texture was 512x512 and the lines of the reticle were about three or four pixels wide. The problem was that only the wider portions of the lines displayed all the time, with the rest only visible from certain angles.
    Can you send me the file?
    By the way, I want to add support for a special rendering technique allowing to make thin and smooth looking lines without using high resolution.


    I added the name of the CR.42's reticle texture to the .ini file, but it didn't disappear. So I hex edited it in the cockpit model to be invisible. Then my new reticle worked correctly. I scaled it to 2.0 to make it fit the glass, and found that it would disappear if I leaned too close in to it and reappear when I leaned back.
    Standard reticles should disappear if listed under [ReticleStatic] section and the sprite for dynamic one is present.
    As for disappearing, hard to tell, need to reproduce the issue here, but I don't have this aircraft.

    Is there still a way to turn it off for models that don't have a normal map and leave it enabled for those that do?
    No, except that you may set BumpSmoothness to a large value in Models.fx to make it less noticeable. This setting doesn't affect normal maps.
    I will add an option to turn off "automatic" bump maps completely - it will improve performance as well.

    Phew. That's it I think

  9. #9
    I looked in the shader code files for the place where you turn off the original reticles. I can find where you apply the dynamic reticles, but not the place where you access the TextureMagic.ini to get the list for exclusion and inclusion. Is it currently hard coded into the dll for the bf109g6? Perhaps that's why it didn't recognize that the Reticle_CR42.dds static one needed to be removed when Gecko tried to add it to the ini?

    I applied the bf109g6 one to the P_47d and it worked as expected without needing to edit out the static one in the cockpit m3d file, but when I made a custom one for the L3 sight used in the P-47 it wouldn't work.

    In any case the most difficult thing was to find the proper x,y, z location for positioning the dynamic reticle.
    Last edited by MajorMagee; January 31st, 2015 at 07:29.
    US Army, Major, Ret.

    Service To The Line,
    On The Line,
    On Time

    US Army Ordnance Corps.

Members who have read this thread: 7

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •