Wed, Nov 27, 6:12 AM CST

Renderosity Forums / Poser 13



Welcome to the Poser 13 Forum

Forum Moderators: nerd, RedPhantom

(Last Updated: 2024 Nov 26 6:49 pm)



Subject: Dot Product vector math


RedPhantom ( ) posted Thu, 29 June 2023 at 11:47 AM · edited Sat, 23 November 2024 at 9:46 PM
Site Admin

What does this do? The node is missing from Poser and I'm trying to recreate a blender shader but I don't know what, or even if there's a work around. Does anyone know?


Available on Amazon for the Kindle E-Reader Monster of the North and The Shimmering Mage

Today I break my own personal record for the number of days for being alive.
Check out my store here or my free stuff here
I use Poser 13 and win 10


hborre ( ) posted Thu, 29 June 2023 at 12:04 PM

There is a VectorMath node in Poser 13 as well as P12 but without seeing what you are referring to, it is hard to judge what it is.


RedPhantom ( ) posted Thu, 29 June 2023 at 12:25 PM · edited Thu, 29 June 2023 at 12:25 PM
Site Admin

I totally missed it. Thanks.

This is how it was being used. This is to control some glossiness in a shader



Available on Amazon for the Kindle E-Reader Monster of the North and The Shimmering Mage

Today I break my own personal record for the number of days for being alive.
Check out my store here or my free stuff here
I use Poser 13 and win 10


Y-Phil ( ) posted Thu, 29 June 2023 at 1:30 PM

Dot Product: something that I ignore. Thanks for asking. I've this:

Tt1SApDfJ7L15HDqxXIal72PTAvtXjmNczFNOJAS.png

in this thread https://blender.stackexchange.com/questions/47523/what-is-dot-product


𝒫𝒽𝓎𝓁


(っ◔◡◔)っ

👿 Win11 on i9-13900K@5GHz, 64GB, RoG Strix B760F Gamng, Asus Tuf Gaming RTX 4070 OC Edition, 1 TB SSD, 6+4+8TB HD
👿 Mac Mini M2, Sonoma 14.6.1, 16GB, 500GB SSD
👿 Nas 10TB
👿 Poser 13 and soon 14 ❤️


RedPhantom ( ) posted Thu, 29 June 2023 at 1:38 PM
Site Admin

Yeah, I'd seen that and my brain sternly reminded me I taught preschool math and preschoolers don't need to know that.


Available on Amazon for the Kindle E-Reader Monster of the North and The Shimmering Mage

Today I break my own personal record for the number of days for being alive.
Check out my store here or my free stuff here
I use Poser 13 and win 10


Y-Phil ( ) posted Thu, 29 June 2023 at 1:57 PM · edited Thu, 29 June 2023 at 1:58 PM

RedPhantom posted at 1:38 PM Thu, 29 June 2023 - #4468904

Yeah, I'd seen that and my brain sternly reminded me I taught preschool math and preschoolers don't need to know that.

To what Neil de Grasse would reply: "with that, you've learned to learn and to resolve problems" hdyWLR0HbNS2KtVSCODtgSjJ4N1qKr3M6NFy5jIa.gif
Bu it's true that it's not quite evident, at first sight, even though it's giving interesting effects.

𝒫𝒽𝓎𝓁


(っ◔◡◔)っ

👿 Win11 on i9-13900K@5GHz, 64GB, RoG Strix B760F Gamng, Asus Tuf Gaming RTX 4070 OC Edition, 1 TB SSD, 6+4+8TB HD
👿 Mac Mini M2, Sonoma 14.6.1, 16GB, 500GB SSD
👿 Nas 10TB
👿 Poser 13 and soon 14 ❤️


shvrdavid ( ) posted Thu, 29 June 2023 at 4:55 PM · edited Thu, 29 June 2023 at 5:02 PM

Most of the time dot product is used as a conditional vector switch. Think of rain or snow hitting the ground. How do you tell where it hits the ground, where it doesn't, or where it goes afterwards? Well you do it based on the angle it came from and the angle of the surface it landed on, using the dot product of the vectors. Rain falling strait down would come from a vector of 0,0,-1, (assuming z is vertical, +z would be falling up). Any angles would obviously modify x and y. So basically all the dot product does is convert a vector input (x,y,z), into a scalar output (from 0 to 1), so you use it to determine if and when something else happens because of that.  In the shader above, it is determining the angle of the incoming light versus the angle of the normals on the object to determine an output. Which is how specular, reflections, etc actually work internally..... That is the simple explanation. You can do far more with it thou.... 



Some things are easy to explain, other things are not........ <- Store ->   <-Freebies->


odf ( ) posted Thu, 29 June 2023 at 7:17 PM

The Dot Product followed by the Arccosine in your example computes the angle between two vectors. Both vectors have to be of unit lengths, which I assume the render engine will guarantee in this particular case.

-- I'm not mad at you, just Westphalian.


RedPhantom ( ) posted Thu, 29 June 2023 at 7:51 PM
Site Admin

