Giter VIP home page Giter VIP logo

Comments (3)

shama avatar shama commented on September 21, 2024

Take a look at mrdoob/three.js#751 Since multimaterials are not available anymore that util will create multiple meshes sitting on each other to fake it. So I bet just doing a flat texture with a 1px outline would be a lot faster.

from voxel-texture.

max-mapper avatar max-mapper commented on September 21, 2024

cool! using flat textures for now and it works pretty well:
blue
red

except it looks like the mipmaps are still messed up:

Screen Shot 2013-04-26 at 8 27 47 PM

from voxel-texture.

shama avatar shama commented on September 21, 2024

I tried a bunch of stuff to get a wireframe mesh overlaid on a surface mesh to no avail. Kept getting WebLGL errors. It would be a neat feature to have later though.

Re: the mipmaps, with a red texture next to a blue texture, eventually when the atlas is scaled down for a certain mipmap level the red and blue will have to merge. Giving you the above reddish blue in the distance. Since most of your displayed textures are blue, at that level the mipmap should really just be blue. You can manually set the mipmaps to achieve this, take a look at this example: https://github.com/mrdoob/three.js/blob/master/examples/webgl_materials_texture_manualmipmap.html#L125

FWIW, I'm planning on writing a mipmap module that will handle this in the future.

from voxel-texture.

Related Issues (15)

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.