Welcome to the Poser Forum

Forum Moderators:  Boni, Kendra    Forum Coordinators:  darknewt, digitell, Jules53757, SpookieLilOne, gmm2

Poser F.A.Q (Updated: 2016 Aug 17 3:20 pm)


 Subject: help, rainbow python math, please, i need help understanding

MistyLaraPrincess opened this issue on Jul 28, 2012 · 19 posts

Top of Forum Print

  MistyLaraPrincess () ( posted at 1:25PM Sat, 28 July 2012 · edited on 1:33PM Sat, 28 July 2012

found this article for rainbows.  something about HSV->RGB conversion function.

http://objectmix.com/python/352080-how-make-rainbow-rgb-values.html

would someone help me to understand to  make this into poser rainbow?

can a custom color node be made from this?

thanks.  i didn't pass classes after pre-calculus

 

http://docs.python.org/library/colorsys.html





  bagginsbill () ( posted at 2:00PM Sat, 28 July 2012  · @3963879

Are you asking about Python or asking about materials - or both?

And you ask "can a custom color node be made from this?" - we cannot make custom nodes of any kind. So no.

There is already an HSV node in Poser materials. It will make a rainbow color table from any grayscale pattern.

Setting these up in matmatic is easy, if you use matmatic.

Assuming you have a pattern in "pattern" you would do:

HSV(YELLOW, pattern, 1, 1)

 


Renderosity forum reply notifications do not function properly. If you need me to answer something, ask elsewhere. If they don't fix this soon, I'm going to stop participating in this forum altogether. -- Updated Jan 14, 2016.



  MistyLaraPrincess () ( posted at 8:33PM Sat, 28 July 2012 · edited on 8:35PM Sat, 28 July 2012 · @3963985


rainbow snowcone time out. cuz 7 hours of fail can be depressing.

 

thanks BB!  rainbows with hsv magick.

after reading the colorsys info, my first thought was the possibilities of working it into a node like color_ramp or wood.  mentioning the wood because it has rings and rainbows usually arch.





  bagginsbill () ( posted at 9:05PM Sat, 28 July 2012  · @3963995


.


Renderosity forum reply notifications do not function properly. If you need me to answer something, ask elsewhere. If they don't fix this soon, I'm going to stop participating in this forum altogether. -- Updated Jan 14, 2016.



  bagginsbill () ( posted at 9:09PM Sat, 28 July 2012  · @3963996


.


Renderosity forum reply notifications do not function properly. If you need me to answer something, ask elsewhere. If they don't fix this soon, I'm going to stop participating in this forum altogether. -- Updated Jan 14, 2016.



  bagginsbill () ( posted at 9:13PM Sat, 28 July 2012  · @3963998


.


Renderosity forum reply notifications do not function properly. If you need me to answer something, ask elsewhere. If they don't fix this soon, I'm going to stop participating in this forum altogether. -- Updated Jan 14, 2016.



  bagginsbill () ( posted at 9:16PM Sat, 28 July 2012  · @3963999


.


Renderosity forum reply notifications do not function properly. If you need me to answer something, ask elsewhere. If they don't fix this soon, I'm going to stop participating in this forum altogether. -- Updated Jan 14, 2016.



  MistyLaraPrincess () ( posted at 10:39AM Sun, 29 July 2012  · @3964183

oh woww.  thanks!!!

is it possible to make like a soft gradient progressing through the colours?





  Lully () ( posted at 10:50AM Sun, 29 July 2012 · edited on 10:54AM Sun, 29 July 2012 · @3964185


oh wow, i just tried out the first option with a different colour and got this

 

edited, would help with a pic, lol

 

PPPS, thanks BB  :)

Tools:- Win10, Dell XPS8900, Poserpro2014, Poserpro11, zbrush, Marvelous Designer 4, Hex 2.5.0.5, PSP8, Blacksmith3D suite V5, Vue10 Esprit,  A little bit of DAZ and My Brain (just about)


  Lully () ( posted at 11:36AM Sun, 29 July 2012  · @3964204


Spotties :lol:

Tools:- Win10, Dell XPS8900, Poserpro2014, Poserpro11, zbrush, Marvelous Designer 4, Hex 2.5.0.5, PSP8, Blacksmith3D suite V5, Vue10 Esprit,  A little bit of DAZ and My Brain (just about)


  MistyLaraPrincess () ( posted at 5:14PM Sun, 29 July 2012  · @3964328

this one looks promising. 

http://www.creative-3d.net/images/p5_material_room.jpg

i can't make out the blue setting, it's not 1.





  Miss Nancy () ( posted at 6:38PM Sun, 29 July 2012 · edited on 6:42PM Sun, 29 July 2012 · @3964362

if one wants a spectrally accurate rainbow, use bill's shader.  banding is likely as saturation increases.  however, if one wants a smooth day-glo rainbow, try bill's technique he used on his poser 6 lite meter, modified below.  to get more roygbiv, blend two ramps.

hippie rainbow dayglo

p.s. that user defined 22 node in your example might work even better.



  MistyLaraPrincess () ( posted at 8:29PM Sun, 29 July 2012  · @3964386

blend 2 ramps! 

and add in BB's examples for the arches.





  MistyLaraPrincess () ( posted at 8:32PM Sun, 29 July 2012  · @3964387

Quote - Spotties :lol:

gotta luv the cellular node.  and the random color option.





  Lully () ( posted at 2:26AM Mon, 30 July 2012  · @3964450

Quote - > Quote - Spotties :lol:

gotta luv the cellular node.  and the random color option.

 

I know, lol. i was just messing around with it all yesterday, you get better ones with the tile option on a very blurry mortar. But this does open a multitude of ideas, I didn't realise you could get a rainbow colours in the mat room with nodes, :)

Tools:- Win10, Dell XPS8900, Poserpro2014, Poserpro11, zbrush, Marvelous Designer 4, Hex 2.5.0.5, PSP8, Blacksmith3D suite V5, Vue10 Esprit,  A little bit of DAZ and My Brain (just about)


  MistyLaraPrincess () ( posted at 9:43PM Mon, 30 July 2012 · edited on 9:46PM Mon, 30 July 2012 · @3964890


no chocolate cigars.  groan.  the yellow and green isn't showing

styling is a different matter,    i can never be happy with the roots





  bagginsbill () ( posted at 10:26PM Mon, 30 July 2012 · edited on 10:27PM Mon, 30 July 2012 · @3964906

You've mistakenly assumed the "V" coordinate goes from 0 to 1 along each hair. The UV coordinates go with the skin. You are reading the U coordinate of the location of the base of each hair - all of which are near the top of the head UV map, so in the blue-violet range.

If you want rainbow hair, you have to get the hidden "W" coordinate. The W coordinate is a 3rd texture dimension going 0 to 1 from base of hair to tip. The only node that can access this coordinate is the Hair node.

A couple years ago I figured out a way to extract the value of the "W" coordinate and use it to make rainbow hair.

http://www.renderosity.com/mod/forumpro/showthread.php?thread_id=2807241


Renderosity forum reply notifications do not function properly. If you need me to answer something, ask elsewhere. If they don't fix this soon, I'm going to stop participating in this forum altogether. -- Updated Jan 14, 2016.



  Miss Nancy () ( posted at 12:16AM Tue, 31 July 2012  · @3964959

misty, you see he's using a colour ramp there.  would suggest losing the user-defined hsv node until it has been further demonstrated in this regard.



  MistyLaraPrincess () ( posted at 9:33AM Tue, 31 July 2012 · edited on 9:46AM Tue, 31 July 2012 · @3965079

the 3rd texture dimension !

woww, thanks!





 To create a post you must first sign in or register an account.