|
Post by cookiedough8910 on May 8, 2021 13:27:15 GMT -5
I was creating the bed frame for a bed i am making and it looked perfectly fine in s4s, but when I place it in my game it has this weird shadow. Any ideas what's causing it. Here is the blender files and package files for the objects. For some reason I cant add images here. Help would be appreciated. here is a folder containing the files - here is the link
|
|
|
Post by Fwecka (Lolabellesims) on May 8, 2021 20:20:54 GMT -5
You can use Imgur to add photos. At the top of the message box here in this forum, you'll see a button with a tiny photograph of a landscape. Click that and then past the URL of your image and it will show up in your post.
|
|
|
Post by Fwecka (Lolabellesims) on May 8, 2021 23:44:14 GMT -5
I've had a chance to look at your mesh and there are three things to note. One is that you have faces practically lying on top of faces. When this happens--when two faces are pretty much occupying the same space--you get something called Z-fighting. What happens is that the game doesn't know which face to render so you get flickering. The solution is to remove the faces that won't be seen--they serve no purpose anyway and just add to the polycount--and if you have edges still clipping through, select the edges and move them a little bit. Here's a screenshot of some of the clipping. There are more places like this on your mesh than what I've shown, however. As for the shadows like what you see in the image below, that happens when you have two or more faces connected by an edge (or edges) and the faces are facing in different directions. The game doesn't know how to light those faces. The answer is to split the edges into two edges. Select the edge and mark it sharp and use the edge split modifier. Don't remove doubles afterward or Blender will merge the edges right back together again. The biggest problem with the shadows I think is that you need to make a new bump map. Here's an image showing the UV islands with the bump map. You can see that the map does not line up with the UV pieces. Fix the bump map; problem solved. Check back if you need more help.
|
|
|
Post by cookiedough8910 on May 9, 2021 3:18:14 GMT -5
Thank you soo much😀 Quick question, how to you fix the bump map?
|
|
|
Post by menaceman44 on May 9, 2021 12:32:21 GMT -5
You will need to either import a blank one or create a new one. There should be tutorials for both here on the forum in the tutorial section.
|
|
|
Post by Fwecka (Lolabellesims) on May 9, 2021 17:26:26 GMT -5
Thank you soo much😀 Quick question, how to you fix the bump map? This tutorial is a good one. It utilizes NormalMap Online. Use a greyscale version of your diffuse image, upload the greyscale image to NormalMap Online and play around with the settings. Download the image, then open the downloaded image in Photoshop, add an alpha channel, and copy the red channel and paste it into the alpha channel, then copy the green channel and paste it to the red and blue channels. Save as DDS using Interpolated Alpha since the bump map has an alpha channel and the alpha needs to be preserved. Boom. Done. If you want a blank bump map open the old bump map in Photoshop, select the grey color that you see throughout most of the image and paint or bucket fill the entire image with that color. Since I always make a custom bump map, I can't remember exactly, but I think you can just delete the alpha channel. Then save as DDS, no alpha. If you're supposed to keep the alpha (again, I can't remember since I don't ever use a blank alpha) then make sure the alpha is filled with one solid grey color and save as DDS Interpolated Alpha. Can anyone confirm if you can delete the alpha if the alpha is blanked out? Been doing some reading. It appears you do have to have an alpha channel even if your bump map is blank. If I were you, I'd make a custom bump map. It's a sort of optical illusion texture that can give the illusion of details that aren't actually part of the mesh itself--it keeps the polycount low if you don't have small details modeled into the mesh--and it makes details that are part of the mesh more pronounced. This would be very useful if you decided to make your bunkbed look as if it were made of grainy stone or of unpainted hardwood. Bump maps really can improve the look of a mesh, and a bump map is not hard to make, either. Edit: OM has a blank bump map and blank specular for objects in this tutorial. You just need to resize the bump map to match the size of the original bump map.
|
|
|
Post by cookiedough8910 on May 10, 2021 1:23:03 GMT -5
Thank you soo much. I did a bit of playing around and realised the whole problem was because I’d imported the wrong shadow mesh (silly me) I imported the right one and it works just when I zooom out the problem reoccurs and I have no idea what it might be.
|
|
|
Post by Fwecka (Lolabellesims) on May 10, 2021 3:16:55 GMT -5
Edit: Never mind about the bed shadow showing. It was the shadow mesh like you said. Sorry. Long day. Anyway, I think it would be a good idea to share a screenshot of what your issue is. Is this what you're seeing?I'm a little confused about what's the trouble, to be honest. It looks like you cloned the decor books and there are just the diffuse, specular, and bump map for that. In the file you shared, the old bump map for the books is still there. I'm not sure where this bed outline is coming from and I don't know for sure what your issue is in the first place. Can you share a screenshot, please?
|
|
|
Post by Sérinion on May 10, 2021 4:48:29 GMT -5
Is this what you're seeing? I'm a little confused about what's the trouble, to be honest. It looks like you cloned the decor books and there are just the diffuse, specular, and bump map for that. In the file you shared, the old bump map for the books is still there. I'm not sure where this bed outline is coming from and I don't know for sure what your issue is in the first place. Can you share a screenshot, please? You must also change and import your Shadow LOD in your package.
|
|
|
Post by menaceman44 on May 10, 2021 6:47:39 GMT -5
You don't have to resize the bump/normal texture if it is blank. It could be 4x4 pixels and it would still work.
|
|
|
Post by cookiedough8910 on May 10, 2021 6:51:25 GMT -5
I’ve sorted out all thanks for the help guys
|
|
|
Post by Fwecka (Lolabellesims) on May 10, 2021 15:55:37 GMT -5
Good news! Tell us what the issue was, please. It's a good way to pay it forward and might help others.
For the record, if your bunk bed frame was meant to be a static item that sits on the floor and does nothing but look pretty, don't clone the decor books for that. I ran some experiments and found I could not place the bed frame on the floor without using the moveobjects cheat. On the upside, I could place the bed frame on a table, though why you'd want to do that I can't imagine. Better use a sculpture or something that's bigger and meant to sit on the floor.
|
|
|
Post by cookiedough8910 on May 11, 2021 10:30:00 GMT -5
The reason I used the books was any other object intersected the beddings routing because ea bunk beds have issues😀 and all I did to solve the problem was to import the correct shadows and fix the bump maps.
|
|