theoldben / blendernormalgroups Goto Github PK
View Code? Open in Web Editor NEWReplaces Normal Map Nodes in Blender to improve EEVEE Viewport Performance
Replaces Normal Map Nodes in Blender to improve EEVEE Viewport Performance
IndexError: bpy_prop_collection[index]: index 2 out of range, size 2
Error: Python: Traceback (most recent call last):
File "C:\Users\aknit\AppData\Roaming\Blender Foundation\Blender\4.1\scripts\addons\normal_map_to_group.py", line 128, in execute
set_custom(getattr(mat.node_tree, 'nodes', []))
File "C:\Users\aknit\AppData\Roaming\Blender Foundation\Blender\4.1\scripts\addons\normal_map_to_group.py", line 112, in set_custom
uvNode.id_data.links.new(uvNode.outputs['UV'], new.inputs[2])
~~~~~~~~~~^^^
IndexError: bpy_prop_collection[index]: index 2 out of range, size 2
I just wanted to let you know I haven't done anything yet with the code...but right now this is what my add on description page looks like
https://toapyandfriends.gumroad.com/l/super-solid-mode
... I totally shout you out halfway down the page....I tell everybody about your add on this page... I'm totally advertising you to everybody I meet too... I made tutorials about you too on my YouTube channel.... If you want to try out my add on use this code at check out to get it for
free
toapy-and-friends-free-codes
I've tried installing the addon on multiple different installs of Blender, the latest being a self-contained 3.0.1 install that I've tried on 2 different computers and though I get the install successful console message, I never see the custom/normal buttons on the let sidebar of the shader window under links cut.
Here is a copy of the 3.0.1 self-contained version I ran the last test with.
https://we.tl/t-OagqClZgNJ
One is "extreme PBR" it's A PBR material pack kinda thing for blender it's the biggest 1 they have these very specialized node groups called Nexus nodes ...I wondered if they could use your optimized normal map code in their code as an addition to the group nodes set up they have... And And then the biggest PBR material addon for blender.. Would be optimized with your code
the guy that wrote extreme PBR is making a new super secret add on ...in it he is making a list of top blender addons in a panel and is add on preferences
You can start selling this for 10 bucks a pop on blender market and maybe I can convince this guy to add you to that list of top blender addons... Then this would really advertise this code and get this out to the millions of blender users because this is vital information they should all have You would be a hero for how much performance you've given to blender.... And if you do put this add on up for sale like I suggest you can start making some money...
Also if you don't even care about the fame or anything if we could just use your code you know I'll be throwing recognition out all over the place on my tutorials... And commercials I'm gonna make I'm coming up to a lot of genius ideas
I was so impressed by your add-on I got real time animation in blender using a DAZ Studio Genesis 8 character I made a tutorial video if would help... I think you should put a lot of effort into PROMOTING THIS ADD-ON .... because real time animation IN Blender is a big deal ....especially with a high Poly character like a DAZ Genesis 8... I got this animation speed by removing the hair but you probably have to do that in all cases anyways... but I also got the same animation speed, 24 FPS although I didn't show it in my tutorial video, with the viewport samples in Evee set to 256 and also with a full lighting setup by EVEE production suite... I'm gonna promote this to askNK on your behalf so they advertise your add-on and also other channels that I think OF...
If I try to change normal maps to custom normal maps, I get this error messages.
Error: Python: Traceback (most recent call last):
File "C:\Users\xxxx\AppData\Roaming\Blender Foundation\Blender\3.2\scripts\addons\normal_map_to_group.py", line 106, in execute
set_custom(getattr(mat.node_tree, 'nodes', []))
File "C:\Users\xxxx\AppData\Roaming\Blender Foundation\Blender\3.2\scripts\addons\normal_map_to_group.py", line 84, in set_custom
group = get_custom()
File "C:\Users\xxxx\AppData\Roaming\Blender Foundation\Blender\3.2\scripts\addons\normal_map_to_group.py", line 79, in get_custom
group = default_custom_nodes()
File "C:\Users\xxxx\AppData\Roaming\Blender Foundation\Blender\3.2\scripts\addons\normal_map_to_group.py", line 259, in default_custom_nodes
node.inputs[3].default_value = 1.0 # Height_dx
ValueError: bpy_struct: item.attr = val: sequence expected at dimension 1, not 'float'
I checked normal_map_to_group.py and if I delete these lines
if use_new_nodes:
node.inputs[3].default_value = 1.0 # Height_dx
node.inputs[4].default_value = 1.0 # Height_dy
node.inputs[5].default_value = (0.0, 0.0, 0.0) # Normal
else:
node.inputs[3].default_value = (0.0, 0.0, 0.0) # Normal
it works. I don't know why. I guess those are related with Bump node parameters and blender 3.2 doesn't need those anymore?
I think it's something you should do too to get the word out ... Maybe even sell it so people know they got a real asset...on Blender Market .... It would drive in the importance of what you created....because I got 24 frames per second in render mode on a high Poly character with this add-on... I also shouted it out in my own new Blender addons description... https://toapyandfriends.gumroad.com/l/super-solid-mode and gave a link to it I hope it's OK but I want tha peops that watch my channel and download my add-on to download yours too!!!... Thanks for being smart for all of us!!!!...
as a thank you if you wanna try out my new add on SUPER-SOLID MODE.... here's a free code just put it in at checkout!
toapy-and-friends-free-codes
Oops people might see this and take advantage of me... I DON'T CARE!! IF YOU STUMBLE ON THIS GREAT!!! USE THE CODE!!! AND ENJOY A MUCH MORE AWESOME EXPERIENCE IN BLENDER!!.... And definitely try this guys add on because he knows what he's talking about!!!
Here's the link to the tut on my chan... man!๐คฃ
OKAY I've added your add on code to my own and I worked out a screenshot in Photoshop of an idea of how I could thank you in my add on preferences
i've added some text below the button in my add on preferences that activates your add Ons functionality.....
Hi, could you please make it so that switching back and forth remembers which UV I've had selected? I was thinking maybe creating the UV node outside of the group, connecting it to the group and setting it's UV to the same as the Normal Map node had. That would be super useful when I am working with objects that use multiple UVs...
n/a Ohh now that we have GPT you could always just throw this whole thing in there and see how further it could optimize normal maps that'd be a good experiment actually I think I'm gonna do that you let me use your code so if I don't hear back from you then I'll do that pretty soon and see what I come up with and if I come up with anything better then I'll send it to you..
It does not show in the addon tab to enable it. Would be great if you fixed it
Hi!
The add-on doesn't work with Blender 4.0 because they changed some API functions to create node sockets.
I think we just need to change the input part at line
BlenderNormalGroups/normal_map_to_group.py
Line 150 in 4a46690
with
# Input
input = group.interface.new_socket("Strength", in_out='INPUT', socket_type='NodeSocketFloat')
input.default_value = 1.0
input.min_value = 0.0
input.max_value = 1.0
input = group.interface.new_socket("Color", in_out='INPUT', socket_type='NodeSocketColor')
input.default_value = ((0.5, 0.5, 1.0, 1.0))
# Output
group.interface.new_socket("Normal", in_out='OUTPUT', socket_type='NodeSocketVector')
No other changes needed as of the current Blender 4.0 beta version.
people use 2.79x still and I think this would be good to backport
for bge users especially
do you think all the nodes exist in 2.79 to pull this off?
not sure why its not downloading
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.