Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. QML and Qt Quick
  4. Nearest-neighbors textures filtration in QtQuick3D

Nearest-neighbors textures filtration in QtQuick3D

Scheduled Pinned Locked Moved Unsolved QML and Qt Quick
1 Posts 1 Posters 120 Views
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • H Offline
    H Offline
    HoShiMin
    wrote on last edited by
    #1

    Hi all!
    Just look at this sample:

    View3D {
        // It doesn't works!
        renderMode: View3D.Offscreen
        smooth: false
    
        PerspectiveCamera {
            position: Qt.vector3d(0, 0, -600)
        }
    
        DirectionalLight {
            ambientColor: "#ffffff"
            brightness: 0.0
        }
    
        Model {
            source: "#Rectangle"
            materials: [
                DefaultMaterial {
                   diffuseMap: Texture { source: "qrc:/images/img.png" }
                }
            ]
        }
    }
    

    My texture is still blurry if it is a low-res image (so, 'smooth' field doesn't work at all).
    So, how can I use a nearest-neighbors filtration?

    1 Reply Last reply
    0

    • Login

    • Login or register to search.
    • First post
      Last post
    0
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Search
    • Get Qt Extensions
    • Unsolved