Jump to content

Transparent texture making other textures disappear when seen through it


jtucker40

Recommended Posts

I am currently working on a weapon mod that utilizes a scope that is actually physically on the weapon instead of using a scope reticle mesh (similar to reflex sight/red dot mods but more zoomed in) but I am encountering some problems with the transparencies.

 

http://i.imgur.com/If3Vk5R.jpg

 

http://i.imgur.com/lRKON7Z.jpg

 

http://i.imgur.com/hQICU2y.jpg

 

As you can see in the pictures above, the lenses (which I have made semi-transparent in addition to applying environment maps to simulate glass) cause other textures to appear invisible when viewed through them, however when I use tfc to position the camera inside the lens I am able to see the full inside texture. I'm not really sure how to explain it in words, so hopefully the pictures can accurately display the problem. Basically, what I want is for the black tube in the second picture to always be visible, however it disappears when viewed through the lens. In addition to that, when looking through the front lens, all textures on the inside of the scope disappear however that is only my second priority at the moment. I tried googling it but wasn't sure what exactly to search for, hopefully some of you 3d modellers here might be able to help me.

 

EDIT: I should note that when I make the lenses fully transparent (full black in the diffuse alpha channel) I am able to see all the things that are disappearing.

Edited by jtucker40
Link to comment
Share on other sites

I am trying to remember the setting I used because I encountered this issue a while back when I made double windowed vault hall pieces (window on each side of the hall). I don't think the vanilla setting worked and I had to play with it but I finally got it to not cut through meshes etc.

 

http://i231.photobucket.com/albums/ee197/Daemongrin/vrsmhalldblwin.jpg

Link to comment
Share on other sites

Hmm tried those settings, now the tube is visible however the lenses on both ends can't be seen.

 

Have to go to sleep for now, will report back in the morning.

 

EDIT: Can't be seen as in now they are fully transparent

Edited by jtucker40
Link to comment
Share on other sites

Yeah those were the vanilla settings for somethings had a feeling it would be to much but worth seeing how it worked. Try 4845 with no threshold. Also are you using an ENB? I recently made a makeshift rebreather using an empty bottle and the mask of rebreather and under water it would be invisible even the vanilla rebreather disappaered and it was because of the ENB transparency setting I believe.

Link to comment
Share on other sites

Have you the shader flag SF_Alpha Textures set in your Shader?

 

Several things can be attempted:

- Having the scope in two parts (lenses and tube)

- Adding a NiStencilProperty

- Having the Normals of your scope pointing inward. (if lenses and scope tube are separate)

- relying on Alpha in MaterialProperty instead of NiAlphaProperty (no shader flags or dds transparency needed)

Combination of those.

Edited by Guest
Link to comment
Share on other sites

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...