LilySurfaceScraper
LilySurfaceScraper copied to clipboard
Cycles node setup improvements
This branch tries to incorporate the changes I've proposed in #53.
- [x] Texture coordinates node
- [x] Nest textures in node group
- [x] Randomize rotation for tiling
- [x] Add the mapping node to the world node setup
- [ ] Add some kind of toggle or an operator that changes the mapping to box projection
- [ ] Improve Auto Align Nodes
I'll keep it as this for now, so we can have a discussion about adding texture rotation before I implement it. 😂
I am favorable to the texture rotation :) Maybe there's a way to append the node group from an extra resource blend file that'd be packaged with the add-on rather than building it writing (boring) code.
Also, the mapping node could be added to the World as well, especially to be able to turn it around quickly. Also, maybe add a way to turn grouping off, for people who just want a very simple setup and avoid "crazy magics" of node tree presets. ;)
Yeah I agree, mapping would be very useful for the world node. Not sure about making grouping optional. For most users this is fine and advanced users would tweak their materials anyways, so they'd probably don't mind tabbing into the group to change stuff there. I don't think it's worth it to add that complexity.
With an abstraction (like making a chainable link + add function) creating that node setup wouldn't be too bad, but I'd agree that appending that node group from a blend file is probably more future proof for complexer node setups. I'll look into it.
Type hinted Python is almost as verbose as Java 😂
Anyways, I'm working on the whole importing from a blend file on a local branch and it's quite umm interesting...
^^ you don't have to if it pisses you. Thanks for continuing your work on this :)
Haha it does kinda piss me as I can only reliably debug via asserts. The whole thing is the basis for later being able to maybe scrape models from 3DModelHaven, so I really want to get it done (plus it sharpens my python a bit 😂)
Just tested the whole lxml thing from Linux and it does work for me there too (after the patch). Loading node groups from the file seems to work too and the groups are not being duplicated. I'm now going to try to add those UI options and after that I think it's ready for merging.