Git Product home page Git Product logo

Comments (9)

stremeor avatar stremeor commented on September 27, 2024 1

I have re-done my user config files, .vdb show as volume now.

from f3d.

mwestphal avatar mwestphal commented on September 27, 2024

Hey Steffen!

I'm happy to see that you are using F3D!

So I just checked with the 2.4.0 release on Linux and dropping armadillo.vdb and it seems to work out of the box:

a

Can you try with this file ?

Could you share your config by the way ? It looks like you changed a few options ?

from f3d.

mwestphal avatar mwestphal commented on September 27, 2024

Hey @stremeor , please provide more info about your issue if you can. All our testing seems to indicate that volume is indeed used with the default config.

from f3d.

stremeor avatar stremeor commented on September 27, 2024

I like f3d a lot, now that it also supports .vdb and .usd. Great additions!

Tried the armadillo, and it actually does show as "volume" in thumbnails - but not when I open it in f3d app. Strange! Then I removed my user config.json file, and suddenly it also works in the app. I did not change anything in the global config files. Not sure what causes the hiccup in my local config. See my config below. BTW, the public OpenVDB samples don't like the "inverse" option it seems.

{
   ".*": {
       "resolution": "1200,800",
       "bg-color": "0.7,0.7,0.7",
       "color": "0.5,0.1,0.1",
       "fxaa": true,
       "timer": true,
       "progress": true,
       "axis": true,
       "bar": true,
       "verbose": true,
       "roughness": 0.2,
       "grid": true,

       "camera-direction": "0.5,-0.3,-0.9"
   },
   ".*vt.": {
       "edges": true
   },
   ".*gl(tf|b)": {
       "raytracing": true,
       "denoise": true,
       "samples": 3
   },
   ".*mhd": {
       "volume": true
   },
   ".nhdr": {
    "volume": true
}
}

from f3d.

mwestphal avatar mwestphal commented on September 27, 2024

it actually does show as "volume" in thumbnails - but not when I open it in f3d app. Strange!

This is expected, the thumbnails have dedicated configuration files

Not sure what causes the hiccup in my local config. See my config below.

This looks like a pre-plugin/pre-vdb config file. Since it doesnt contain any configuration about .vdb, F3D resort to not setting anything at all

We improved A LOT the config file mechanism. I would suggest to start your config from scratch using the config in the package you downloaded as a start. It is now split in different files.

BTW, the public OpenVDB samples don't like the "inverse" option it seems.

It seems to work fine here:

./bin/f3d ~/data/tmp/armadillo.vdb --inverse=0

a

from f3d.

stremeor avatar stremeor commented on September 27, 2024

There seems to a difference between "levelset" and "fogvolume" type .vdb. The true volumetric .vdb work with "inverse off" like bunny.vdb vs. bunny_cloud.vdb. Would be cool if f3d could differentiate between the two variants.

Screenshot 2024-04-29 17 04 32

Screenshot 2024-04-29 17 04 43

With "inverse off" the bunny_cloud.vdb sample looks good.

Screenshot 2024-04-29 17 04 57

from f3d.

mwestphal avatar mwestphal commented on September 27, 2024

Indeed, this is a limitation of the current implementation and a way forward for this would be quite complex as F3D rely on filename and extension to determine which option to enable or not. VDB support also point clouds which F3D will (unsuccessfully) try to display as volumes. This is why we consider VDB support to be experimental.

One way to improve this is to first implement #1193 in order to be able to implement custom behavior for individual readers.

I suppose your issue with config file was resolved ? I could rework this issue to focus on what could be improved in the VDB support if thats ok with you.

from f3d.

stremeor avatar stremeor commented on September 27, 2024

Just a last comment, due to the great support of custom configs in f3d, it seems easily possible to add a pre/postfix to the vdb file name (like "xxx_levelset.vdb") and add a case for those names in the config file with special settings.

from f3d.

mwestphal avatar mwestphal commented on September 27, 2024

Absolutely, this is supported! I should have mentionned it.

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.