We use cookies to ensure that we give you the best experience on our website. If you continue to use this site we will assume that you are happy with it.

Bitmapquality flat cam-perspective

Home Forums Graphics / 3ds Max Bitmapquality flat cam-perspective

Viewing 6 posts - 1 through 6 (of 6 total)
  • Author
    Posts
  • #4700
    3dmdlb
    Customer

    Hi,
    i mapped an technical drawing on a plane. In my WebGl-File, the more flat i go with my camera-perspective, the more blurred und less antialiased the lines apears. Is there any chance to keep the quality also in flat cam-perspectives?

    #4714

    Hi,

    This is used to be fixed by applying anisotropic filtering to textures, and is now possible only with code:

    
    obj.material.map.anisotropy = app.renderer.capabilities.getMaxAnisotropy();
    

    I’ve added the task of creating a GUI for this feature in our development plan.

    Chief 3D Verger | LinkedIn | Twitter

    #4746
    3dmdlb
    Customer

    Hi Yuri,
    thanks for your reply and solution.
    As someone without coding experience: Where i add that line? In the HTML- or the .js-File from my scene? Anything i need to consider like e.g. syntax, when i add the line?

    #4759
    #4770

    Code can be added to a project with the following steps:

    1. Register a function in your app .js file and put your code there, e.g.

    
    function prepareExternalInterface(app) {
        app.ExternalInterface.myJSFunction = function(objName) {
            app.scene.traverse(function(obj) {
                if (objName == obj.name) {
                    obj.material.map.anisotropy = app.renderer.capabilities.getMaxAnisotropy();
                    obj.material.map.needsUpdate = true;
                }
            });
         }
    }
    

    2. Call this function from Puzzles (see screenshot)

    I made a working example (it’s Blender-based but the code should work for Max too).

    Attachments:
    You must be logged in to view attached files.

    Chief 3D Verger | LinkedIn | Twitter

    #4800

    We’ve also updated the corresponding section in the Beginner’s Guide
    (scroll down to “Beyond Puzzles”) to make it a bit more descriptive.

    Chief 3D Verger | LinkedIn | Twitter

Viewing 6 posts - 1 through 6 (of 6 total)
  • You must be logged in to reply to this topic.