Had someone told me back when I started using Poser I'd have to be a rocket scientist to understand it all I would have run away and never looked back. I'm glad no one told me.


Available on Amazon for the Kindle E-Reader Monster of the North and The Shimmering Mage

Today I break my own personal record for the number of days for being alive.
Check out my store here or my free stuff here
I use Poser 13 and win 10


shvrdavid ( ) posted Thu, 29 June 2023 at 9:35 PM

There is a lot of math in 3D... But thankfully it is an option to learn that, versus a requirement. 



Some things are easy to explain, other things are not........ <- Store ->   <-Freebies->


Y-Phil ( ) posted Fri, 30 June 2023 at 1:48 AM
shvrdavid posted at 9:35 PM Thu, 29 June 2023 - #4468942

Excellent! Thank you so much for the explanation 379Md8lfFdsupoHAU9TH1Dia2kalHNhL18KiS9rW.gif

𝒫𝒽𝓎𝓁


(っ◔◡◔)っ

👿 Win11 on i9-13900K@5GHz, 64GB, RoG Strix B760F Gamng, Asus Tuf Gaming RTX 4070 OC Edition, 1 TB SSD, 6+4+8TB HD
👿 Mac Mini M2, Sonoma 14.6.1, 16GB, 500GB SSD
👿 Nas 10TB
👿 Poser 13 and soon 14 ❤️


odf ( ) posted Fri, 30 June 2023 at 2:44 AM · edited Fri, 30 June 2023 at 2:48 AM

I had a go at recreating the relevant part of the Blender shader in Poser 13 and plugged the result into an emission node for visualization. The emission strength is 0 where we look head on at the surface and goes up to 1 where we look along the edge. This is before the falloff parameter is applied, so the value would be exactly 0.5 where we look from a 45-degree angle.

