chicagobob123 Posted June 17, 2016 Share Posted June 17, 2016 I have something that three js uses called an alpha map but I can not find an equivalent in the babylon world. Its a black and while alpha channel map that is used with a UV map. Is there such a thing? I know there are bump maps. I saw nothing like it. Thanks, Bob Quote Link to comment Share on other sites More sharing options...
Temechon Posted June 17, 2016 Share Posted June 17, 2016 You can try ambientTexture or opacityTexture, depending on what you are looking for. Quote Link to comment Share on other sites More sharing options...
chicagobob123 Posted June 17, 2016 Author Share Posted June 17, 2016 So far this did not working for me. Tried it and ended up with crazy results. But that could be how I am using it. Is there anything that shows detailed information for doing this with UV maps? Quote Link to comment Share on other sites More sharing options...
Temechon Posted June 17, 2016 Share Posted June 17, 2016 Can you share a playground with what is not working for you, and what are you expecting to have ? Here is an example on how to use textures: http://www.babylonjs-playground.com/#1MFDDU#1 Quote Link to comment Share on other sites More sharing options...
chicagobob123 Posted June 17, 2016 Author Share Posted June 17, 2016 I only have so much time so I gave up on it. I just combined the UV image with the alpha image via photoshop and used that. It was for my ThreeJs importer I have been working on. Which I have pushed as far as I am going to. It works pretty easy although there is some manual things to do to get it to work. Place the name of the model as in import. <script src="models/StraddleCarrier/StraddleCarrier_StructureB.js"></script> Modify the model making by adding Var name of model at the start of the file. Then you load it. I tested it for UV mapped models. Thats about it. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.