![]() |
SUBSIM: The Web's #1 resource for all submarine & naval simulations since 1997 |
|
![]() |
#1 |
Commodore
![]() Join Date: Jul 2006
Posts: 625
Downloads: 5
Uploads: 0
|
![]()
Hi guys.
Ive tried to render moonlight in my environment mod in the past but i couldnt synchronise it to the moon so ive given up someday. Im still trying to find a solution so i want to share my findings with other moders and hope to ignite someones idea. the theory: - neither the moon nor the sun is rendered dynamic. there are just three kinds of static light effects. 1. being ambient light wich covers 360° 2. being sun direct light wich covers 115° towards the sun 3. being sun reflect light wich covers 55° on the opposite to direct light. - the color and intensity for each light effect at different daytime and weather are controlled in env\Env_Colorsxxx.dat - sun reflect light effect is almost unused. It is overshined by ambient light during the day and it is gone at night. You can however increase its brightness at night and turn it into beautiful directional moon light effect, you can even make it appear only at clear nights. now the problem: sun reflect light is synchronised with the sun. Of course you dont see the sun at night but it is there, its just invisible. The moon follows its own orbit which is very different to the sun ones so the moonlight does not match to the moon itself. my conclusion: there must be a hard-coded formula (which i didnt found yet) that describes the orbit of the sun and another one for the moon orbit. I think there is one more for the stars. the sun orbit formula controlls the direction of light effects, the sky texture, sky reflection texture and the sun bitmap itself. While the moon orbit formula controlls just the moon bitmap. the trick is to find where the sun reflect color is tied to the sun orbit and connect it to the moon orbit. The process itself shouldnt be hard but i just cant find that place. thoughts? ideas? |
![]() |
![]() |
![]() |
#2 | |
Lucky Jack
![]() |
![]() Quote:
![]() |
|
![]() |
![]() |
![]() |
#3 |
Commodore
![]() Join Date: Jul 2006
Posts: 625
Downloads: 5
Uploads: 0
|
![]()
well we dont have to change that formula but the index where the connection between sun reflect color and the sun orbit. It might be hardcoded might be not but i dont think so.
And where does it say that we are not allowed to alter hardcoded areas? I think we may do anything as long we dont charge money or call someone elses work ours... |
![]() |
![]() |
![]() |
#4 |
Lucky Jack
![]() |
![]()
Someone else can answer about the 'invisible rules of modding', but that´s what I´ve heard.
![]() |
![]() |
![]() |
![]() |
#5 | |
Ocean Warrior
![]() Join Date: Jul 2006
Location: Reading UK
Posts: 3,473
Downloads: 90
Uploads: 0
|
![]() Quote:
![]() ![]()
__________________
![]() http://www.thegreywolves.com/ http://wolvesatwar.com/ Download GWX and other goodies: http://hosted.filefront.com/melnibonian |
|
![]() |
![]() |
![]() |
#6 |
Commodore
![]() Join Date: Jul 2006
Posts: 625
Downloads: 5
Uploads: 0
|
![]()
huh? please quote where it does say that.
1. there are already mods around that have changed hard coded areas and noone cried. 2. nonone was going to deal with the source code. Just becase the source code was never published. Im talking about disassembling the game files while propably it wont be necessery. Anyway this is all going off topic. If you want to talk about what we may do and what we may not lets start another thread for that. please stay at topic guys. |
![]() |
![]() |
![]() |
#7 | |
Lucky Jack
![]() |
![]()
Mate, just believe Mel. He knows about it. And as far as I see, this has all been on-topic. Go ahead, make the mod, but if you change the hardcoded parts of SHIII, you are doing something illegal and you can forget the support of 90% of the community´s modders.
And please, point me out to the mods that have changed hardcoded stuff? Your idea is great, but if it is hardcoded, you cant do nothing about it LEGALLY. Not trying to bring you down or anything, just telling you how it works. Quote:
|
|
![]() |
![]() |
![]() |
#8 | ||
中国水兵
![]() Join Date: Apr 2005
Posts: 270
Downloads: 0
Uploads: 0
|
![]() Quote:
![]() So if I buy a toaster open it up look a the guts,change something to operate better and tell a friend about it I could be sued?
__________________
![]() ![]() ![]() |
||
![]() |
![]() |
![]() |
#9 | |
Ocean Warrior
![]() Join Date: Jul 2006
Location: Reading UK
Posts: 3,473
Downloads: 90
Uploads: 0
|
![]() Quote:
__________________
![]() http://www.thegreywolves.com/ http://wolvesatwar.com/ Download GWX and other goodies: http://hosted.filefront.com/melnibonian Last edited by melnibonian; 02-24-07 at 06:56 AM. |
|
![]() |
![]() |
![]() |
|
|