Special Aircraft Service

Please login or register.

Login with username, password and session length
Advanced search  
Pages: 1 ... 28 29 30 [31] 32 33 34 ... 107   Go Down

Author Topic: graphics extender  (Read 282806 times)

0 Members and 1 Guest are viewing this topic.

slibenli

  • member
  • Offline Offline
  • Posts: 618
    • IL-2 Graphics Extender
Re: graphics extender
« Reply #360 on: December 21, 2018, 01:47:02 AM »

I have written a tool to get SRTM data for any location.

The process for me is....

  • User defines map region
  • App gets SRTM data
  • App generates type map (currently only LAND, OCEAN, but working on adding COAST)
  • App generates sub maps at higher resolution
  • App generates normal maps
  • App generates default textures from user supplied textures (grass, sand, rock, snow, etc.)


The SRTM data is 1 degree of latitude, longitude and I generate texture maps at 1 minute resolution. So from each SRTM file I generate 60*60 (3600) texture maps.

I don't think you need that accuracy do you?

Anyway, you can have the code if you want. I would just need a couple of days to tidy everything up.


Thanks, I would love to take a look at your tool :)
No hurry though ;)
I only need a resolution of 200m (which Il-2 uses). Even 400m would be good enough I guess.

slibenli

  • member
  • Offline Offline
  • Posts: 618
    • IL-2 Graphics Extender
Re: graphics extender
« Reply #361 on: December 21, 2018, 01:55:15 AM »

The latest build significantly improves framerate for me.
Note that my on my system the bottleneck seems to be the GPU (nvidia quadro 4000).
If you have a high end GPU please let me know how it affects your fps.

Before improvements: https://gitlab.com/vrresto/il2ge/-/jobs/136799292/artifacts/download
With improvements: https://gitlab.com/vrresto/il2ge/-/jobs/137239688/artifacts/download

Stainless

  • Modder
  • member
  • Offline Offline
  • Posts: 1530
Re: graphics extender
« Reply #362 on: December 21, 2018, 02:24:00 AM »

Hmmm 200 M

Okay I would have to do some changes for you. I work in latitude , longitude and only come down to metres when I render.

The trouble is as latitude increases, the size in metres of one degree of longitude changes. At the pole it is literally 0 metres per degree longitude, at the equator roughly 111,317 metres.

So one degree would vary from 0 pixels to about 550 pixels.

I will come up with a nice projection that handles these issues and put you something together.
Logged

rollnloop

  • member
  • Offline Offline
  • Posts: 281
Re: graphics extender
« Reply #363 on: December 21, 2018, 06:44:01 AM »

Has anyone been able to have it work with HSFX ?

Following instructions on this thread I got it to work in BAT, but I'm unable to transpose it on my HSFX install.

In any case, fantastic work slibenli, it's really gorgeous in BAT.

Thanks a lot to Mike for enabling us to have it work in BAT with the new selector.
Logged

SkyHigh

  • member
  • Offline Offline
  • Posts: 300
Re: graphics extender
« Reply #364 on: December 22, 2018, 08:19:03 AM »

Has anyone been able to have it work with HSFX ?

Following instructions on this thread I got it to work in BAT, but I'm unable to transpose it on my HSFX install.

In any case, fantastic work slibenli, it's really gorgeous in BAT.

Thanks a lot to Mike for enabling us to have it work in BAT with the new selector.

I have it working on my HSFX7 set-up. Be sure to have your Il-2 Selector (and I think 3.4.2 is required) set to HSFX/Classic Mod Game and save the settings.
Logged

rollnloop

  • member
  • Offline Offline
  • Posts: 281
Re: graphics extender
« Reply #365 on: December 22, 2018, 09:48:15 AM »

Works !!!!!

Thanks a lot Skyhigh
Logged

Rostic

  • member
  • Offline Offline
  • Posts: 46
Re: graphics extender
« Reply #366 on: December 25, 2018, 11:43:08 AM »

The latest build significantly improves framerate for me.
Note that my on my system the bottleneck seems to be the GPU (nvidia quadro 4000).
If you have a high end GPU please let me know how it affects your fps.

