AnOutdatedMind Posted February 14, 2021 Share Posted February 14, 2021 Hello all. I've stumbled upon a weird issue, the glass in a mesh I modified inverts colours. The custom mesh is basically HitWindowGlass01.nif with repositioned vertexes, so that it can nicely fit in any of the "WallPlugC"-s. I can't find any differences between the original and the modified mesh that would cause this issue. The problematic mesh can be found here. Here are some images picturing the problem in the creation kit. This one has the bright lighting enabled: And this one has the bright lighting disabled: Another thing I've noticed, is that the glass of the modified mesh isn't transparent in nifskope, unlike the original. Link to comment Share on other sites More sharing options...
Indarello Posted February 20, 2021 Share Posted February 20, 2021 Mesh have alphaproperty in nifskope?I think problem in materal or alpha property flags if it exists in nif Link to comment Share on other sites More sharing options...
AnOutdatedMind Posted February 21, 2021 Author Share Posted February 21, 2021 Yes, it has a NiAlphaProperty node attached to the BSTriShape. I copied this node over from HitWindowGlass01.nif, so theoretically everything should be in order. Link to comment Share on other sites More sharing options...
Oynlen Posted February 23, 2021 Share Posted February 23, 2021 thats really weird.. Something I notice while looking, the HitWindowGlass01fogged.nif has all the exact same properties as the clear glass one and uses same material... yet it is not transparent. All other nodes in the mesh look the same too. That's mysterious. Link to comment Share on other sites More sharing options...
AnOutdatedMind Posted February 24, 2021 Author Share Posted February 24, 2021 Weird indeed, I guess that means NifSkope doesn't tell the whole story then. When I have time later today I'll see whether or not Outfit Studio is capable of showing some insight. Link to comment Share on other sites More sharing options...
thousande Posted February 24, 2021 Share Posted February 24, 2021 I think part of the transparency here is done with mesh vertex colors (see the use of effectShader flags)Assuming you have converted the nif to obj/fbx, imported to one or more 3d editing applications, modified/scaled the mesh and exported it again etc. I _think MAX w/official plugin preserves the vertex colors properly. From import to export. Also, try use .fbx (instead of obj) as the transport format if you haven't already.Vertex color is usually better supported and implemented in that format. Link to comment Share on other sites More sharing options...
ToastTastic Posted March 1, 2021 Share Posted March 1, 2021 (edited) Oops, wrong thread. Edited March 1, 2021 by ToastTastic Link to comment Share on other sites More sharing options...
AnOutdatedMind Posted March 1, 2021 Author Share Posted March 1, 2021 It's fixed!Disregard my previous message, NifSkope does indeed tell the whole story. The transparency is set per vertex in the drop-down vertex menu under the BSTriShape node. The alpha channel of each vertex's vertex color was set to 1 instead of a fraction. This controls the transparency.Thanks to everyone for pointing me in the right direction! Link to comment Share on other sites More sharing options...
Recommended Posts