Fri, Nov 15, 4:50 AM CST

Renderosity Forums / Poser - OFFICIAL



Welcome to the Poser - OFFICIAL Forum

Forum Coordinators: RedPhantom

Poser - OFFICIAL F.A.Q (Last Updated: 2024 Nov 15 4:06 am)



Subject: Dear Texture Creators: Learn Math


Keith ( ) posted Tue, 21 July 2009 at 7:18 PM · edited Fri, 08 November 2024 at 3:54 PM

So I'm working on a character and want to add a tattoo via the blend node.  Now, this isn't as difficult as it can be, even with extremely complicated Material room setups, because I've created a base node setup that can take any texture and combine it with whatever I want with a minimal amount of work.  So I take a look at the skin node setup and sigh because it means I have to haul out my blend setup instead of simply using one or two blends for the texture and bump.  And just before I load up my shader, I pause because something catches my eye that seems a bit odd.

There's a connection from the texture that goes into a math function node, and then out.  But all the math node is doing is multiplying the texture by 1.  Nothing else.  And multiplying something by 1 gives you what you started with.

Not believing someone would do something so silly, that there had to be a reason for it, I bypassed that node and rendered.  Nope, zero difference.

So then I started looking deeper.  There was a color ramp node being fed a diffuse node.  All four colours in the colour ramp were black.  Hey, do you know the kind of gradient you get between black, black, black, and black?

And then, amusingly enough, that fed into a colour math node.  The creator took the skin texture, fed it through that math node that did nothing which I'd noticed at first, and then connected it to the value_1 of the node, and the output of the ramp into value 2.  And set it to multiply.

When you multiply a colour by black, you are multiplying it by zero.  I assume most people learn what happens then around the same time they learned about multiplying by 1.

And then, just to add insult to injury, they set the colour of value_2 (receiving a value of zero, remember) to...black.  Which is zero.  Which means their math node is multiplying the zero that's incoming from the ramp with another zero.  And then using that zero to multiply with the texture and, obviously, outputting a zero to the Alternate_diffuse (which was, of course, set at another colour).

Long story short, I was able to rip out about half of their node setup that was doing absolutely nothing.

Now, i can see that sort of thing happening when you're experimenting, but if you're going to sell it, i think it sort of behooves you to clean the thing up.

And thus endeth today's rant.



Khai-J-Bach ( ) posted Tue, 21 July 2009 at 7:24 PM

heh could have titled it 'Hey, Certain Texture Creator : Learn Math' instead of tarring everyone with the same brush ya know... ;)



Keith ( ) posted Tue, 21 July 2009 at 7:39 PM

I didn't want to pick on anyone in particular...

That said, I have seen some utterly ridiculous node setups.  I get the impression that some people are randomly adding things and believing they see a difference, or they've copied what someone else did and changed things without understanding how stuff works.



LaurieA ( ) posted Tue, 21 July 2009 at 8:00 PM

Quote - I didn't want to pick on anyone in particular...

That said, I have seen some utterly ridiculous node setups.  I get the impression that some people are randomly adding things and believing they see a difference, or they've copied what someone else did and changed things without understanding how stuff works.

Guilty!! Haven't sold anyting tho ;0)

Laurie



dasquid ( ) posted Wed, 22 July 2009 at 2:21 AM

Quote - So I'm working on a character and want to add a tattoo via the blend node.  Now, this isn't as difficult as it can be, even with extremely complicated Material room setups, because I've created a base node setup that can take any texture and combine it with whatever I want with a minimal amount of work.  So I take a look at the skin node setup and sigh because it means I have to haul out my blend setup instead of simply using one or two blends for the texture and bump.  And just before I load up my shader, I pause because something catches my eye that seems a bit odd.

There's a connection from the texture that goes into a math function node, and then out.  But all the math node is doing is multiplying the texture by 1.  Nothing else.  And multiplying something by 1 gives you what you started with.

Not believing someone would do something so silly, that there had to be a reason for it, I bypassed that node and rendered.  Nope, zero difference.

So then I started looking deeper.  There was a color ramp node being fed a diffuse node.  All four colours in the colour ramp were black.  Hey, do you know the kind of gradient you get between black, black, black, and black?

And then, amusingly enough, that fed into a colour math node.  The creator took the skin texture, fed it through that math node that did nothing which I'd noticed at first, and then connected it to the value_1 of the node, and the output of the ramp into value 2.  And set it to multiply.

When you multiply a colour by black, you are multiplying it by zero.  I assume most people learn what happens then around the same time they learned about multiplying by 1.

