Giter VIP home page Giter VIP logo

Comments (5)

TimvanScherpenzeel avatar TimvanScherpenzeel commented on June 4, 2024

screen shot 2018-06-26 at 19 56 32

Throws this warning in Firefox, might be useful.

from texture-compressor.

TimvanScherpenzeel avatar TimvanScherpenzeel commented on June 4, 2024

It turns out I was not correctly setting the minFilter and magFilter to THREE.LinearFilter.

This is not correct I think it should be texture.magFilter = THREE.LinearFilter; and texture.minFilter = THREE.LinearMipMapLinearFilter;. Unfortunately this doesn't work.

from texture-compressor.

TimvanScherpenzeel avatar TimvanScherpenzeel commented on June 4, 2024

Active texture 0 for target 0x0de1 is 'incomplete', and will be rendered as RGBA(0,0,0,1), as per the GLES 2.0.24 $3.8.2: Because the minification filter requires mipmapping, the texture must be "mipmap complete"., that might be a clue. Perhaps 9 mipmaps is not enough (as it currently goes down to 2x2 instead of 1x1).

from texture-compressor.

TimvanScherpenzeel avatar TimvanScherpenzeel commented on June 4, 2024

After re-generating the complete mipchain down to 10 mipmaps (including the first level): (512x512, 256x256, 128x128, 64x64, 32x32, 16x16, 8x8, 4x4, 2x2, 1x1) it works! I'll try to add automatic detection of the imagesize and generate the corresponding mipchain as default.

from texture-compressor.

TimvanScherpenzeel avatar TimvanScherpenzeel commented on June 4, 2024

In order to avoid confusion about the levels of the mipchain they are now generated by default by checking the input image size and getting the length of the power of two's down to 1x1.

So in the end it has been solved! 💯

from texture-compressor.

Related Issues (16)

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.