hajz
New Member
Posts: 3
|
Post by hajz on Feb 18, 2020 6:40:57 GMT -5
I'm making a table mirror that is tinted upward but even though the mirror pane is leaning it still behaves like a flat mirror in game. Below is the blend- and package file in case someone have any ideas. Blend filePackage file
|
|
|
Post by menaceman44 on Feb 18, 2020 16:44:46 GMT -5
Do you also have a picture of the issue?
|
|
hajz
New Member
Posts: 3
|
Post by hajz on Feb 22, 2020 3:07:15 GMT -5
|
|
|
Post by menaceman44 on Feb 22, 2020 12:01:23 GMT -5
I think your link for the package file is wrong as it keeps trying to get me to log in. The blend file link works fine. I've never worked with mirrors before but I do know that they can be quite specific with how the mirror surface is mapped. I'm wondering if because your mirror plane isn't triangulated it's meaning Studio can't import it properly. Try triangulating the mirror surface and reimporting it to Studio to see if it makes any difference.
|
|
hajz
New Member
Posts: 3
|
Post by hajz on Feb 23, 2020 3:23:08 GMT -5
Sorry! First time sharing. Here is another link that might work better: www.simfileshare.net/download/1633761/Thank you for the tip! I tried triangulating the surface but sadly it did not help. I also tried basically copying the mirror surface from the other, working, mirror but it didn't work either ;_;
|
|
|
Post by menaceman44 on Feb 23, 2020 13:30:49 GMT -5
The package download is working with the new link. Unfortunately though I don't know what the problem is. Hopefully somebody else will know more.
|
|
|
Post by lavsm on Feb 23, 2020 23:01:43 GMT -5
I think the problem comes from the MirrorPlaneNormal settings of the model.
When looking at your file, in the Flat Mirror mesh part, the values are MirrorPlaneNormal: 0,0,1 MirrorPlaneOffset: 0
These are the settings for a regular flat mirror.
When I cloned a tilted EA mirror, the values look like: MirrorPlaneNormal: 0,0.1891699,0.9819443 MirrorPlaneOffset: -0.2394558
Unfortunately I don't understand how to calculate these values for a tilted plane. Maybe someone knows, or you could try changing the angle of your mirror to match an EA tilted mirror and copy the values from it.
|
|
|
Post by lavsm on Feb 24, 2020 4:31:59 GMT -5
I think I managed to fix it, but it was kind of convoluted! I'll do my best to explain. First, in Object Mode I selected the mirror plane mesh and then ran this Blender script from the first answer post in the Text Editor window. This will display the three values needed for MirrorPlaneNormal under the Object Data tab. I typed those values into the FlatMirror mesh parts for all LODs in S4S as pictured (couldn't seem to copy & paste from Blender.) Make sure to remove the negative sign from the Y value. Then, to get the MirrorPlaneOffset value, I scaled the mirror plane in Edit Mode from the side Ortho view until the bottom touched the green ground plane line (zoom in all the way for accuracy once you get close.) Select a bottom vertex and copy that Y value into the MirrorPlaneOffset in S4S (don't remove the negative.) Don't save your mesh after scaling; this is only to get the offset value! I'm sure there must be an easier way to get this number but I don't know how. Here is the fixed package. I also moved the focus bone to the middle of the mirror plane so the Sim will look more directly at it.
|
|