Deleted31005User Posted May 9, 2014 Posted May 9, 2014 (edited) This is regarding some objects that I use from modders resources, these particular objects have a bad habit of loosing their colors or sometimes parts of the object fade in and out of view, here is an example: http://static-3.nexusmods.com/15/images/110/31005-1399623702.jpg This is how the colors should look like, but when you lower the camera down a bit this happens: http://static-4.nexusmods.com/15/images/110/31005-1399623779.jpg Basically these flask objects consists of 3 meshes, the top cork, the actual glass and then this colored liquid on the inside.Can anyone please explain to me why these errors happen when I look at the object at a certain angle and how I can fix this.I have some experience with nifskope and max3ds btw. Edited May 9, 2014 by Guest
Matth85 Posted May 9, 2014 Posted May 9, 2014 I'm going to guess it is because of the strong transparancy. Try opening the .nif file, go under the NiTriShape, then under BSLightningShaderProperty finally click on NiAlphaProperty. Now check the Block Details. Look for Treshold. The value of it should be between 0-255. If it is anything other than 128, try changing it to 128 and see if that helps. Other problems I can think off, is that the inner part also got a transparancy. That really doesn't work. If it does, delete the nIAlphaProperty from it.
Deleted31005User Posted May 9, 2014 Author Posted May 9, 2014 NiAlphaProperty threshold was set on 200, changing to 128 doesn't help.The other meshes had nIAlphaProperties but deleting those doesn't help either.
Matth85 Posted May 9, 2014 Posted May 9, 2014 hm.... okay, okay. I can see a few problems as follow-ups, and a few solutions.1) The inner mesh is not inverted. So no matter what you do, it will have the transparancy of the outer one. The normals woulld need to be flipped. That way the transparancy would only work on the outer glass, and the inner glass would be a solid color. 2) Set the threshold to 0, then check. If nothing works, set it to 255 and check. If that doesn't work, the alpha map is generally too strong. You'd have to edit the alpha channel, within the difuse map. You woduln't happen to have the .nif/.dds handy, or link me the download link to it? That way I could check it out myself.Baically, the game is rendering the inner part as transparant, or "see-through". This means if you look at it straight on, it got color, but at an angle, you see more of the background. The exact problem I am not sure, but it seem to be regarding the alpha channel. Especialy since the object is that see-through.
Deleted31005User Posted May 9, 2014 Author Posted May 9, 2014 (edited) Well if I remove the other NiAlphaProperties and put the threshold of the outer glass mesh on 255 I get this result:granted the red color doesn't disappear anymore, but its not a good sight either.http://static-1.nexusmods.com/15/images/110/31005-1399634280.jpg Ive been trying lots of other stuff and the only thing that seems to work is changing the settings of the inner "liquid" mesh to the following:-BSlightningshaderproperty -> change alpha from "0.7609" to "1.0".Now the color doesn't seem to fade away at different angles though the object looks a tab brighter in color:http://static-2.nexusmods.com/15/images/110/31005-1399635245.jpg Here is the nif and all the dds files, they come from a large modders resource by Runspect.https://www.dropbox.com/s/6uy19hxodsa346w/flask_red.7z Edited May 9, 2014 by Guest
Matth85 Posted May 9, 2014 Posted May 9, 2014 Ah.. I see, I see.Okay, the alpha channel is pure white. That really doesn't work out too well. Rather, it should be a very light grey. The inner one should not have any NiAlphapropertyThe treshold of the outer glass should be around 128ish. 255 means it's 100% transparant, and 0 means it will not use the alpha channel at all. 128 is more neutral in that regard, as it's 50% grey. Though if you have found a solution for it, it's all good. Since, well, there is a lot of things that could be fixed in this mesh/texture, but that's more for optimization sake.
Deleted31005User Posted May 9, 2014 Author Posted May 9, 2014 Yes, thanks for the assistance, much appreciated!
Recommended Posts