blitz-research/monkey2

PbrMaterial.Load could allow suffixes

Opened this issue · 3 comments

Hi,

While I can certainly work around this issue, I feel like allowing PbrMaterial.Load to require specific file names (color.png, normal.png, etc.) restricts how I want to organize and import things, specially when I'm dealing with the world outside Monkey2 (i.e. 3d apps and their file paths).

Instead, it would be nice if it just checked for how the name ends (cube_color.png, cube.normal.png, etc.), so that I can write the specific asset name in front of the required strings.

Thanks!

No problem, I think the json file idea for pbr materials works nicely.

The reason I asked for a suffix based scheme is that it would actually stay compatible with the current scheme, i.e: if you're looking for a file name that ends with "color", and the name is simply "color", you'd find it. But it would also find a file named "test_color", etc.

Opportunity to close this issue.