forked from blender/blender
Create parsing system that converts supported nodes and ignores unsupported #2
No reviewers
Labels
No Label
No Milestone
No Assignees
3 Participants
Notifications
Due Date
No due date set.
Dependencies
No dependencies set.
Reference: DagerD/blender#2
Loading…
Reference in New Issue
Block a user
No description provided.
Delete Branch "Vasyl-Pidhirskyi/blender:BLEN-500"
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?
Added
get_mx_type method
to get relevant MaterialX socket type.Added
get_input_link_node
to convert the next linked node.Improved
export_to_materialx
method so we can see MaterialX result with Storm delegate.Initial implementation based on #1 for convenient review and debugging.
Added export to MaterialX file, currently hardcoded and needs to be removed.
Added hardcoded path to Image (needs to be removed) as far as this part is ignored.
@ -33,1 +47,4 @@
}
MaterialX::writeToXmlFile(
doc,
MaterialX::FilePath("c:/Users/Vasyl_Pidhirskyi/Work/AMD/blender-git/tmp/material.mtlx"));
this needs to be removed
@ -0,0 +26,4 @@
const NodeTexImage *tex = static_cast<NodeTexImage *>(node->storage);
Scene *scene = DEG_get_input_scene(depsgraph);
Main *bmain = DEG_get_bmain(depsgraph);
std::string image_path = "C:/Users/Vasyl_Pidhirskyi/Desktop/Untitled.png";
this needs to be removed
Finished this task, implemented node export system: created
class NodeParser
andclass NodeItem
WIP: Create parsing system that converts supported nodes and ignores unsupportedto Create parsing system that converts supported nodes and ignores unsupportedTested, works fine.