Giter Site home page Giter Site logo

Comments (7)

DearFox avatar DearFox commented on May 27, 2024

img
It seems this happens not only with gltf (

from f3d.

Meakk avatar Meakk commented on May 27, 2024

Can you try to press P in f3d?

from f3d.

DearFox avatar DearFox commented on May 27, 2024

Can you try to press P in f3d?

Seems better but still has some artifacts
img
And can I enable this by default, and for thumbnails?

from f3d.

mwestphal avatar mwestphal commented on May 27, 2024

can I enable this by default, and for thumbnails?

Sure, using the configuration file: https://f3d.app/doc/user/CONFIGURATION_FILE.html

In short, copy the config folders from

C:/Program Files/F3D/share/f3d/configs/

to

%APPDATA%\f3d\

And modify the config.d/10_global.json and thumbnail.d/10_global.json and add the following:

"translucency-support": true, before the first option, like this:

{
  "global":
  {
   "translucency-support": true,
    "axis": true,
    "tone-mapping": true,
    "grid": true,
    "progress": true,
    "anti-aliasing": true,
    "filename": true,
    "scalars": "", 
    "camera-direction": "-1,-0.5,-1",
    "hdri-ambient": true
  }
}

Any remaining issue are probably caused by issues on your data. If you think this is not the case, please let us know!

@Meakk should we turn this on after all ? Not the first user to get surprised by this.

from f3d.

mwestphal avatar mwestphal commented on May 27, 2024

input @Meakk ?

from f3d.

Meakk avatar Meakk commented on May 27, 2024

Depth peeling is a bit expensive and will cause a drop of fps. The issue is some gltf file exporter just flag material as BLEND instead of OPAQUE but that's the exporter fault.
However, if the materials are properly flagged as opaque, there won't be any fps drop so I think it's ok to enable depth peeling for gltf files (or even globally)

from f3d.

mwestphal avatar mwestphal commented on May 27, 2024

Indeed, I think that displaying, by default, a BLEND material without its opacity is a bug, so we should enable depth peeling globally, as long as it does not implies slow down for user not using transparent material.

Lets keep this issue open to do the change.

from f3d.

Related Issues (20)

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.