Post by peacemaker on Sept 16, 2017 0:16:35 GMT -5
I had the idea to make a Pergola and use the curtain slots from windows to allow them to be easy placed on the frame I have made. Since curtain slots are one type of slot not supported yet by the slot editor, I've had to manually add the slot resources as well as rotate them where needed. The addition of the slots has not been a problem, however rotating them to cover the 4 sides of the pergola has thrown a spanner in the works. It appears that after rotating the slot, it has inadvertently scaled the the slot as well, squishing the curtains in the x-direction (possibly the z direction depending on viewpoint). For example:
Regular slots:
www.dropbox.com/s/wvfgx6je4oxn0k0/09-16-17_12-29-49%C2%A0PM.png?dl=0
Squished curtains on slot after rotating 90 degrees:
www.dropbox.com/s/3r5cbkuh30pdk4n/09-16-17_12-30-39%C2%A0PM.png?dl=0
I haven't touched the scaling entry in the rig resource at all to achieve this, I have only edited the rotation based on this thread here (link). So that is to say, I used blender to get the Quaternions, then the script function to get the matrix data, then inputted that into the transform section of the slot resource. The transform information resulted in:
0.999698,0,0.0003019515,0,0,1,0,0,0.0003019515,0,-0.999698,0,3,2.85,0,1
This is based on a 90 degree rotation with a quaternion value of 0.707, 0, 0.707, 0. I know this is a relatively technical question that most people probably haven't got a clue about what i am blabbering about, but is there anyone here that has worked with curtain slots on non-curtain objects and have successfully rotated them? Or can anyone dealing with slot rotation see an issue with my transform data that would lead to the slot squishing the mesh when placed on it? Or perhaps someone knows whether this is at all possible to achieve? As of right now i am feeling a bit defeated.
Regular slots:
www.dropbox.com/s/wvfgx6je4oxn0k0/09-16-17_12-29-49%C2%A0PM.png?dl=0
Squished curtains on slot after rotating 90 degrees:
www.dropbox.com/s/3r5cbkuh30pdk4n/09-16-17_12-30-39%C2%A0PM.png?dl=0
I haven't touched the scaling entry in the rig resource at all to achieve this, I have only edited the rotation based on this thread here (link). So that is to say, I used blender to get the Quaternions, then the script function to get the matrix data, then inputted that into the transform section of the slot resource. The transform information resulted in:
0.999698,0,0.0003019515,0,0,1,0,0,0.0003019515,0,-0.999698,0,3,2.85,0,1
This is based on a 90 degree rotation with a quaternion value of 0.707, 0, 0.707, 0. I know this is a relatively technical question that most people probably haven't got a clue about what i am blabbering about, but is there anyone here that has worked with curtain slots on non-curtain objects and have successfully rotated them? Or can anyone dealing with slot rotation see an issue with my transform data that would lead to the slot squishing the mesh when placed on it? Or perhaps someone knows whether this is at all possible to achieve? As of right now i am feeling a bit defeated.