Special Aircraft Service

Please login or register.

Login with username, password and session length
Advanced search  
Pages: 1 [2]   Go Down

Author Topic: Problem with object lighting  (Read 1861 times)

0 Members and 1 Guest are viewing this topic.

Mick

  • Modder
  • member
  • Online Online
  • Posts: 1694
Re: Problem with object lightning
« Reply #12 on: April 07, 2012, 02:47:48 AM »

... this is for sure a very useful find Istvan, as it is especialy irritating to watch vehicules disappear for no obvious reason ...!!

I'll give a look at all my Wflyer mat files and correct them by replacing their value with 4 ...

THX for sharing mate ...  ;)
Logged

vpmedia

  • SAS Team
  • member
  • Offline Offline
  • Posts: 1652
  • www.vpmedia.eu/il2
    • VPMEDIA SKINS
Re: Problem with object lightning
« Reply #13 on: April 07, 2012, 03:06:58 AM »

Mick, we did not know the reason for the disappearing meshes with Wflyer stuff yet

Imho correcting Specular Pow 32 to 4 wont fix that, only the wrong 3d lighting
Logged

Mick

  • Modder
  • member
  • Online Online
  • Posts: 1694
Re: Problem with object lightning
« Reply #14 on: April 07, 2012, 03:43:24 AM »

... ah, OK, I must have misunderstood then, thanks for telling me, but I'll however take a look at the mat files ...  ;)
Logged

vpmedia

  • SAS Team
  • member
  • Offline Offline
  • Posts: 1652
  • www.vpmedia.eu/il2
    • VPMEDIA SKINS
Re: Problem with object lightning
« Reply #15 on: April 07, 2012, 05:47:34 AM »

you can place the object in fmb change the values select a different object then go back to the first and see the changes so you dont have to restart the game
Logged

vpmedia

  • SAS Team
  • member
  • Offline Offline
  • Posts: 1652
  • www.vpmedia.eu/il2
    • VPMEDIA SKINS
Re: Problem with object lightning
« Reply #16 on: April 07, 2012, 06:51:14 AM »

You were right Boomer, none of the ToW objects had proper 3d lighting.
These 150 objets use more almost a thousand mat files so correcting them is a huge task in itself.
Do you need the files if I finished them?

Yes please,
if you could post a link to the corrected tanks files I would download it  ;)

This cool utility enables you to instantly find and replace words and phrases across multiple files and folders>
http://www.digitalvolcano.co.uk/content/textcrawler/tcdownload

It seems,you've opened up a regular pandora's box with all these objects  :D
ToW,Vehicle,these and those objects...

Really great find though,
it is nice even to just know now what is wrong with all these objects  :)



I'm using Total Commander which is able to find strings in files without the need to opening them, plus it can list all the files in a listbox from where I can drag all at once into Ultra Edit where I do the batch find/replace thing. Here's the link to the corrected ToW objects: http://www.vpmedia.eu/il2/zip/TEXTURES_Buildings3_UP3.zip

After testing I've found these values to give the best look for the Tow objects:

[LightParams]
  Ambient 1.0
  Diffuse 1.0
  Specular 0.2
  SpecularPow  1
  Shine 0.0
Logged

vpmedia

  • SAS Team
  • member
  • Offline Offline
  • Posts: 1652
  • www.vpmedia.eu/il2
    • VPMEDIA SKINS
Re: Problem with object lightning
« Reply #17 on: April 08, 2012, 12:13:49 AM »

I'm glad youre interested in this...theres going to be a larger pack (one zip file to download) later with all my mods in different subfolders including lots of fixes for buildings.
Logged

Mick

  • Modder
  • member
  • Online Online
  • Posts: 1694
Re: Problem with object lightning
« Reply #18 on: April 08, 2012, 01:40:13 AM »

THX in advance Istvan ...  ;)

I took a look at Wflyer's tank packs and found there are a lot of .TGAs that are not in indexed colours, some of them even being as big as 4Mb  ...  ???

So I indexed them all, but I now have a few glitches (mainly in the sides of a few tanks) since some of the TGAs shouldn't be indexed, I suppose because they have alpha layers or something like that ...  ???

So this morning I am going to use my back up (old guys always back up first ...  :P) to fix that ...  ;)

I also corrected all the SpecularPow 16 or 32 that I found and there were a lot ...
Logged

vpmedia

  • SAS Team
  • member
  • Offline Offline
  • Posts: 1652
  • www.vpmedia.eu/il2
    • VPMEDIA SKINS
Re: Problem with object lightning
« Reply #19 on: April 08, 2012, 04:00:11 AM »

THX in advance Istvan ...  ;)

I took a look at Wflyer's tank packs and found there are a lot of .TGAs that are not in indexed colours, some of them even being as big as 4Mb  ...  ???

So I indexed them all, but I now have a few glitches (mainly in the sides of a few tanks) since some of the TGAs shouldn't be indexed, I suppose because they have alpha layers or something like that ...  ???

So this morning I am going to use my back up (old guys always back up first ...  :P) to fix that ...  ;)

I also corrected all the SpecularPow 16 or 32 that I found and there were a lot ...

I did that 4Mb-1Mb conversion for the artillery by resizing image, in hope to stop dissappearing meshes.
I'm not sure about using indexed color images as texture...this issue needs to be tested somehow or even ask TD about the standards. I'm pretty sure that converting a file with alpha channel to 256 color will delete the channel and the result is not nice.

Other thing:  if Specular is 0.0 then SpecularPow has no effect.
Logged

vpmedia

  • SAS Team
  • member
  • Offline Offline
  • Posts: 1652
  • www.vpmedia.eu/il2
    • VPMEDIA SKINS
Re: Problem with object lightning
« Reply #20 on: April 09, 2012, 01:50:36 AM »

Well, thanks for the interest. I categorize these as minor proplems since they got no effect on gameplay but its good to fix them anyway. I started with the ToW stuff because those looked flat without Specular lights.
For the indexed color procedure I hope that you've used Photoshop :)
Logged
Pages: 1 [2]   Go Up