Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

D3D9 atmosphere remake (WIP) #324

Merged
merged 57 commits into from
Dec 31, 2022
Merged
Show file tree
Hide file tree
Changes from 43 commits
Commits
Show all changes
57 commits
Select commit Hold shift + click to select a range
044f597
Atmospheric rendering upgrade project for D3D9Client
jarmonik Oct 29, 2022
6b33507
Added missing configuration files
jarmonik Oct 29, 2022
096fe22
Code optimizations and bug fixes
jarmonik Oct 30, 2022
b5dc0b0
Cleaned up micro texture loading, Fixed Mars micro textures, Code opt…
jarmonik Oct 30, 2022
db23a01
Fixed local lights effect on terrain. Fixed micro texture load proble…
jarmonik Oct 31, 2022
a7702b9
Fixed ground shadows on landing pads
jarmonik Nov 1, 2022
4b48e41
Fixed distant planet rendering. Performance optimizations and code cl…
jarmonik Nov 2, 2022
4fd83fb
Added a green balance slider
jarmonik Nov 2, 2022
47a6100
Finalized gas giant rendering, code cleanups
jarmonik Nov 3, 2022
9cdaab5
Added Min/Max elevation information in configuration files.
jarmonik Nov 4, 2022
630b8eb
Code cleanups and optimizations
jarmonik Nov 5, 2022
51e8278
Replaced shadow map rendering with HLSL. Prepared normal & depth buff…
jarmonik Nov 6, 2022
9dccf56
Merge branch 'main' of https://github.com/orbitersim/orbiter into d3d…
jarmonik Nov 6, 2022
5b5d1e0
CSphereManager HLSL update. Bug fixes.
jarmonik Nov 6, 2022
8d2ff91
Implemented Depth & Normal buffer. Fixed some bugs.
jarmonik Nov 7, 2022
0b285da
Moved shader data structures from global scope inside CSphereManager
jarmonik Nov 7, 2022
bd95834
Added math routines to compute planet shadow occlusion test.
jarmonik Nov 19, 2022
7bc0495
Merge branch 'main' of https://github.com/orbitersim/orbiter into d3d…
jarmonik Nov 19, 2022
4ad3e1b
Added a missing function
jarmonik Nov 19, 2022
28dd70d
Multiple bug fixes. Committed current work in progress for backup. Lo…
jarmonik Nov 23, 2022
d8d3813
Bug fixes and code cleanups.
jarmonik Nov 23, 2022
ed3aa1f
Few math fixes
jarmonik Nov 24, 2022
2c516e8
Moved atmosphere initialization and rendering related functions from …
jarmonik Nov 24, 2022
0bdffdc
Tried a different approach to address a ray segmentation problem, whi…
jarmonik Nov 25, 2022
ad6f878
Committed current work in progress for backup.
jarmonik Nov 26, 2022
3ec8354
Finished Water rendering
jarmonik Nov 27, 2022
33bb559
Worked on cloud layer rendering. Improved sunlight lookup table. Fixe…
jarmonik Nov 27, 2022
2e181e5
Fixed horizon "transparency".
jarmonik Nov 27, 2022
e26d176
Committed current work with Sun glare for backup.
jarmonik Nov 28, 2022
fd0f7d4
Committed current work in progress for backup.
jarmonik Nov 30, 2022
b2e2fe5
Committed current work in progress.
jarmonik Dec 5, 2022
f8932c1
Committed a work in progress.
jarmonik Dec 8, 2022
ae8300e
Fixed a comet/asteroid rendering bug reported in the forum. Multiple …
jarmonik Dec 9, 2022
a4625fb
Fixed Jupiter rendering. Fixed star texture and glare disappearance w…
jarmonik Dec 9, 2022
fafc652
Added Enable checkbox for dynamic ambient light feature.
jarmonik Dec 9, 2022
3d74cbd
Added some noise to atmosphere
jarmonik Dec 10, 2022
504568a
Fixed a CTD when entering in VC. Fixed object lighting issue on the M…
jarmonik Dec 11, 2022
0b9af47
Merge branch 'main' of https://github.com/orbitersim/orbiter into d3d…
jarmonik Dec 11, 2022
5a45245
Fixed a compile errors from DrawOrbits example program.
jarmonik Dec 11, 2022
2526e24
Updated atmosphere configuration files. Fixed some bugs.
jarmonik Dec 11, 2022
f59921d
Fixed cAmbient and pow() issues.
jarmonik Dec 12, 2022
b047302
New consistent atmosphere configuration for the Earth. Increased spec…
jarmonik Dec 12, 2022
afc4da5
Fixed a shader cache problem with a CRC based feature code.
jarmonik Dec 12, 2022
da717f7
Provided non-NULL pointers for lpNumberOfBytesWritten parameter in Wr…
mschweiger Dec 12, 2022
cc38d09
Improved cloud rendering model. Fixed the issue reported by Kuddel. D…
jarmonik Dec 13, 2022
e44ff44
Tried to reduce stripes near the terminator via larger lookup table.
jarmonik Dec 13, 2022
7694f45
Deleted D3D9Client.cfg from the root
jarmonik Dec 13, 2022
213eabe
Improved cloud lighting below and above cloud layer. Improved sun gla…
jarmonik Dec 18, 2022
af6fe03
Added configuration for Titan, fixed some bugs.
jarmonik Dec 18, 2022
3422125
Added a D3D9 specific sub directory in cache folder
jarmonik Dec 18, 2022
c7485ee
Fixed a CTD on Intel GPU. Added performance optimizations for laptop …
jarmonik Dec 20, 2022
e7939c0
Fixed the "bright" moon issue by verifying that micro textures are ac…
jarmonik Dec 22, 2022
d75583a
Disabled loading of micro textures textures if not enabled.
jarmonik Dec 22, 2022
3506fd6
Fixed micro texture normal map issue. Made sun glare smaller in atmos…
jarmonik Dec 23, 2022
9b5f2d4
Fixed sun glare visibility through Phobos. Added an option to disable…
jarmonik Dec 31, 2022
dc27d7f
Fixed issue #286 and it's effect to dynamic ambient light.
jarmonik Dec 31, 2022
a91dea1
Fine tuned sun glare appearance for default config.
jarmonik Dec 31, 2022
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
67 changes: 67 additions & 0 deletions Config/GC/Callisto.atm.cfg
Original file line number Diff line number Diff line change
@@ -0,0 +1,67 @@
; = Shader(s) = [Earth, Mars, Moon, Giant, Auto]
Shader = Moon
OrbitAlt = 250000
AtmoVisualAlt = 70000
Red = 0.65
Blue = 0.48
SunI = 30
zcolor = 1 0.7 0.15
hcolor = 1 0.5 0.1
acolor = 0.9 0.9 1
Srf_RPwr = -8
Srf_MPwr = -8
Srf_Expo = 0.97077
Srf_TGamma = 0.7447
Srf_TWDst = 0
Srf_Green = 0.56
Srf_TWBri = 0
Srf_RayO = 0
Srf_RayI = 0.1
Srf_TWBld = 0
Srf_RayH = 3
Srf_MieO = 0.01
Srf_MieP = 0.02
Srf_MieI = 0.01
Srf_MieH = 0.2
Srf_Aux2 = 0
Srf_Aux3 = 0.01
Srf_Aux4 = 0.02
Srf_Aux5 = 0.001
Low_RPwr = 4
Low_MPwr = 1
Low_Expo = 1
Low_TGamma = 1
Low_TWDst = 0
Low_Green = 0.56
Low_TWBri = 0
Low_RayO = 1
Low_RayI = 1
Low_TWBld = 0
Low_RayH = 8
Low_MieO = 0.0869
Low_MieP = 0.9831
Low_MieI = 1
Low_MieH = 1
Low_Aux2 = 0
Low_Aux3 = 0
Low_Aux4 = 1
Low_Aux5 = 1.7
Hig_RPwr = 4
Hig_MPwr = 1
Hig_Expo = 1
Hig_TGamma = 1
Hig_TWDst = 0
Hig_Green = 0.56
Hig_TWBri = 0
Hig_RayO = 1
Hig_RayI = 1
Hig_TWBld = 0
Hig_RayH = 8
Hig_MieO = 0.0869
Hig_MieP = 0.9831
Hig_MieI = 1
Hig_MieH = 1
Hig_Aux2 = 0
Hig_Aux3 = 0
Hig_Aux4 = 1
Hig_Aux5 = 1.7
67 changes: 67 additions & 0 deletions Config/GC/Earth.atm.cfg
Original file line number Diff line number Diff line change
@@ -0,0 +1,67 @@
; = Shader(s) = [Earth, Mars, Moon, Giant, Auto]
Shader = Earth
OrbitAlt = 250000
AtmoVisualAlt = 70000
Red = 0.65
Blue = 0.48
SunI = 30
zcolor = 1 0.7 0.15
hcolor = 1 0.5 0.1
acolor = 0.9 0.9 1
Srf_RPwr = 4.08
Srf_MPwr = -1.072
Srf_Expo = 1.00788
Srf_TGamma = 0.534
Srf_TWDst = 0.157
Srf_Green = 0.52954
Srf_TWBri = 0.199877
Srf_RayO = 1.23904
Srf_RayI = 0.758332
Srf_TWBld = 1.70528
Srf_RayH = 8.53045
Srf_MieO = 0.7491
Srf_MieP = 0.0496402
Srf_MieI = 1.06211
Srf_MieH = 1.01133
Srf_Aux2 = 0.3692
Srf_Aux3 = 0.784688
Srf_Aux4 = 0.616
Srf_Aux5 = 0.240956
Low_RPwr = 4.08
Low_MPwr = -1.072
Low_Expo = 1.00788
Low_TGamma = 0.534
Low_TWDst = 0.085775
Low_Green = 0.52954
Low_TWBri = 0.231212
Low_RayO = 1.23904
Low_RayI = 0.73204
Low_TWBld = 1.70528
Low_RayH = 8.53045
Low_MieO = 0.7491
Low_MieP = 0.0496402
Low_MieI = 1.06211
Low_MieH = 1.01133
Low_Aux2 = 0.3692
Low_Aux3 = 0.784688
Low_Aux4 = 0.616
Low_Aux5 = 0.240956
Hig_RPwr = 4.08
Hig_MPwr = -1.072
Hig_Expo = 1.00788
Hig_TGamma = 0.534
Hig_TWDst = 0.047275
Hig_Green = 0.52954
Hig_TWBri = 0.236119
Hig_RayO = 1.06276
Hig_RayI = 0.758332
Hig_TWBld = 1.70528
Hig_RayH = 8.53045
Hig_MieO = 0.484765
Hig_MieP = 0.0496402
Hig_MieI = 1.06211
Hig_MieH = 1.01133
Hig_Aux2 = 0.3692
Hig_Aux3 = 0.631028
Hig_Aux4 = 0.616
Hig_Aux5 = 0.240956
20 changes: 0 additions & 20 deletions Config/GC/Earth.atmo.cfg

