Home Technical Talk

Partial transparent geo in Maya????

Some of my geo is turning transparent as you change the camera angle exposing the underlying geo/textures? Im really stumped.. Any suggestions? Im using Maya 2011 and its happening in Viewport 2.0 and HQ Rendering.

Here are a few screen shots...

MayaProb3.jpg
MayaProb2.jpg
MayaProb1.jpg

Replies

  • Warheart
    Options
    Offline / Send Message
    Warheart polycounter lvl 17
    That looks quite odd.. I haven't used viewport 2 but you can get kind of similar transparency issues in the normal viewport if the alpha of the texture is accidentally connected to transparency in the material (maya sometimes does this by default if you load a texture with alpha). So if that connection exists and you don't need it then try breaking it.
  • nullfed
    Options
    Offline / Send Message
    nullfed polycounter lvl 9
    Try selecting your object, go to Color>Color Set Editor and delete any color sets assigned. If you need vertex colour in your scene, make sure the alpha values are 1
  • SwampCat84
    Options
    Offline / Send Message
    Well, I tried saving my textures out without an alpha and that didnt seem to work... I went to color set editor and there are no color sets assigned either... =/ still no luck...
  • throttlekitty
    Options
    Offline / Send Message
    Are there any connections to the transparency of the material?
  • SwampCat84
    Options
    Offline / Send Message
    Yea, the funny thing is that the ones that are giving me the trouble are the ones that have transparency maps attached to them... but as you move the camera around and view the scene from different angles, the geo appears and disappears depending on what angle you are looking at it... ?? Im really confused.
  • CheeseOnToast
    Options
    Offline / Send Message
    CheeseOnToast greentooth
    Maya isn't very good at real-time transparency sorting. If you were to render the scene from an angle where the geometry seems to disappear, it would be fine in the render. It's actually pretty much the same as many game engines. Most games tend to use "alpha test" transparency (a pixel is either fully opaque or fully transparent) when sorting will be an issue. Good examples are tree foliage and hair. Alpha test sorts reliably and is cheaper to render than semi-tranparent geometry. Unfortunately you can't can't emulate it in standard Maya as far as I know. You might be able to use a CGFX shader to do it though.
  • 2cat
    Options
    Offline / Send Message
    2cat polycounter lvl 5
    For me it happens when you use a PNG as a diffuse. At times Maya will attach transparency to the material making it turn out really weird. Removing the node in the hypershade fixes it for me.

    Why it shows it differently in different angles, I don't know. But when I see that I know Maya attached a transparency node again.
  • throttlekitty
    Options
    Offline / Send Message
    Pretty much what CheeseOnToast said. Also you can enable/disable poly/object transparency sorting in the modeling panel. It's iffy as to whether or not it works, for me it usually does the sorting backwards, which isn't really helpful.

    Unless you need it, break the transparency connection in the material. It will render fine, and won't affect anything as far as exporters go in the end.
  • SwampCat84
    Options
    Offline / Send Message
    Yea, unfortunately Im not rendering anything out... And since it seems to be getting worse the more textures I add, makes me think that its an issue with Maya being able to handle the whole scene while in Viewport... Idk... Thanks for the help though.. :)
  • Barbarian
    Options
    Offline / Send Message
    Barbarian polycounter lvl 12
    There is a weird bug in Maya sometimes that causes this. Sometimes some faces become transparent. Try adding a new material Lambert and see if that makes the problem go away and then reassign the original shader. I've encountered a similar problem twice during the last month and only applying a new shader fixed it. Your problem may be different, however.
  • SwampCat84
    Options
    Offline / Send Message
    Yea, it doesnt do it if it has a lambert on it... Or if the geo behind it has a lambert on it... Its just such an odd issue...
  • jtownsend1190
    Options
    Offline / Send Message
    So first off sorry for reviving the dead but this forum question is the on the first page of Google when trying to look something related up. This is still a current issue but have found a resolution for those that stumble to this page why this happens I am not fully clear on. You will get partially transparent meshes when you on purpose or accidentally delete the base material. To fix this simply add a new material to your mesh, rename it (good practice) I use something like base out base material, then add again another new material and this one will be the one you add a texture to. If all is done right you should see the transparency is now gone. Hope this helps. Cheers.
Sign In or Register to comment.