Hi there! You are currently browsing as a guest. Why not create an account? Then you get less ads, can thank creators, post feedback, keep a list of your favourites, and more!
Sockpuppet
Original Poster
#1 Old 28th Jun 2007 at 11:43 AM
"Lighting.txt" : How to rotate the outside shadows ???
I would like to know which settings are use to set the outside shadows because I want rotate it for the morning and the evening ?

Is it possible to expand the shadow like when the sun is down in the sky ?
Advertisement
Mad Poster
#2 Old 28th Jun 2007 at 3:09 PM Last edited by niol : 30th Sep 2007 at 6:05 AM.
I'm unsure of how stable to alter the shadowing only thru the lighting.txt

There're several data file with directional definitions of shadowing, the sunlight etc.
Say, a single alteration on the material shader for the lighting and shadowing direction can even kill off your testing neighbourhood.

defaul and custom Lot files and neighbourhood files also store directions infos.

There can be more data files that may affect that, too The game exe file has been said also contain hard-coded source codes for that.

Don't get discouraged tho, there may be some ways to alter them safely.

To do it in a testing environment is a safer approach.


Related thread linkage:

lighting.txt mods:

GunMod's Radiance Light System 2.1
GunMod
http://www.modthesims2.com/showthread.php?t=101456

Gunmod's Radiance Light System 2.2 BETA RC1
Chocolate Pi
http://www.modthesims2.com/showthread.php?t=133383

Gunmod's Radiance Light System for Seasons + half BV
dDefinder @ MATY (More Awesome Than You)
http://www.moreawesomethanyou.com/s....msg266720.html

Lighting Mod
spookymuffin @ InSIMenator.net
http://www.insimenator.net/showthread.php?t=35370

Aaron's Ambiance Mod
stargazer @ Gay Sims Club 2 (GCS2)
http://www.gaysimsclub2.net/forums/...?showtopic=3053

lighting.txt modding threads:

how to change the blue haze in nhood
http://www.modthesims2.com/showthread.php?t=141616
"Lighting.txt" : How to change the sky color
http://www.modthesims2.com/showthread.php?p=1718913
"Lighting.txt" : How to rotate the outside shadows
http://www.modthesims2.com/showthread.php?p=1696618
night light leval
http://www.modthesims2.com/showthread.php?p=1692725
Sockpuppet
Original Poster
#3 Old 29th Jun 2007 at 7:25 PM
No problem, my system is slowly sinking, so that's why I can do any test I want before I reinstall all !!!

My game is already fully saved !

So can you explain how set the "sunlight" parameter ?
Mad Poster
#4 Old 1st Jul 2007 at 3:31 PM
Sorry, I've to take some of the things I posted earlier back.

"shadowing" does not belong to "lighting", so they're 2 different graphical components.
Thus, it has nothing to do with the lighting.txt.

However, the instance of neighbourhood material shader modding is valid that it can cause data corruption on the using neighbourhood files. But probably I chose some bad values . After all, I did no further experiment on that coz that wasn't the subject I was looking at.

The neighbourhood files and lot files do store their own individualised orientation infos, and that's bad (Maxis should have made all those lighting and shadowing orientations for lots dependent on the lot's location in a particular neighbourhood.). For some infos about modding lot and neighbourhood file, may read here,
hopefully some hints on the orientation things can be found.

Yet, I suppose if the material shaders were modded, perhaps starting a new neighbourhood and new lots so that the new new files may adapt to the new settings.

Anyway, here's a link to the shadowing shader here

These're the areas I know of the shadowing, and there can be more.
Good lucks.
Sockpuppet
Original Poster
#5 Old 2nd Jul 2007 at 4:11 PM Last edited by Kabuto : 16th Jul 2010 at 10:25 PM.
Look the screenshots below !

First, it's the result of the evening settings from the Radiance Light System 2.1 by GunMod
http://www.modthesims.info/download.php?t=101456

Second, it's the result of the day settings !

Third, it's the result of the morning settings from the Lighting Mod by spookymuffin
http://www.moreawesomethanyou.com/s...p?topic=13778.0


So "Lighting.txt" can set the shadow orientation and size !
Screenshots
Mad Poster
#6 Old 3rd Jul 2007 at 3:43 AM Last edited by niol : 3rd Jul 2007 at 10:03 AM.
Oh , I see.. the geometry is handled together.
Gonna check them out after my medications.

edited:

Just realised I made fool out of myself, :embarassing: ...
I opened a wrong lighting .txt to check earlier.
The flu is killing me...

If you want to seek out most of the shadow-related settings:
1. open the lighting.txt in a word processor like wordpad, notepad, o any other freeware text-editor.
2. press "ctrl" + "f" to get the find/search feature out. seek for keystrings like "shadow", "direction" or else.
Sockpuppet
Original Poster
#7 Old 3rd Jul 2007 at 7:58 PM
See the code of the morning settings from the Lighting Mod by spookymuffin

Code:
####################################################
# Morning
#
lightingState morning
   control -edith true
   
   skylight                       (0.4, 0.2, 0.1)   0.4
   light sun      (0.5, 0.5, 0.2)  (.85, .65, .4)     2
   light sky      (-0.5, -0.5, 0.5) (.6, 0.5, .2)    0.6

   diffParam insideAmbientColor     (.95, 0.455, .75)
   diffParam insideFloorAmbient     0.08
   diffParam insideWallAmbient      0.001
   
   diffParam floorThreshold       0.2
   diffParam wallThreshold        0.2

   #                           pract. diffuse  p. falloff  d. falloff
   modifiers insidePortals         4       1          1           1   
   modifiers insidePortalSpills    4       1          1           1
   modifiers outsidePortals        3       3          1           1
   modifiers outsidePortalSpills   3       3          1           1

   portalSaturation 1

   #                         pract. diffuse  p. falloff  d. falloff
   modifiers insideObjects     0.8     0.7      0.2       0.9  
   modifiers outsideObjects    0.8     0.7      0.2       0.9

   projectiveShadowStrength 0.7

   unlitRoomColor (.3, .275, .275) -threshold .25

   # misc
   flatShade (1, .95, .85) .75  -sims 1.7 -objects 1.3 -indoors 1 # for lighting set to low.

   #               max in time (s)   max out time (s)
   transitionTimes        2                 100

   environment (0.85, 0.65, 0.4) 0.8

   # UI Lighting Parameter (based on but not identical to skyLight param.)
   UIShade (0.695, 0.699, 0.824)  1

