vizoogmbh / u3m

Unified 3D Material (U3M)
http://www.u3m.info
BSD 3-Clause "New" or "Revised" License
40 stars 20 forks source link

Add scaling per texture for U3M 1.1 #10

Closed vizoomartin closed 4 years ago

vizoomartin commented 5 years ago

The suggestion came up to add a scaling factor per texture, so that for example artworks/prints can be scaled independently of the "base" material.

Scaling currently is not possible in the u3m format, unless we artificially increase/decrease the physical size of width & height, which would corrupt the "original" information.

So for the release of U3M schema 1.1 (which is not scheduled yet, probably later in 2019), we could add:

"front":{
    "global_scale":{
        "u":10.0 //in centimeters
        "v":10.0 //in centimeters
    ....
ReinhardOnVizoo3d commented 5 years ago

the latter (global_scale) makes no sense in my view, as it's based on the individual workflow and has nothing to do with the material itself. It could be added in custom by anybody. also for u&v factor I am not sure. We have the physical size on a per texture basis already and a scale factor would just alter what could be altered directly by applying the correct value. The "print" thing is btw an interesting point, because it's currently not supported at all when I get it right.

malkosh commented 5 years ago

My 2 cents as we have specifically these same requirements

-We typically only need an independent scale controller for the print on top of the full materials. In some cases it replaces existing color maps and in others adds on top. IN fact in reality, it should be another layer all together depending on the print execution. custom is likely the way to go, but also keep in mind later on, layered materials will need this.

-The UV scale is also something we use, we base our real time engine on the assumption that UV 0-1 space is actually 50cm. BUT I also agree that's software dependent. We build custom rigs inside of the MODO presets and expose those for users to define that 0-1 scale.