This file was deleted.

20 changes: 0 additions & 20 deletions Config/GC/Earth.atms.cfg

This file was deleted.

67 changes: 67 additions & 0 deletions Config/GC/Europa.atm.cfg
Original file line number Diff line number Diff line change
@@ -0,0 +1,67 @@
; = Shader(s) = [Earth, Mars, Moon, Giant, Auto]
Shader = Moon
OrbitAlt = 250000
AtmoVisualAlt = 70000
Red = 0.65
Blue = 0.48
SunI = 10
zcolor = 1 0.7 0.15
hcolor = 1 0.5 0.1
acolor = 0.9 0.9 1
Srf_RPwr = -8
Srf_MPwr = -8
Srf_Expo = 0.697438
Srf_TGamma = 0.6979
Srf_TWDst = 0
Srf_Green = 0.56
Srf_TWBri = 0
Srf_RayO = 0
Srf_RayI = 0.1
Srf_TWBld = 0
Srf_RayH = 3
Srf_MieO = 0.01
Srf_MieP = 0.02
Srf_MieI = 0.01
Srf_MieH = 0.2
Srf_Aux2 = 0
Srf_Aux3 = 0.01
Srf_Aux4 = 0.02
Srf_Aux5 = 0.001
Low_RPwr = 4
Low_MPwr = 1
Low_Expo = 1
Low_TGamma = 1
Low_TWDst = 0
Low_Green = 0.56
Low_TWBri = 0
Low_RayO = 1
Low_RayI = 1
Low_TWBld = 0
Low_RayH = 8
Low_MieO = 0.0869
Low_MieP = 0.9831
Low_MieI = 1
Low_MieH = 1
Low_Aux2 = 0
Low_Aux3 = 0
Low_Aux4 = 1
Low_Aux5 = 1.7
Hig_RPwr = 4
Hig_MPwr = 1
Hig_Expo = 1
Hig_TGamma = 1
Hig_TWDst = 0
Hig_Green = 0.56
Hig_TWBri = 0
Hig_RayO = 1
Hig_RayI = 1
Hig_TWBld = 0
Hig_RayH = 8
Hig_MieO = 0.0869
Hig_MieP = 0.9831
Hig_MieI = 1
Hig_MieH = 1
Hig_Aux2 = 0
Hig_Aux3 = 0
Hig_Aux4 = 1
Hig_Aux5 = 1.7
67 changes: 67 additions & 0 deletions Config/GC/Ganymede.atm.cfg
Original file line number Diff line number Diff line change
@@ -0,0 +1,67 @@
; = Shader(s) = [Earth, Mars, Moon, Giant, Auto]
Shader = Moon
OrbitAlt = 250000
AtmoVisualAlt = 70000
Red = 0.65
Blue = 0.48
SunI = 30
zcolor = 1 0.7 0.15
hcolor = 1 0.5 0.1
acolor = 0.9 0.9 1
Srf_RPwr = -8
Srf_MPwr = -8
Srf_Expo = 1.67144
Srf_TGamma = 0.6238
Srf_TWDst = 0
Srf_Green = 0.56
Srf_TWBri = 0
Srf_RayO = 0
Srf_RayI = 0.1
Srf_TWBld = 0
Srf_RayH = 3
Srf_MieO = 0.01
Srf_MieP = 0.02
Srf_MieI = 0.01
Srf_MieH = 0.2
Srf_Aux2 = 0
Srf_Aux3 = 0.01
Srf_Aux4 = 0.02
Srf_Aux5 = 0.001
Low_RPwr = 4
Low_MPwr = 1
Low_Expo = 1
Low_TGamma = 1
Low_TWDst = 0
Low_Green = 0.56
Low_TWBri = 0
Low_RayO = 1
Low_RayI = 1
Low_TWBld = 0
Low_RayH = 8
Low_MieO = 0.0869
Low_MieP = 0.9831
Low_MieI = 1
Low_MieH = 1
Low_Aux2 = 0
Low_Aux3 = 0
Low_Aux4 = 1
Low_Aux5 = 1.7
Hig_RPwr = 4
Hig_MPwr = 1
Hig_Expo = 1
Hig_TGamma = 1
Hig_TWDst = 0
Hig_Green = 0.56
Hig_TWBri = 0
Hig_RayO = 1
Hig_RayI = 1
Hig_TWBld = 0
Hig_RayH = 8
Hig_MieO = 0.0869
Hig_MieP = 0.9831
Hig_MieI = 1
Hig_MieH = 1
Hig_Aux2 = 0
Hig_Aux3 = 0
Hig_Aux4 = 1
Hig_Aux5 = 1.7
67 changes: 67 additions & 0 deletions Config/GC/Io.atm.cfg
Original file line number Diff line number Diff line change
@@ -0,0 +1,67 @@
; = Shader(s) = [Earth, Mars, Moon, Giant, Auto]
Shader = Mars
OrbitAlt = 250000
AtmoVisualAlt = 25000
Red = 0.65
Blue = 0.48
SunI = 10
zcolor = 1 0.7 0.15
hcolor = 1 0.5 0.1
acolor = 0.9 0.9 1
Srf_RPwr = -2.464
Srf_MPwr = -3.376
Srf_Expo = 0.654778
Srf_TGamma = 0.85
Srf_TWDst = 0.025
Srf_Green = 0.56
Srf_TWBri = 0.01
Srf_RayO = 0.08281
Srf_RayI = 1
Srf_TWBld = 0
Srf_RayH = 6
Srf_MieO = 0.302118
Srf_MieP = 0.725664
Srf_MieI = 1
Srf_MieH = 0.680918
Srf_Aux2 = 0
Srf_Aux3 = 1.04789
Srf_Aux4 = 0
Srf_Aux5 = 1.7
Low_RPwr = -2.464
Low_MPwr = -3.376
Low_Expo = 0.654778
Low_TGamma = 0.85
Low_TWDst = 0.025
Low_Green = 0.56
Low_TWBri = 0.01
Low_RayO = 0.08281
Low_RayI = 1
Low_TWBld = 0
Low_RayH = 6
Low_MieO = 0.302118
Low_MieP = 0.725664
Low_MieI = 1
Low_MieH = 0.680918
Low_Aux2 = 0
Low_Aux3 = 1.04789
Low_Aux4 = 0
Low_Aux5 = 1.7
Hig_RPwr = -2.464
Hig_MPwr = -3.376
Hig_Expo = 1.58116
Hig_TGamma = 0.4353
Hig_TWDst = 0.025
Hig_Green = 0.56
Hig_TWBri = 0.01
Hig_RayO = 0.07056
Hig_RayI = 1
Hig_TWBld = 0
Hig_RayH = 6
Hig_MieO = 0.674974
Hig_MieP = 0.725664
Hig_MieI = 1
Hig_MieH = 0.680918
Hig_Aux2 = 0
Hig_Aux3 = 1.04789
Hig_Aux4 = 0
Hig_Aux5 = 1.7
Loading