end



See the code of the evening settings from the Radiance Light System 2.1 by GunMod

Code:
####################################################
# Evening
lightingState evening
   control -edith true
   skylight                         (0.4, 0.2, 0.1)     0.75
   light sun      (1.7, 1,  2)    (.65, .45, .45)      1
   light sky      ( -1.7,  -1, 2)    (.1, .025, .025)      .5
   light simFill1                   (1.7, 1,  2)    (.65, .45, .45)      .4
   light simFill2                   ( -1.7,  -1, 2)    (.1, .025, .025)      .6
   projectiveShadowStrength 0.7
   diffParam insideAmbientColor       (.85, .75, .75)  
   diffParam insideFloorAmbient         0.001  
   diffParam insideWallAmbient          0.001  
   diffParam floorThreshold           .4
   diffParam wallThreshold            .4
####################
# MASTER PORTAL BASE
####################   
   modifiers insidePortals        0    				 			 0            1         1
   modifiers insidePortalSpills   1.4    2.2       .35         1.2
###
###
   modifiers outsidePortals        0    2.28       1         1.3
   modifiers outsidePortalSpills   3    3       1         1.3
###################
# MASTER LIGHT BASE
###################
   modifiers insideObjects   1    .7       .1111         .6
      modifiers outsideObjects  .5	 .3        .35         .4
   portalSaturation 1
#####################
# MASTER ROOM AMBIANT
#####################   
   unlitRoomColor (.09, .09, .11) -threshold .4
   flatShade (1, .95, .85) .75  -sims 1.7 -objects 1.3 -indoors 1
   environment (0.65, 0.35, 0.35) 1
   fog (0.7, 0.4, 0.4) 5 2000
end
Sockpuppet
Original Poster
#8 Old 10th Jul 2007 at 11:36 AM
So iinside these settings, there are parameters which are able to change the shadow but I don't find the "shadow" and "direction" parameters that you tell me !

I try to ask some modders but GunMod is gone and spookymuffin didn't write the daybreak settings !

Mad Poster
#9 Old 10th Jul 2007 at 3:25 PM Last edited by niol : 10th Jul 2007 at 3:34 PM.
Kabuto,

Lol, sorry I'll have to compare their scripts more to see if I can get any idea of how they modded the shadowing direction and strength.
But, my present best guesses are
light sky and light sun
There could be (x,y,z) (R,G,B) Strength?

just think of the shadow is the after-effect of the light sources.
Altho they're 2 graphical components, it seems their directions and strengths have well been integrated together so that setting one will automatically set the another one.
Sockpuppet
Original Poster
#10 Old 10th Jul 2007 at 8:30 PM
THANK YOU VERY MUCH, you give me some helpful infos because I also want to change the sky color !!!

Now I need to test it !

Again THANK YOU niol !!!
Sockpuppet
Original Poster
#11 Old 23rd Jul 2007 at 1:02 PM Last edited by Kabuto : 23rd Jul 2007 at 5:42 PM.
Well, about the shadow/light orientation, just by changing the x,y,z axis values !
So i set the 6am and 6pm shadow/light like this below (The EA day shadow/light looks like 4pm) :

# Morning (East sunlight)
light sun (-0.5, 0.05, 0.2) ...
light sky (0.5, -0.05, 0.5) ...

# Evening (West sunlight)
light sun (0.5, -0.05, 0.2) ...
light sky (-0.5, 0.05, 0.5) ...
Mad Poster
#12 Old 24th Jul 2007 at 4:47 PM
Thanks for your sharing your settings
So, others interested can benefit from them, too.
Scholar
#13 Old 5th Jan 2013 at 11:00 PM
Im so sorry for such disgusting necro, but I figured why make a new topic when this one already exists.
Im adjusting Radiance 2.4 Lighting txt to give maxis season lighting, and want to shorten the shadow length for Morning. Id like the shadows for morning to be as long as Evening, which are longer than normal day shadows, but for the life of me cant figure it out. For what I've gathered Im guessing "light sky' is shadows? But these numbers are RGB values arent they? How to I copy the shadow length from evening to morning?
Here is light sky value for evening:
light sky (2.8, 1.3, 2.5) (.95,.6,.5) .05

and here it is for morning:
light sky (2, -1.5, .5) (.8,.6,.4) .54 #2:00
or is skylight shadows? Im so confused.
Doing all the things, and *mostly* not failing.
retired moderator
#14 Old 21st Jul 2013 at 3:51 AM
Sometime necro is helpful, I completely missed this thread and now I've learned something new! Thank you Night Racer. Did you ever figure more of this out? I'd love to have shadows that update as the day goes on.
Sockpuppet
Original Poster
#15 Old 21st Jul 2013 at 6:20 PM
You can't update it as the day goes on because the Lighting.txt (lightingState parameter) is limited to 4 values :

- Morning (Sunrise, night-daytime transition) : 6am to 7am
- Daytime : 7am to 6pm
- Evening (Sunset, daytime-night transition) : 6pm to 7pm
- Night : 7pm to 6am
Back to top