And then, just to add insult to injury, they set the colour of value_2 (receiving a value of zero, remember) to...black.  Which is zero.  Which means their math node is multiplying the zero that's incoming from the ramp with another zero.  And then using that zero to multiply with the texture and, obviously, outputting a zero to the Alternate_diffuse (which was, of course, set at another colour).

Long story short, I was able to rip out about half of their node setup that was doing absolutely nothing.

Now, i can see that sort of thing happening when you're experimenting, but if you're going to sell it, i think it sort of behooves you to clean the thing up.

And thus endeth today's rant.

So they multiplied by zero several times?

Well at least they didnt try to DIVIDE by zero :P



giorgio_2004 ( ) posted Wed, 22 July 2009 at 5:28 AM

I wonder how Bagginsbill would react looking at that shader...    :lol:

giorgio_2004 here, ksabers on XBox Live, PSN  and everywhere else.


bagginsbill ( ) posted Wed, 22 July 2009 at 6:43 AM

Are you sure the color ramp entries were really zero? That's a fake SSS I tactic I wrote a few years ago, and at least one of those is a very dark red. If they are all black, then the person did indeed copy the V4 shaders and change without understanding.


Renderosity forum reply notifications are wonky. If I read a follow-up in a thread, but I don't myself reply, then notifications no longer happen AT ALL on that thread. So if I seem to be ignoring a question, that's why. (Updated September 23, 2019)


ice-boy ( ) posted Wed, 22 July 2009 at 7:49 AM

i dont like when the texture is 1345 x 457

who does textures like this? i mean seriously?

1024x1024
2048x2048
512x512

those are the basics.


ice-boy ( ) posted Wed, 22 July 2009 at 7:49 AM

i dont like when the texture is 1345 x 457

who does textures like this? i mean seriously?

1024x1024
2048x2048
512x512

those are the basics.


JenX ( ) posted Wed, 22 July 2009 at 2:58 PM

Oddly enough, I've seen (and bought) a few like that.  If I were buying characters for their node setups, I'd be a bit cheesed, but, since I change a lot of things, anyway, I try not to gain a migraine over it, lol.  But, yeah, THAT is dumb. 

Sitemail | Freestuff | Craftythings | Youtube|

Knowledge is knowing a tomato is a fruit. Wisdom is not putting it into a fruit salad.


AntoniaTiger ( ) posted Wed, 22 July 2009 at 3:14 PM

 That math node could have converted the texture to a greyscale.

Now, I'm not sure that you need to do that. I've seen greyscale versions of the texturemap fed into the Bump input, so you have two texturemaps to load, but using the colour version doesn't seem to change anything.

Mind you, the explanations in the Poser manuals are pretty poor.


ockham ( ) posted Wed, 22 July 2009 at 4:46 PM

I'm more forgiving of what may look like spaghetti code or dead code in this context.
First, color math isn't always the same as plain math.  Second, there are some
oddities and exceptions in the Poser system that are understood only by BB.
Third, it's often useful to set things up in a standard template form so you can
change or add things into known positions.  It's easier to keep track of several
"variations on a theme" by setting some variables to zero, rather than by changing the
pattern of the nodes.

My python page
My ShareCG freebies


aella ( ) posted Sat, 25 July 2009 at 2:21 AM

woosh nodes fly over my head good thing I'm a nurse and not a texture maker.


deni67 ( ) posted Sat, 25 July 2009 at 5:36 AM

From a dummies point of view because i don't know a lot about maths but i have done some clothing textures and have added a dummy node or two. Iv'e heard about other people stealing others node setups and by adding a dummy node or two if they steal yours then you'd know it!


seachnasaigh ( ) posted Sat, 25 July 2009 at 9:56 AM · edited Sat, 25 July 2009 at 9:58 AM

I'm like a kid with Legos in the material room. :D  Some of the resulting node connections look like spaghetti. 

Triple strobe (flash-flash-flash...  flash-flash-flash...), good for sci-fi beacons:
http://img.photobucket.com/albums/v604/seachnasaigh/tutorials/P7_mat_triplestrobe.png

120-frame seamless loop color shift, for the neon bubble tubes of a jukebox:
http://img.photobucket.com/albums/v604/seachnasaigh/tutorials/P7_mat_color_ramp_120f_loop.png

animated lightning seamless loop using a matrix (Poser Pro's movie node isn't working in the 64bit render engine):
http://img.photobucket.com/albums/v604/seachnasaigh/tutorials/P7_mat_matrix.png

