|
Post by Fwecka (Lolabellesims) on Apr 7, 2021 5:33:29 GMT -5
I made another post about this so mods feel free to yell at me for making a second post, but that last post was mostly about a weird image that I couldn't identify. Turns out the image is called a "snow mask." Will need to research that for sure. I'm kind of sort of helping someone create an invisible swatch for the skating rink. I managed to make it invisible, but unless I do something more (not sure what exactly) there are shadows in game. The only solution I could think of was to minimize the shadow mesh to the point where it was the size of a pin. That fixed the shadow problem but the animation became borkified. My sim can now levitate. So, I'm thinking it's something with the weights? Or maybe not? Halp?
|
|
|
Post by Fwecka (Lolabellesims) on Apr 9, 2021 21:16:53 GMT -5
Does no one have any ideas? As long as I don't touch the shadow meshes, the animation is fine. But, if I don't minimize the shadow meshes, I get a shadow in-game? Is there a workaround?
|
|
|
Post by network on Apr 10, 2021 16:19:38 GMT -5
Can you link the package?
|
|
|
Post by Cidira on Apr 10, 2021 19:43:42 GMT -5
There are other ways to remove shadows besides editing the mesh. I'd have to mess with it to say whether any of them will work here, though.
|
|
|
Post by Fwecka (Lolabellesims) on Apr 11, 2021 4:05:52 GMT -5
Here are the files and I thank y'all greatly. It's the sun shadow that's the issue. There isn't a ground shadow--not one that I can see, anyway. However, altering the shadow mesh glitches the animation and honestly, I'm fresh out of ideas.
I'm thinking that maybe it's not possible to have a visible and invisible swatch for something that has scripts or codes or whathaveyou attached. Having an invisible swatch for an OMSP is one thing; this skating rink is a whole other animal altogether. Bakiegaming I think has some invisible items but I think in his case the items are fully invisible. There is no visible swatch. And I think his invisible items have either a drastically minimized mesh or perhaps an empty mesh. I'm wondering if that's the route I should go with this.
|
|
|
Post by Cidira on Apr 11, 2021 9:59:20 GMT -5
I'm not seeing any link.
None of my shadow removal methods have anything to do with the mesh, but I'm pretty sure all of them do require the invisible swatch to be a separate package and catalog entry from any swatches that need to keep their shadows. Once I can access the package, I'll see what I can do.
|
|
|
Post by Fwecka (Lolabellesims) on Apr 11, 2021 21:44:54 GMT -5
I'm not seeing any link. None of my shadow removal methods have anything to do with the mesh, but I'm pretty sure all of them do require the invisible swatch to be a separate package and catalog entry from any swatches that need to keep their shadows. Once I can access the package, I'll see what I can do. Shoot. Sorry about that. drive.google.com/file/d/1vD7sQ8U1RigKwSobYd995Ebln-t_AqvJ/view?usp=sharing
|
|
|
Post by network on Apr 11, 2021 21:59:45 GMT -5
Have you tried replacing the shadow mesh with a flat horizontal plane (sat at ground level) of about the same size? Sorry I can't be much help here, I don't have seasons to test it with haha.
|
|
|
Post by Cidira on Apr 11, 2021 22:25:07 GMT -5
All right, most of my usual tricks were not even options on this particular file, but I did find one that worked. (It also got rid of the ground shadow, which was definitely there and extremely obvious in the sunlight.) After trying a few other things, I just went into the Model resource, scrolled down to LODs and clicked on the Edit button, and just straight up deleted the two shadow LODs from the list. Then I went into the game and confirmed that both shadows were completely gone, and made a Sim skate on it, which he did with his blades touching the ice rather than up in the air. I did not do extensive testing, just proof of concept, but nothing seems to have broken. Naturally, as I mentioned earlier, you can't have a genuinely useable visible swatch on the same package and catalog entry as the invisible one, or it'll be missing its shadow; shadows are usually not variable by swatch. Hopefully that'll work for you and hold up to more involved testing.
|
|
|
Post by Fwecka (Lolabellesims) on Apr 12, 2021 22:05:37 GMT -5
Have you tried replacing the shadow mesh with a flat horizontal plane (sat at ground level) of about the same size? Sorry I can't be much help here, I don't have seasons to test it with haha. I did consider something like that, yes. I thought of deleted all but the floor of the shadow mesh but I haven't tested it. I'll do that now and get back to you. Edit: I looked at the shadow mesh again and it doesn't even include the floor. I tried minimizing the mesh and I tried deleted all but one face of the mesh and minimizing that face, but then the animation broke. I even tried to import an empty mesh to Studio but Studio refused the import the mesh. I could try importing an empty mesh to S4PE, I guess. ¯\_(ツ)_/¯ However, it looks like Cidira figured it out.
|
|
|
Post by Fwecka (Lolabellesims) on Apr 12, 2021 23:40:11 GMT -5
All right, most of my usual tricks were not even options on this particular file, but I did find one that worked. (It also got rid of the ground shadow, which was definitely there and extremely obvious in the sunlight.) After trying a few other things, I just went into the Model resource, scrolled down to LODs and clicked on the Edit button, and just straight up deleted the two shadow LODs from the list. Then I went into the game and confirmed that both shadows were completely gone, and made a Sim skate on it, which he did with his blades touching the ice rather than up in the air. I did not do extensive testing, just proof of concept, but nothing seems to have broken. Naturally, as I mentioned earlier, you can't have a genuinely useable visible swatch on the same package and catalog entry as the invisible one, or it'll be missing its shadow; shadows are usually not variable by swatch. Hopefully that'll work for you and hold up to more involved testing. Cidira, you are the man! Or woman! We are not worthy! I did not realize it was okay to delete a resource. I figured that game coding is usually tied to certain resources and if a game expects a resource and it's not there, the game will burst into tears and crash or throw errors or won't load the mod, and so on, and so on. TS4 may be different but other games, such as Stardew Valley, will not load a mod if a resource isn't there or isn't named appropriately. Come to think of it, however, the shadow mesh does not contain the floor, only the walls, and the walls don't have anything to do with the sim's animation. I don't know why I didn't make that connection before. Thank you, thank you, thank for figuring this out. I likely won't test this extensively as I've got 10,000 other things to do atm but the original person who wanted this will, I think. Gosh, I sure appreciate your help. Edit: Well, dang, Cidira, looks like I spoke a little too soon, but I did manage to figure it out thanks to you. I tried multiple variations of files where I deleted the shadow resources from the medium LOD, the shadow meshes themselves, one visible swatch, no visible swatches. All of them resulted in the same thing. Then I noticed that the shadow was in the exact shape as the mesh group that's meant to be the windows. So, I narrowed my focus on that particular group and saw this: I unchecked ShadowCaster in all the LODs and it works! Yes, you can have a visible swatch and an invisible swatch, but I found I had to either remove the shadow resources under "Model" as you said, or just delete the shadow meshes in the list where the strings and images and everything else is--I'm not sure if the shadow meshes under "Model" and the shadow meshes in the list are the same thing, tbh. I just know that if I leave both of them the shadow shows up. In other words, I have to get rid of the shadow meshes and/or the shadow resources under "Model," make sure every LOD is set to PhongAlpha, and uncheck ShadowCaster in every LOD, in addition to adding a blank png to the invisible swatch (or a dds with a black alpha), of course. Everything works great after that. No shadow, you can have a visible swatch, and the animation is fine. Again, it's thanks to you. I would not have known what direction to go with my expirementation if it were not for you. Thank you!!!
|
|
|
Post by Cidira on Apr 13, 2021 11:21:02 GMT -5
Glad you've got it working! (My secret is that I just try things, and reverse them if they break something. )
|
|
|
Post by Fwecka (Lolabellesims) on Apr 18, 2021 2:42:45 GMT -5
Just double-checking here, but the shadow resources found under "model" are the floor shadows, right?
I tried to test this more extensively. I'll definitely need to blank out the snow map as it shows phantom snow when invisible, and will probably delete the light resource altogether to avoid the phantom light issue, as well. I hope deleting the light source doesn't cause issues. I noticed if I put the rink indoors and had it close to the walls in the lower-left corner the animation was a little jerky as the sim left the rink. Sometimes it happened, other times not. I don't really know why the animation is jerky at times but it seems to be only if the rink is indoors and squeezed into the lower-left corner of the room and only when the sim left the rink. I'll probably upload this and I wish I knew why there is occasional jerky animation.
|
|
|
Post by iRougeLady on Dec 31, 2021 13:03:58 GMT -5
Hey just wanted to know if you're still working on this? I'm actually looking for an invisible rink cc, wondered if you got around to finishing. Would love to try it out!
|
|
|
Post by Fwecka (Lolabellesims) on Jan 2, 2022 4:32:27 GMT -5
|
|