Welcome to
Mod The Sims
Online: 3028
News:
Have an account? Sign in:
pass:
If you don't have an account, why not sign up now? It's free!
Other sites: SimsWiki
Reply  Replies: 7 (Who?), Viewed: 6204 times.
Search this Thread
Old 8th Apr 2009, 04:01 PM DefaultHow to fix the backwards lot impostor lighting #1
plasticbox
Original Poster

Pettifogging Legalist!



Join Date: Oct 2005
Posts: 5,720
Thanks: 173250 in 468 Posts
31 Achievements


This has been annoying me no end, ever since the base game – the lighting of lot impostors is exactly opposite the actual light inside the lot, which is just wrong. Turned out that it's surprisingly simple to fix:

1. Open (Base Game) > TSData > Res > Lights > Lighting.txt

2. Find "lightingState day" (line 204 in my file), and copy the parameters below that:

skylight (1,1,1) 0.5
light sun (1.5, 1.2, 2) (1, .94, .875) 2
light sky (-1.5, -1.2, 2) (.8,.8,.8) .5
light fill1 (1, 1, -1) (1,0.8,.9) .5

3. Find "lightingState neighbourhoodImposter : neighbourhood" (line 446 in my file), and replace the parameters below with the ones from the day state.

4. Voilà.

Next time you buildmode-change and save a lot, the light in neighbourhood view will be correct. People who use lighting mods will have to change this in their lighting mod files I guess (for all I remember, the Radiance mod did *not* fix this).


I assume the critical part is in the first bracket

light sun (-2, -2, 1.5) (1, .9, .8) 1.5

-- this looks like the position of a light source as X, Y, Z (the second one I'd assume are RGB values). The original value for neighbourhoodImposter is:

light sun (1.5, 1.2, 2) (1, .94, .875) 2

which is about the opposite. Not exactly sure how much of a role light sky and light fill1 play, but I guess it can't hurt to have them match the in-lot lighting (I actually can't think of a reason to have them NOT match?), that's why I'm replacing everything.

I haven't yet checked whether or not this matches the light direction in the rest of the neighbourhood (the light that is cast on hills, deco objects etc) but the light sources all defined in the same fashion so it would be very easy to make them match.


Always back up game files before you change them.

Newbie Road/Wee Barnoid: Starter houses | Backdoor Lane: Urban lots | Baskerville | Middleground | Elsewhere

I'm gone for now. Boats > Sims. Thanks for everything – it was a great time!
Last edited by plasticbox : 8th Apr 2009 at 04:19 PM.
5 users say thanks for this.
[ Click here to view a longer list ]
Old 8th Apr 2009, 04:53 PM #2
bluetexasbonnie
Top Secret Researcher

Join Date: Nov 2004
Posts: 1,828
Thanks: 18092 in 62 Posts
18 Achievements

View My Journal


I am too ignorant to even know what is wrong. I've probably seen what was 'wrong' at one point, but have now gotten so accustomed to ignoring it that I haven't a clue.

Can you give us a screenshot or something to help me see.

You can find more of my creations at The Sorceress & Company
Old 8th Apr 2009, 05:09 PM #3
plasticbox
Original Poster

Pettifogging Legalist!



Join Date: Oct 2005
Posts: 5,720
Thanks: 173250 in 468 Posts
31 Achievements


Here's an example (screenshots are from when I just tested this in the Base Game, with a random unfinished lot):


Lot impostor, before:



This impostor has been generated *without* the fix, as it's an old lot. Look at where the shadows are.


The actual lot:



Note how the actual shadows are exactly the other way around. I made a buildmode change (added the path to the front door), saved and went back to hood view ..


Lot impostor, after:



Correct shadows.

--
Screenshots
Click image for larger version

Name:  impostor_before.jpg
Views: 0
Size:  67.0 KB   Click image for larger version

Name:  inlot.jpg
Views: 0
Size:  71.8 KB   Click image for larger version

Name:  impostor_after.jpg
Views: 0
Size:  71.6 KB  

Newbie Road/Wee Barnoid: Starter houses | Backdoor Lane: Urban lots | Baskerville | Middleground | Elsewhere

I'm gone for now. Boats > Sims. Thanks for everything – it was a great time!
Old 8th Apr 2009, 05:34 PM #4
bluetexasbonnie
Top Secret Researcher

Join Date: Nov 2004
Posts: 1,828
Thanks: 18092 in 62 Posts
18 Achievements

View My Journal


Aah... I've probably never noticed that, but if I had, it would have driven me crazy. Maybe I'm still marginally sane today because I usually have shadows turned off.

Thank you.

You can find more of my creations at The Sorceress & Company
Old 8th Apr 2009, 06:22 PM #5
Mootilda
Site Helper

Join Date: Aug 2006
Posts: 11,872
Thanks: 21610 in 74 Posts
25 Achievements

View My Journal


Cool. Excellent find!
Old 15th Apr 2009, 12:55 PM #6
aelflaed
Top Secret Researcher

Join Date: Jan 2007
Posts: 1,890
Thanks: 13441 in 48 Posts
14 Achievements


yay! Thankyou.
Old 15th Apr 2009, 07:18 PM #7
GeneralOperationsDirector
Mad Poster

Join Date: Aug 2008
Posts: 3,826
Thanks: 24 in 1 Posts
1 Achievements


Thank you. Just curious, but how do you know that it is the lot imposter lighting that is backwards, and not the in-lot lighting? Are there other shadow-directions that agree with one but not the other? What happens if we copy the definitions the other way, instead?

This Space Intentionally Left Blank
Old 15th Apr 2009, 08:32 PM #8
plasticbox
Original Poster

Pettifogging Legalist!



Join Date: Oct 2005
Posts: 5,720
Thanks: 173250 in 468 Posts
31 Achievements


You can change the directions in any way you want, of course. Like I said, they're defined in exactly the same way for everything -- it's always an X Y Z matrix. I'm just assuming that most people would build their lots according to where the sun is *in the lot*, hence why I'm thinking of that as the "right" direction.

Newbie Road/Wee Barnoid: Starter houses | Backdoor Lane: Urban lots | Baskerville | Middleground | Elsewhere

I'm gone for now. Boats > Sims. Thanks for everything – it was a great time!
Reply


Section jump:


Powered by MariaDB Some icons by http://dryicons.com.