Before improvements: 136799292
With improvements: 137239688

Hello, slibenli!
First I whant to say: THANK YOU! For your great mod!
Second, I had done some test. Screenshots with my settings and results are saved in archive.
 
https://drive.google.com/open?id=1JhxFODRYi9_YG-N_l1aHmK94i1Zl3SoV

1) Performance tests. In total I can say that build 137239688 is much faster then 136799292. And latest build 138104114 is good as 137239688 or even better.
My PC spec is: Intel Core i7 8700K 3.7Ghz, DDR4 16Gb 2666Mhz, Asus Prime Z370-A, ADATA XPG SX8200 240Gb (PCIe Gen3x4), GTX 660 2Gb <- Videocard is dinosaur  ;D

2) I have problems with lightning of ground at daytime from 20-00 to 03-00. Screenshots in archive.
3) Watch screenshot 06-00.jpg in folder "2-BUG-daytime-lightning". Objects in FOG look wr0ng in compare to land, or may be land looks worng in compare to objects in FOG.

Anyway, thank you for your work! And sorry for my English, it is not my native language.
Logged

slibenli

  • member
  • Offline Offline
  • Posts: 618
    • IL-2 Graphics Extender
Re: graphics extender
« Reply #367 on: January 02, 2019, 09:19:01 AM »

Thanks for your tests Rostic!
1) The changes should be more apparent, the higher the number of visible objects is.
2) This is a current limitation, as mentioned in the readme.

3) This looks like a known bug described earlier in this thread.
I'm intercepting
Code: [Select]
com.maddox.il2.engine.Sun.setNative() to obtain the sun direction.
I'm currently interpreting the first 3 parameters to be the components of a vector pointing into the sun's direction.
I have no idea what the other parameters are for.
Maybe someone can help me out there (SAS~Storebror?).

Stainless

  • Modder
  • member
  • Offline Offline
  • Posts: 1530
Re: graphics extender
« Reply #368 on: January 02, 2019, 11:16:47 AM »

Have you looked at public void setAstronomic(int i, int j, int k, float f, float f1)

Looking at the code it seems ....

iAltitudeAngular height of sun above the horizon in degrees
jAzimuth partLooks like the compass direction of the sun, 0 = north,3 =east
kAzimuth partLooks like the detail part of the azimuth
fTime of dayUsed for lunar cycle
f1Cloud level

The only line of code that doesn't make sense to me is this one.

Code: [Select]
float f2 = (float)((j * 30 + k) - 80) * DEG2RAD;

It seems to convert the two input variables into an azimuth angle.... but WTF!
Logged

Kashmiro

  • member
  • Offline Offline
  • Posts: 105
Re: graphics extender
« Reply #369 on: January 02, 2019, 02:43:27 PM »

hi, amazing work, any1 knows if this can work in 4.10 up3rc4?
Logged

PO_MAK_249RIP

  • CMON U SPURS!
  • member
  • Offline Offline
  • Posts: 2057
Re: graphics extender
« Reply #370 on: January 03, 2019, 05:56:19 AM »

Hi Slibenli I notice the latest builds are only 85kb in size is this normal?
HAPPY NEW YEAR!!
Logged
Corsair Carbide case, Intel core i5 4690 3.5ghz with Arctic Cooler, Asus Rock H97 performance, MSI Ventus XS OC 1660GTX 6GB DDR6, 8GB Corsair Vengeance 1600mhz, 256GB/500GB Crucial SSDs, Windows 10 64bit.

slibenli

  • member
  • Offline Offline
  • Posts: 618
    • IL-2 Graphics Extender
Re: graphics extender
« Reply #371 on: January 03, 2019, 06:19:18 AM »

Hi Slibenli I notice the latest builds are only 85kb in size is this normal?
HAPPY NEW YEAR!!

No, something went wrong there ... looking into it.
Pages: 1 ... 28 29 30 [31] 32 33 34 ... 107   Go Up
 

Page created in 0.077 seconds with 24 queries.