How the walls in The Sims are lying to you | Bitwise
Ойындар
I'm a professional programmer who works on games, web and VR/AR applications. With my videos I like to share the wonderful world of programming with everyone!
Have you ever thought about how the walls actually work in The Sims? No? Well, there's a lot more to it than you can imagine! I explain what challenges there are to building a wall system like The Sims and reveal some secret cheats they used to fool you.
Timestamps
0:00 Intro
0:55 Defining and testing our hypotheses
4:15 What solution we developed ourselves
8:02 How the Sims is lying to you with their lighting
My patreon: / digidigger
Music in in outro:
Besus y Abrazor - Rolemusic: freemusicarchive.org/music/Ro... available under a Creative Commons Attribution license creativecommons.org/licenses/...
Пікірлер: 62
Who can we trust if even the walls intend to deceive us?
@diekrahe.
Жыл бұрын
That sounds like a Rush lyric
grandpa, the youtuber you loved just uploaded a new video!
If I knew the walls were up to this much mischief, I would have blamed them when all 5 of my Sims set on fire and then drowned.
@SomethingExtra
Жыл бұрын
SHUT UP
nft? no fucking thanks
@CooperHMan
Жыл бұрын
L take
*The King has returned*
Another great video showing off something very few stop and think deeply about! Always a treat! :) That said, what you work professionally on isn't anyone's concern, and I still enjoyed watching how you implemented Sims-like wall logic in your game. As a viewer, however, I really do want to express my hope that this is the only context in which we see NFTs on this channel.
@DigiDigger
Жыл бұрын
Glad you liked the video! In order to use the footage of the game we're working on I had to promise to also provide a link to the project under the video. Don't worry, I haven't sold my channel to NFT investors or anything. I'm just here to make interesting content about games and game development.
It's amazing that this topic has been on my mind for the last few weeks, and suddenly this appears. Thank you!!!
The walls in my house lie to me too. They tell me things that no man should hear. So I just put my fingers in my ears and shout "LALALALA I'M NOT LISTENING LALALALA". But they never stop, tis only a brief respite from the never ending horror.
It's great to have news from you! Excellent video!
The windows should change their brightness depending on which direction they're facing
Wow! I just found your channel and I'm so excited to watch your back catalog. These are some of the things I think about but wouldn't even know where to begin to find an answer, much less one I could understand having no experience with programming. Pls know that my nerdy, adhd brain is grateful 🙂
Always beautiful to have a new video of yours
I was thinking about this last week!
Awesome video! Love the explanation of this and it really showcasing just how much thought went into our game! 👏
OMG finally new video!
excellent video!
how do you deal with the wall corners or when walls are connected in weird angles how do you properly connect walls together?
I knew they were lying after my Sims walked through them
cool video, i'm trying to build the same thing, the only thing i can't figure out yet is the way to detect which direction the wall should hide. nevermind, looks like dot product between camera & wall is the answer 😅
I would do it slightly different, I would follow the wall connections instead, if I can circle back to the starting point then everything inside is marked as inside, if it was already marked inside then it's flipped to indicate outside, whenever removing walls the ones furthest from point 0,0 declare the state of inner ones if no connecting seal detected
@Cleefbag71
Жыл бұрын
Unfortunately that's not going to work when you build a wall that divides an existing room. You'll be able to circle back to your starting point and the two new rooms you've made will be already marked as inside, so they'll get flipped to outside.
@zxuiji
Жыл бұрын
@@Cleefbag71 Looks like you didn't read my comment properly otherwise you'd realise that's already taken care of by a higher priority rule despite me not considering that situation in the 1st place
@Cleefbag71
Жыл бұрын
@@zxuiji I read it perfectly fine, thanks. "if I can circle back to the starting point then everything inside is marked as inside, if it was already marked inside then it's flipped to indicate outside" is the ONE rule for adding walls, no mention of priorities anywhere. Maybe you should articulate yourself better.
@zxuiji
Жыл бұрын
@@Cleefbag71 keep re-reading it until you see where you went wrong, I'm not gonna treat you like a child who can't work things out for themselves
@Cleefbag71
Жыл бұрын
@@zxuiji Here's a better idea: how about you implement your algorithm and prove that it works. I can wait.
As you said, the flood fill algorythm is very slow and even if you managed to optimize it to only use it when really needed this will always slow down the game everytime you close a room. What about an A* pathfinding from one side of a wall to the other, In the case of a closed room it's equivalent to a flood fill but in the case of an open room it can save you some precious computing time. Anyways, this was a good video.
I'm not sure about lightning going out from 4 sides. That's not really how light works. One side should be giving brighter sun than other imo. Sun is only on one side, but ambient gives same power. Am I wrong?
Oh shit new video
Great video. You explained the process behind adding or removing 1 wall node. What are you doing when removing multiple nodes? Do you run the algorithm N times or is there an optimization?
@DigiDigger
Жыл бұрын
That's the neat part, you just remove wall pieces one by one in a single frame. You only need to run the algorithm for the wall pieces that connect to at least two walls. If you do it in the right order, for an entire segment usually just the first piece you remove is connected to two other walls. For the rest you probably won't even need to run to algorithm anymore since they're usually not connected to more than one wall piece.
How did I not get notified for this video…
My brain hurts now, why is this so complicated?
You're back!! Is this a one-off, or are you back to doing regular videos? No pressure, I'm just interested 🙂
Is the wall system you created for sale? Would love to see under the hood of your system!
More more more!
Quality content 👌
2:04 maybe the game thinks that because there is no floor/ceiling? Or maybe simply the game doesn't update the wall visual condition properly.
holy it's been 10 months
my brain hurts
I wonder how many Sims games still have this as a bug or intentionally
I didn't watched it yet, but the video is just great! I love it!
it doesn't it's broken
"Hey let's check out the game he's working on." >NFTs Yeah, unsubbed. NFTs contribute nothing to the future of video games and only a very select few can truly profit off of it when it comes to time investment. It's no different than gambling. Cya.
@duckrinium
Жыл бұрын
Well, you can continue watching content but not play their game if you don't like that. You may be liking content they do, but no one said that you need to like other stuff they make. I haven't even noticed it's NFT related, and I still don't care about it.
@InfinitySkiesDFG
Жыл бұрын
Don't knock it until you try it👍 The game is also free to play so investment is optional!
@CooperHMan
Жыл бұрын
The way Infinity Skies incorporates the use of NFT's is what sets it apart, it's not a ponzi scam. It's just a good game with an extraordinary vision utilizing new technology. I know i'll cop hate but all I gotta say is you have to keep an open mind. Too many people are narrow minded with what can be achieved here.
"NFT-Value" guess this channel should stay dead for the rest of time.
@Noughtilus
Жыл бұрын
Yeah there's a link in the description. Some kind of dead on arrival NFT grift (surprise). A shame.
@BlueTJLP
Жыл бұрын
NFTs bad, upvotes go brrrr
@xriuk
Жыл бұрын
Bruh, he didn't even mention his game or invited to download it, just said he's working on it. The video is great, just enjoy it...
Nice to see you are back. ... But, does this topic really deserves a video?
Great video but I have one tiny inconsequential gripe. At 0:13 you say you "build a couple (of) walls" but actually build 4. I have a huge annoying complex about this because of heaps of interactions like this growing up, which made me incorrectly believe that a couple meant 4 exactly when it means 2.
@SolantisA
Жыл бұрын
A couple could mean 4 as well... if you're open-minded enough 😏
@GrandHighGamer
Жыл бұрын
@@SolantisA "Build a polycule of walls"
yoooooooooooooooooooooooooooooo