I'm trying to make a functional version (which can be turned on/off) of the table fan that came with Get to Work. However, I have no idea how to make the blades rotate. I tried to see how the industrial fan that also came with Get to Work and the wind turbine world decor from the base game work, since their blades do rotate, but I didn't discover anything, because when I clone these two objects, the mesh for the blades do not even show up in S4S.
The reason those objects have no mesh for the fans is that they only have VFX for that. For your project you will need to make an actual rotating animation or use the pinwheel shader. I would recommend doing an actual animation over the shader since the settings have to be exactly right on all LODs for it to appear correctly. Be aware that doing a full circle animation may have minor issues with stuttering due to the game engine.
But how do I make animations for an object and import them to the package? Apparently the "Animation" option in Main Menu is just for sim animations, unless I missed something. Sorry, I'm a newbie, I've never done an animated object before. Also, do I have to remove the blades from the mesh like the other two objects that use VFX?
Since there are no tutorials I can direct you to, I can only give hints and tips. The animation option you are seeing is geared toward sim animations yes, but you can also IMPORT object animations. The best thing I can think of is to take a look at all the elements in andrew 's drinking bird HERE to get an idea of what is required to make this work. You will also need to create additional bones and assign and weight them properly.
How can I create bones and assign weight to them? I created an animation and I imported it to the package but in game the animation doesn't play. Could the problem be that, or maybe the fact that I separated the blade from the rest of the mesh to its own layer so I could animate it, or maybe the tunings? I've included the package and blend animation file here.
Okay, so I added a bone to the blades' axis and assigned weight, but I'm not able to import the mesh to S4S, because just the blade will import and the rest disappears. I think it's because there are three mesh layers while the original fan has two. If I change the blades' cut number to 2, then the blades will disappear instead, and if I merge the blades and the rest in the same layer like the original then the entire fan rotates instead of just the blade. File link here.
I still couldn't get it to work. I redid the animation using the bone instead of the mesh and apparently it's working in blender. I also looked at necrodog's ceiling fan and created a new clip (off state) which is just one keyframe with the blades stopped and edited the ASM to be more similar to the way he did. However, in-game the animation doesn't play. Files here.
In-game video (P.S. my game is in Portuguese, "Ligar" means "Turn On" and "Desligar" means "Turn Off"):
Rename the actor in your Clips and their headers to fan. You will also need to change the instance of the ASM in your Animation Tuning resources. Currently it is 02d5df13:00000000:1D22A858D75C010F, it needs to be 02d5df13:80000000:1D22A858D75C010F
The bone position/rotation in the .package is incorrect, they need to be where the bone is in blender. I'm not sure how you made the animation (also not sure the reason for the extra bone) but looping animations like this don't need to be repeated with any modifier and that may be causing it to not import properly.
You're on the right track. Adjust those few things and test again.
It's still not working, nothing happened :( I changed the position, but I'm not sure about the Orientation field in the package file (rig). Is that what you meant by rotation? I'm not sure how do I see the coordinates for that in Blender. For the position I placed the cursor in the spherical part of the bone and got the x, y, and z coordinates, I'm not sure if that's the right way. Also the additional bone was just so the rotate bone would rotate around the y-axis without changing its spacial position.
So with this updated .package I see that the two new bones do not have a parent bone selected. That will affect the positions of the bones. Take a look at THIS thread for information on how to rotate the bones (specifically my responses).
Last Edit: Sept 18, 2017 18:15:44 GMT -5 by brujah
Hello lexus20 I have view your fisrt package and i fixed it. The step i did were the ones brujah points plus others.
1.I delete your bones except transformBone one and make two new _bind_rotate and _bind_rotatebase bones at the rig/slot editor at studio.
2. in the rig/slot editor i put transformBone as parent bone for these two new bones.
3. At the warehouse in the rig section i put orientation as Identity for the two new bones just put "Identity" where 0,0,0,0 appears at Orientation part.
4. Now in Model and each Model_Lod i Put the new bones in the bones section at phong , but you need to reference these new bones in the BindPoseBone at resorce part there just scroll until find it..
5. in the BindPoseBones put the bones hash ofyour bones and in InverseBindPose put "Identity" there, later there will be a step where studio will update this matrix.
6 Return to rig/slot editor in studio and update the _bind_rotate bone position where the fan blades are.
7. Go to tools-->modding---> renumber rig and slot and also Sync rig changes to slot. This will update the bone location, renumber the rig and update the BinPoseBone matrix.
8. export your new mesh and weight correctly the bones, reimport.
9. create a new clip pack and export a blank male or female clip. append the exported fan with the rig and create the on / off clips, delete the male rig just leave the fan rig and save.
10. import your new animated fan into a new clippack, reference the clips in the ASm, and put in TS40:anim_fan_fast and TS40:anim_fan_off the 02d5df13:80000000:1D22A858D75C010F id instead off 02d5df13:00000000:1D22A858D75C010F.
11. in each clip and clip header of your posepack clips, rename the actor to tablefan instead of X and put tablefan in Explicitnamespaces and delete all the events and slot assigment.
12.Put the clips and the fixed package in your mods folder, test and enjoy
Post by orangemittens on Sept 19, 2017 8:39:01 GMT -5
Note that the oddness of rotating animations in Sims 4 is due to a limitation of the game. Andrew and I wrote a tutorial in March 2016 showing how to make an animated ceiling fan (with 180 illustrated steps no less). However, we ran into this odd jerkiness that you can see with just about all Sims 4 animations that is particularly acute with rotating objects. So, instead of posting the tutorial, I posted at EA forums asking about it. Although the issue was sort of acknowledged, I never got a real answer, and they never fixed the problem. It isn't Studio that is introducing the stutteriness. Since the game won't allow perfect anims, we just never posted our fan or our tutorial :(
Please help other creators find Sims 4 Studio and receive the help you received by mentioning Sims 4 Studio with your downloads Please do not PM me with meshing questions. Post in the Creator Help forum and I will answer you there.
Thank you! I followed necrodog's steps and it worked! Just some extra things: How can I add the orange target symbol in the interaction bubble like other interactions that don't require the sim to go near the object? Also, how can I add a sound effect to it when it's on and make it stop when the fan is turned off? I tried to use the Sound event in the turned on animation but the sound never stops when I turn it off.
If you are having problems seeing the CAPTCHA, please clear your browser's cache and cookies and ensure that you do not have any browser addons or extensions that interfere with the display of the CAPTCHA. Then, close the CAPTCHA window and click on the register button to open the CAPTCHA again.