Kilombo Posted April 15, 2014 Share Posted April 15, 2014 Hello, I'm trying to implement a transparent ground or plane. I need the ground coordinates (has references "on click/tap") but I don't want it to be visible.Another question is related to the skybox coordinates. I'm not beeing able to find what the _nx, _ny, etc.. represents in terms of "right", "top", "bottom", etc.. images.Btw, how do you set the skybox to be at "infinite distance" ? Cause no one is supposed to get near to the skybox limit. Thanks in advance. Kilombo Quote Link to comment Share on other sites More sharing options...
GameMonetize Posted April 15, 2014 Share Posted April 15, 2014 For infiniteDistance, justuse mesh.infiniteDistance = truenx means negative x (left), etc... Could you elaborate more your first question? Quote Link to comment Share on other sites More sharing options...
Kilombo Posted April 15, 2014 Author Share Posted April 15, 2014 Thanks. The infiniteDistance worked just fine About the ground. Has you see in my code, i've got a "ground". But i need it to be transparent instead of textured or with any kind of color. I already tried to remove the texture. Change the createGround for createPlane, but it didn't worked out.I need the ground reference. You see, when i click in some place on it, it will run a "scene.pick" that returns the coordinates. But it's only working with a ground or plane. //Criação de chão de teste. var chaoTeste = BABYLON.Mesh.CreateGround("chaoteste", 500, 500, 1, scene, false); var chaoTesteMaterial = new BABYLON.StandardMaterial("chaoteste", scene); chaoTesteMaterial.diffuseTexture = new BABYLON.Texture("Textures/ground.jpg", scene); chaoTesteMaterial.diffuseTexture.uScale = 60; chaoTesteMaterial.diffuseTexture.vScale = 60; chaoTeste.position.y = -2.05; chaoTeste.material = chaoTesteMaterial; Thanks in advance. Quote Link to comment Share on other sites More sharing options...
GameMonetize Posted April 15, 2014 Share Posted April 15, 2014 can you try ground.visible = false ? Kilombo 1 Quote Link to comment Share on other sites More sharing options...
Kilombo Posted April 15, 2014 Author Share Posted April 15, 2014 Thanks, it worked. Actually it was "invisibility" instead of invisible. That was really helpfull. Quote Link to comment Share on other sites More sharing options...
Wingnut Posted April 15, 2014 Share Posted April 15, 2014 hehe. I think both of these guys have been hitting the sauce. But who am I to make such judgements, eh? MY version of babylon.js uses... .visibility = <a float number in the range of 0 to 1 inclusive> Maybe I am hallucinating this entire topic thread. Quote Link to comment Share on other sites More sharing options...
GameMonetize Posted April 15, 2014 Share Posted April 15, 2014 it is mesh.isVisible btw:) Quote Link to comment Share on other sites More sharing options...
Wingnut Posted April 15, 2014 Share Posted April 15, 2014 Ahh, yes, now that one DOES work with a true or false. Good deal. Good forum fun, and at half the price of fun on other forums. (thx deltakosh!) 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.