Jump to content

Newbie questions - skybox cords and transparent ground.


Kilombo
 Share

Recommended Posts

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

Link to comment
Share on other sites

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.
Link to comment
Share on other sites

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.  :D

Link to comment
Share on other sites

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.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
 Share

  • Recently Browsing   0 members

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