Jump to content

Minecraft textures. how?


Soul Linker
 Share

Recommended Posts

Hi everyone.

Yep anothe one makin his own minecraft.

Want to ask u is there method make textures looks like minecraft.

Most problem is in leaves and their opacity...

Somthin like 

gl.texParameteri(gl.TEXTURE_2D, gl.TEXTURE_MAG_FILTER, gl.NEAREST);gl.texParameteri(gl.TEXTURE_2D, gl.TEXTURE_MIN_FILTER, gl.LINEAR_MIPMAP_LINEAR);

Looks like i need mess with RenderTargetTexture(size, options) 

options.samplingMode = BABYLON.Texture.TRILINEAR_SAMPLINGMODEoptions.generateMipMaps = true

post-9040-0-31662800-1401972029.png

Link to comment
Share on other sites

// Get the canvas element from our HTML belowvar canvas = document.getElementById("renderCanvas");// Load BABYLON 3D enginevar engine = new BABYLON.Engine(canvas, true);var scene = new BABYLON.Scene(engine);var camera = new BABYLON.ArcRotateCamera("Camera", 1, 0.8, 10, new BABYLON.Vector3(0, 0, 0), scene);var pl = new BABYLON.Mesh.CreatePlane("plane", 4, scene)var mat = new BABYLON.StandardMaterial("default", scene);var txtr = new BABYLON.Texture("textures/leaves.png", scene);txtr.forceSamplingMode(BABYLON.Texture.TRILINEAR_SAMPLINGMODE)txtr.hasAlpha = truemat.diffuseTexture = txtrpl.material = mat// Attach the camera to the scenescene.activeCamera.attachControl(canvas);// Once the scene is loaded, just register a render loop to render itengine.runRenderLoop(function () {scene.render();});

Still no

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