|
Post by meinkatz on Feb 13, 2019 20:21:06 GMT -5
Hello I didn't ask for help for a longtime but I know you are fantastic community and I would like to know if you could help me... Basically I would like to create The New Perspective Mirror by Bonaldo But there is a drawing on it and it's basically the point! I tried to make it but unfortunately the drawing doesn't appear at all it's just a simple mirror. Do you have a solution for this? Thank you for your help! Nicolas Lavigne
|
|
|
Post by simsi45 on Feb 14, 2019 3:21:11 GMT -5
Well usually mirrors, are split into 2 groups: The frame and the reflective panel. The reflective panel group (usually called flatmirror in S4S) has it's own mirror shader and a texture applied to it. The shader makes the panel reflective, while the texture is used in place of the reflection when you zoom out of the mirror (to save performance) In other words anything you apply to that group won't be visible because the mirror shader will override it. (unless you want it to be visible from afar only)
The only possible way I can think of, is to add your texture (your drawing) to the frame group (this is usually the texture used at the back of the mirror) I haven't seen your blend file so I'm not sure how your mesh is built, but what I would do, would be to: 1) Copy the reflective panel and make it a separate group (the frame) 2) Then push it in front of the reflection group juuuuust a tiny bit 3) Then apply your texture on to the frame panel (you might need to remap accordingly)
I would suggest cloning the "Straight-up Wall Mirror" (from the base game) since it has it's texture tabs split. It makes it easier to make your mirror.
|
|
|
Post by meinkatz on Feb 14, 2019 12:59:25 GMT -5
Thank you for your answer but it was a fail! :( Still the same If you don't mind having a look I uploaded the file for you here
|
|
|
Post by jurisprudence on Feb 14, 2019 13:24:05 GMT -5
meinkatz Hello. I'm the least person to be giving this kind of advice, but I ran into a similar issue a bit ago and thought you might be experiencing the same thing. The mirror part of the cloned object should have a UV map even though you may only have 1 main cut. In my case, the mirror was only using half the space of the UV map (if that makes sense). I unwrapped the mirrored part of my mesh inside that half, and it worked.
|
|
|
Post by simsi45 on Feb 14, 2019 13:43:49 GMT -5
EDIT: meinkatz might be onto something. You can try his advice before mine since it seems simpler. If not feel free to follow the steps below... Ok so there are quite a few issues with your file. First thing you wanna do, is duplicate your "reflection" group in blender (cut #2), move it a a tiny amount forward and "join" it with your "frame" group (cut #1). Like I mentioned above, this will allow whatever texture you use for the frame to be visible in front of the reflection. Once I did that and imported it in S4S, I changed the texture of the 1ST tab (that's the frame's texture) and added your drawing. And boom it worked! However, your drawing texture doesn't have a transparent background. You should have a transparent background in your texture, to make the reflective part behind it visible. Otherwise your "drawing panel" will hide the mirror! I made a quick sketch in photoshop (it's very bad) with a transparent background and added it to the frame texture. Take a look in the picture below. The Left mirror is your original drawing texture, the Right is mine with a transparent background. One thing to note, is that because you joined the frame with the panel you will need to remap your mirror so the back will have it's texture correctly applied. In the picture below you can see the back of the mirror. It needs to be remapped in Blender. One important last thing to note, is that you need to enable the Alpha channels in your frame group. Otherwise the transparent part of your texture will appear black in game. I'll explain how to do that if you want me to, however I think this is already pretty overwhelming so I think it's better we take it step by step. Feel free to leave any further questions.
|
|
|
Post by meinkatz on Feb 14, 2019 13:47:02 GMT -5
Thank you for your help it's very nice! I'll have a look but it seems difficult lol
|
|
|
Post by simsi45 on Feb 14, 2019 13:49:08 GMT -5
I wouldn't mind sharing my "edited" file, but I'm not sure if I'm allowed to.
|
|
|
Post by meinkatz on Feb 14, 2019 13:58:45 GMT -5
I'll try by myself and let you know.
|
|
|
Post by meinkatz on Feb 14, 2019 14:24:45 GMT -5
So I tried and this is the result... I didn't do the Alpha channel though... Is it like a transparent object?
|
|
|
Post by simsi45 on Feb 14, 2019 14:42:22 GMT -5
meinkatz Seems like it's fine. You will have to fix the normalmap and the specular though (because it looks broken) Have you made your drawing's texture background transparent?
|
|
|
Post by meinkatz on Feb 14, 2019 14:45:29 GMT -5
Yes the background is transparent I fixed the specular but I still can't see the mirror :( This is the link
|
|
|
Post by simsi45 on Feb 14, 2019 14:56:37 GMT -5
Ok we're getting there. The mesh looks fine. The issue is that you didn't clone the mirror I specified. It's called the "Straight-up Wall Mirror" (from the base game, the tall one that sticks on the wall) That is the only mirror I've found that has 2 different texture tabs: one for the frame and one for the reflection! Try importing your mesh into a clone of that and importing your texture on the 1ST texture tab (not the 2nd) After that all we need to do is to enable the alpha on the frame, so you can make your texture.
|
|
|
Post by meinkatz on Feb 14, 2019 15:07:46 GMT -5
Ah yes sorry! Ok It's done HERE
|
|
|
Post by simsi45 on Feb 14, 2019 15:25:19 GMT -5
OK good. All you need to do now is to add the texture of your previous mirror you sent me (the 2nd one) and replace it with the one on the 1ST tab. This will make the front of the mirror black and the back will stay white. The black part indicates there is supposed to be transparency there but it's not enabled on your model. After that we can enable it and we'll be done.
|
|
|
Post by meinkatz on Feb 14, 2019 15:29:01 GMT -5
Sorry I don't understand this part? The one with the alpha? It doesn't make the front black
|
|