Add preset material, pull more variables into the template #5
Loading…
Add table
Reference in a new issue
No description provided.
Delete branch "improved-material-support-1"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
The BitsquidPBR.blend file includes a preset material which is set up to mimic the "core/stingray_renderer/shader_import/standard" shader graph. This single material is loaded into the current project through Blenders "Append..." API when a file is loaded (or a new one created).
It also pulls the basic values into the material template. The map textures can be added later.
There is also a small fix for the
MATERIAL_OT_bitsquid_export
, because it didn't seem to work on my system (Blender 2.92.0).Current issues with this:
I think both issues can be fixed by moving this call into
register
and adding a respectiveload_post.remove
tounregister
.This only works on Windows, due to hardcoded path separators.
Please use
os.path.join
orbpy.path.native_pathsep
to create paths with correct native separators.Please use
self.report
here.print
s don't show up in the UI.As mentioned on Discord, it is possible to replicate the
if
nodes through math nodes: testing.blend.The big difference is the fact that the input and output data types in Bitsquid are dynamic, whereas in Blender, we need separate implementations for each data type. The
.blend
above includes implementations forfactor
andcolor
:Color
Factor
changed this line in version 2 of the diff
changed this line in version 2 of the diff
added 1 commit
3f0c3f53
- Apply 2 suggestion(s) to 2 file(s)Compare with previous version
Yep, that worked!
changed this line in version 3 of the diff
added 6 commits
c15cb053
- 1 commit from branchlschwiderski:master
2a39e636
- And and remove post_load handler in register and unregisterf8f2a955
- Merge branch 'improved-material-support-1' of...d2fc5c27
- use real logic nodes in material shader graphe8bb82d2
- move blend file into a folder and export more variablesfafcc999
- Merge branch 'master' into improved-material-support-1Compare with previous version
Thanks for the review! Resolved all the issues and updated the blend file
resolved all threads
Looks good to me, great work! 💯
I did notice that the
.blend
file uses a custom value for the material export path that - technically - contains personal info. Since that value is tied to the material that's going to be imported into other people's files, it should be your call to merge as-is or change it.added 1 commit
47c44f6a
- reset material export path to defaultCompare with previous version
Good spot. Not a big deal but I reset it back to
//
anyway 👍mentioned in commit
e9c289cb7f