(The objects depicted are a sphere, a torus and a cylinder, in case that wasn't obvious.)

hiM0afWLbUALTJ3XRDzytoOIQOA2eoM12xvj8uog.jpg

-- I'm not mad at you, just Westphalian.


RedPhantom ( ) posted Fri, 30 June 2023 at 7:22 AM
Site Admin

In this situation, it looks a bit like the edge blend node from firefly.


Available on Amazon for the Kindle E-Reader Monster of the North and The Shimmering Mage

Today I break my own personal record for the number of days for being alive.
Check out my store here or my free stuff here
I use Poser 13 and win 10


shvrdavid ( ) posted Fri, 30 June 2023 at 9:45 AM

In Poser you will run into odd problems with dot product because we don't have the Blender color ramp or the map range node to do things quickly and easily. Many of the blender cycles shaders you will find for dot product will have a color ramp or map range node in them. Using a math node for the separation in examples like I explained earlier will usually give an on off toggle without it, but with a color ramp or map range node you can setup a transition between multiple textures far easier. odf's example above is defaulting to zero (black) with a slight transition falloff area, and that is one way of doing it without the other nodes. But to adjust that falloff quickly becomes tedious without the other Blender nodes and a decent live preview.. I did put a ticket in for adding the map range node since it does not require any custom ui to do so. But as it stands all we have at the moment is a very well thought out Superfly freebie color ramp replacement by Richard60 and the old Firefly one. Richard60 also has a value output node that is a massive time saver in setting these shaders up, and knowing the actual values of the outputs. That freebie should be in any ones toolset that wants to play around with vector to scalar conversion math. So if you don't have that you may want to grab that. It is far better if you know what the output actually is, versus guessing what you think it should be and not getting it to work out as planned..



Some things are easy to explain, other things are not........ <- Store ->   <-Freebies->


odf ( ) posted Fri, 30 June 2023 at 9:27 PM
shvrdavid posted at 9:45 AM Fri, 30 June 2023 - #4468983

[...] But as it stands all we have at the moment is a very well thought out Superfly freebie color ramp replacement by Richard60 and the old Firefly one. Richard60 also has a value output node that is a massive time saver in setting these shaders up, and knowing the actual values of the outputs. That freebie should be in any ones toolset that wants to play around with vector to scalar conversion math. So if you don't have that you may want to grab that. It is far better if you know what the output actually is, versus guessing what you think it should be and not getting it to work out as planned..

Thanks for the tip, shvrdavid! That value output node sounds like just the thing I've been missing most in the material room.

-- I'm not mad at you, just Westphalian.


FVerbaas ( ) posted Mon, 03 July 2023 at 2:44 AM
Forum Coordinator
shvrdavid posted at 9:45 AM Fri, 30 June 2023 - #4468983

In Poser you will run into odd problems with dot product ...

I had to read this twice, but now I understand there is nothing wrong with the dot product node itself, but rather the absence, in Poser, of nodes that easily translate the output scalar into the color shades needed.



Richard60 ( ) posted Fri, 07 July 2023 at 8:43 PM · edited Fri, 07 July 2023 at 8:43 PM

Going along with what Shvrdavid says about needing a Map Ramp here is a picture of what ODF's setup above looks like with No Map Ramps, 1 and 2 Map Ramps.  This is something I have been working on for a slightly different project but was easy enough to convert for this use.

RAiHzDina86lUvAUwd3bfiLypaE8rI1b5MqvXPfA.png

The left set goes from 0 to 100%.  The second set goes from 30% to 100%.  The third set uses 2 Map Ramps and goes from 30% to 50% in the range of 0 to 87 and from 50% to 100% in the range of 87 to 100.  Notice the outline in the ball and torus.  Just have a few bugs to work out and it will be posted to the Freebies section.

Poser 5, 6, 7, 8, Poser Pro 9 (2012), 10 (2014), 11, 12, 13


Y-Phil ( ) posted Sat, 08 July 2023 at 9:29 AM

Cool

𝒫𝒽𝓎𝓁


(っ◔◡◔)っ

👿 Win11 on i9-13900K@5GHz, 64GB, RoG Strix B760F Gamng, Asus Tuf Gaming RTX 4070 OC Edition, 1 TB SSD, 6+4+8TB HD
👿 Mac Mini M2, Sonoma 14.6.1, 16GB, 500GB SSD
👿 Nas 10TB
👿 Poser 13 and soon 14 ❤️


shvrdavid ( ) posted Sat, 08 July 2023 at 10:33 AM

Having the Map Range node would be a huge help. But at the same time, doing it the long way provides far more options. You could have far more ramps, etc. But it is a long way doing it otherwise..... Looks like you most of the way there Richard.



Some things are easy to explain, other things are not........ <- Store ->   <-Freebies->


Richard60 ( ) posted Sat, 08 July 2023 at 8:37 PM · edited Sat, 08 July 2023 at 8:37 PM

wNaugpQJEXbPLSNoWuqhx92mpm5C7SGo1DqV8rAF.pngUploaded the Freebie now waiting for approval.  Above is Render with 3 Maps on the right.  I have the Map Range on the Torus going from 1-.45 then .45-.7 finally .7-1, which why it has that big spot in the middle.  Below will be the node setup.

JihiPsraBoFm03cIg0qxZKLaihlr8nXr23ohRsXj.png

Just to show the TO range can go from large to small.


Poser 5, 6, 7, 8, Poser Pro 9 (2012), 10 (2014), 11, 12, 13


shvrdavid ( ) posted Sat, 08 July 2023 at 10:48 PM

Nice. I guess we need to figure out how to do the default interpolation of the Cycles node now. Well done.



Some things are easy to explain, other things are not........ <- Store ->   <-Freebies->


Richard60 ( ) posted Sun, 09 July 2023 at 12:30 AM

And to make it easier to set and see how those Map Range Nodes work below is the next Freebie once I get it finished.

qgIf3QO5puUAgqmZytdGz8vVumlm5gcRkVwmY8sA.png

The Scope Ranges Node sends out a test/control signal that you inject into the shader and then it measures the signal coming off the shader.  Much like an Oscilloscope you find on electronic test benches  

Poser 5, 6, 7, 8, Poser Pro 9 (2012), 10 (2014), 11, 12, 13


Richard60 ( ) posted Thu, 13 July 2023 at 10:06 AM

Signal Scope for Poser P12/P13 (renderosity.com)

Here is the link to the Signal Scope and Signal Generator.  I had to break them apart as Poser will complain about a feedback loop when the compound nodes are first loaded and you hook them up as shown above.  I think people will find the scope very handy when doing work in the material room.

Poser 5, 6, 7, 8, Poser Pro 9 (2012), 10 (2014), 11, 12, 13


Y-Phil ( ) posted Thu, 13 July 2023 at 12:52 PM
Richard60 posted at 10:06 AM Thu, 13 July 2023 - #4469950


Fantastic tools, thank you so much

𝒫𝒽𝓎𝓁


(っ◔◡◔)っ

👿 Win11 on i9-13900K@5GHz, 64GB, RoG Strix B760F Gamng, Asus Tuf Gaming RTX 4070 OC Edition, 1 TB SSD, 6+4+8TB HD
👿 Mac Mini M2, Sonoma 14.6.1, 16GB, 500GB SSD
👿 Nas 10TB
👿 Poser 13 and soon 14 ❤️


ghostship2 ( ) posted Sun, 16 July 2023 at 5:16 PM

I had a dot product once. Interesting eight hours afterward.

W10, Ryzen 5 1600x, 16Gb,RTX2060Super+GTX980, PP11, 11.3.740


RedPhantom ( ) posted Mon, 17 July 2023 at 7:27 AM
Site Admin
ghostship2 posted at 5:16 PM Sun, 16 July 2023 - #4470352

I had a dot product once. Interesting eight hours afterward.

rolf. I'm glad I hadn't just taken a sip of my coffee



Available on Amazon for the Kindle E-Reader Monster of the North and The Shimmering Mage

Today I break my own personal record for the number of days for being alive.
Check out my store here or my free stuff here
I use Poser 13 and win 10


Thalek ( ) posted Mon, 24 July 2023 at 10:44 PM

So, if I understand what I read through a now pounding headache, would you use this to reproduce the highly reflective safety stripes on clothing?



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.