Code Monkey home page Code Monkey logo

Comments (16)

Draico01 avatar Draico01 commented on September 22, 2024 1

I see. I was wondering why there was no response and I didn't want push.

I have figured out some of the transparency issues. I made some car lights work but I don't know how to have a label on a glass container work.
In your old versions of the plugin when I put alpha to 0 and the color to black the export shows a transparent object with full reflection on it gltf viewer etc.... Now in your new plugin when I apply the same settings the object is completely gone.

Here is my file.

Thank you.
Breville_Glass.zip

from maya2gltf.

ziriax avatar ziriax commented on September 22, 2024

Could you try exporting one of the transparent scenes in this repository, and see if that works for you?

from maya2gltf.

Draico01 avatar Draico01 commented on September 22, 2024

Apologies I am not familiar with what you are asking. I am not a coder. I just use your plugin/addon to export to glTF/glb. I can up load my files if that helps?

from maya2gltf.

Draico01 avatar Draico01 commented on September 22, 2024

Apologies for that. I accidentally clicked closed. I can't attach the gltf file.

Breville_Tumbler_2_Diffuse
Breville_Tumbler_2_Rough

from maya2gltf.

ziriax avatar ziriax commented on September 22, 2024

Sorry, I forgot about this issue.

What happens if you load and expert the transparent scenes from this folder?

from maya2gltf.

Draico01 avatar Draico01 commented on September 22, 2024

Hi Ziriax
I have tried what you have requested and it looks like the transparent files work. See attached.
So what am I doing incorrectly?
The logo on the glass needs to be white. But from your examples. White is the alpha. See attached for my example.

Screen Shot 08-02-22 at 10 38 AM
Screen Shot 08-02-22 at 10 39 AM 001
Screen Shot 08-02-22 at 10 39 AM

Screen Shot 08-02-22 at 10 32 AM
Screen Shot 08-02-22 at 10 33 AM 001
Screen Shot 08-02-22 at 10 33 AM 002
Screen Shot 08-02-22 at 10 33 AM

from maya2gltf.

Draico01 avatar Draico01 commented on September 22, 2024

I had a closer look at the PNG file with the blue circle. I think I know what what to do but I would like to hear your info of it thanks.

from maya2gltf.

ziriax avatar ziriax commented on September 22, 2024

Hard to tell just looking at the output.

Can you share your Maya scene with me?

from maya2gltf.

Draico01 avatar Draico01 commented on September 22, 2024

Yes I can. I will clean it up for you as it has plenty other things.

from maya2gltf.

Draico01 avatar Draico01 commented on September 22, 2024

I am not sure how to share it with you but here is a wetransfer links.

https://we.tl/t-oG6fDJqXhw

from maya2gltf.

ziriax avatar ziriax commented on September 22, 2024

Sorry, I missed this issue, I was on vacation in august.

The link is expired, can you upload this again, if still needed?

from maya2gltf.

ziriax avatar ziriax commented on September 22, 2024

You can try to abuse the emissive texture I guess, so that the color of the text is added to the transparent bottle. So the texture containing the label should become an emissive texture. I am not sure if this will work, but I don't think anything is wrong with the exporter in this regard, the output looks correct at first sight.

from maya2gltf.

ziriax avatar ziriax commented on September 22, 2024

No that doesn't seem to work... I'm afraid that your mesh can't work without OIT (order independent transparency). This has nothing to do with Maya2glTF, but the render engine.

Best to ask in the general GLTF rendering forums or rendering engine specific forums for how to this with GLTF and the engine.

PS: I couldn't get it any better than this, using the Babylon viewer:

image

from maya2gltf.

Draico01 avatar Draico01 commented on September 22, 2024

Thank you for your help!!! Hmmm I need to see how the ""OIT"" works in our AR application... I am having problems getting the "glass" effect to work now. I am now working on a car model and trying to create glass effect for the windows etc from in Maya and it just doesn't work anymore. I am now working in Substance painter to export the GLB but it's still not 100%.... Would the dev behind the overall compiling of the AR project be able to apply a more robust glass information by using coding stating the IOR for the material? I am guessing they could.

Thanks for all you help. I might have maybe look into using Blender for transparency. Maybe it deals with it differently on export.

from maya2gltf.

ziriax avatar ziriax commented on September 22, 2024

See also

https://doc.babylonjs.com/features/featuresDeepDive/materials/advanced/transparent_rendering

https://doc.babylonjs.com/features/featuresDeepDive/materials/advanced/transparent_rendering#order-independent-transparency

from maya2gltf.

Draico01 avatar Draico01 commented on September 22, 2024

My apologies for such a late reply. Thank you. I will have a look at the links provide. I really appreciate your help.

from maya2gltf.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.