Poser 12, in feet.  

OSes:  Win7Prox64, Win7Ultx64

Silo Pro 2.5.6 64bit, Vue Infinite 2014.7, Genetica 4.0 Studio, UV Mapper Pro, UV Layout Pro, PhotoImpact X3, GIF Animator 5


Winterclaw ( ) posted Sat, 25 July 2009 at 11:41 AM

It is possible some people make complicated set ups to either discourage people from getting into it or to make it harder for others to figure out how the set up actually works?

WARK!

Thus Spoketh Winterclaw: a blog about a Winterclaw who speaks from time to time.

 

(using Poser Pro 2014 SR3, on 64 bit Win 7, poser units are inches.)


Michael314 ( ) posted Sun, 26 July 2009 at 1:39 PM

Hi,
I bet they have some stock options with Intel or AMD and just increase the need for a faster
computer. Processing dummy nodes takes same time as processing  meaningful
nodes. :rolleyes:

Best regards,
   Michael


moogal ( ) posted Sun, 26 July 2009 at 5:13 PM

Maybe they're vestiges of a complex material setup the person keeps handy by leaving in, but with values set to zero or black so they have no effect?


Keith ( ) posted Mon, 27 July 2009 at 10:32 AM

Quote - Maybe they're vestiges of a complex material setup the person keeps handy by leaving in, but with values set to zero or black so they have no effect?

See, that one I could buy.   I have material setups like that myself, like that blender setup I mentioned: it (potentially) connects to all the commonly used nodes in the Poser_surface, so if there was no reflectivity, or ambient, or alternate_diffuse, those bits of the node tree stay inactive.

But...

In those cases I have a single "switch" as it were.  To use the obvious real-world analogy, if I want to kill the power in one section of my home, if I turn it off at the breaker, going around and turning off all the lights and electronics and appliances one by one as well isn't  going to make a difference.



WandW ( ) posted Mon, 27 July 2009 at 12:28 PM

Could those nodes be a boilerplate part of the merchant resource that the artist used, and he didn't implement them?

----------------------------------------------------------------------------------------

The Wisdom of bagginsbill:

"Oh - the manual says that? I have never read the manual - this must be why."
“I could buy better software, but then I'd have to be an artist and what's the point of that?"
"The [R'osity Forum Search] 'Default' label should actually say 'Don't Find What I'm Looking For'".
bagginsbill's Free Stuff... https://web.archive.org/web/20201010171535/https://sites.google.com/site/bagginsbill/Home


Keith ( ) posted Mon, 27 July 2009 at 2:41 PM

Who knows?

The point is regardless of how they originally used (if at all) the node setup, leaving them in the final product was unprofessional.  Sure, they didn't do anything, and sure, it's easy to clean them up yourself (if you know what you are doing), but even if it were a freebie giveaway it would have only taken a minute or two to clean the whole thing up before distributing it.



bagginsbill ( ) posted Mon, 27 July 2009 at 2:55 PM

I could agree or disagree, Keith. I'm not sure what opinion to have. I'd have to see the specifics. Sometimes nodes are left in at initial settings that do nothing, but the end user may want to change the value. For example, my VSS shaders have a SSS Strength parameter that is equal to 1 by default. Multiplying by 1 is a waste of time, of course, but it isn't there to multiply with 1. It's there so an end user who finds the SSS effect is too strong can change it to less than 1, or if its too weak, change it to more than 1. Without that node, allowing a potentially meaningful multiplication, the user would have to change 4 or 5 other values. I leave that node in as a master parameter.

The key decider is whether the "useless" node connects to more than one thing. If it only goes to one place, and is not pulled out of the spaghetti for clarity, then it probably is dumb.


Renderosity forum reply notifications are wonky. If I read a follow-up in a thread, but I don't myself reply, then notifications no longer happen AT ALL on that thread. So if I seem to be ignoring a question, that's why. (Updated September 23, 2019)


Keith ( ) posted Mon, 27 July 2009 at 5:42 PM

Oh sure, there are reason for doing it...and like I said I have it myself, but if I were going to share my shader setup with someone, like you did VSS, intentionally leaving "useless" nodes in because they can be useful in the right circumstances, I'd tell someone about it and make it easy to find.



Privacy Notice

This site uses cookies to deliver the best experience. Our own cookies make user accounts and other features possible. Third-party cookies are used to display relevant ads and to analyze how Renderosity is used. By using our site, you acknowledge that you have read and understood our Terms of Service, including our Cookie Policy and our Privacy Policy.