Fri, Sep 20, 10:34 AM CDT

Renderosity Forums / Poser 11 / Poser Pro 11 OFFICIAL Technical



Welcome to the Poser 11 / Poser Pro 11 OFFICIAL Technical Forum

Forum Moderators: nerd

Poser 11 / Poser Pro 11 OFFICIAL Technical F.A.Q (Last Updated: 2024 Sep 16 2:29 pm)

banner

Welcome to the Poser Forums! Need help with these versions, advice on upgrading? Etc...you've arrived at the right place!


Looking for Poser Tutorials? Find those HERE



Subject: Displacement based on Depth


redspark ( ) posted Sat, 18 April 2020 at 10:02 PM · edited Fri, 20 September 2024 at 10:31 AM

Hi, I don't know if this is possible but I would like to control the displacement value of an object based on the rendering point within 3D space of the material. So for instance, given a figure's head, this shader would calculate the displacement value for the nose to be smaller than the back of the head.

However, no matter where the figure is positioned in the scene, the displacement will always be proportionately set between two values (perhaps 1 and 2 for the displacement). So again using the face as an example, the nose would be a value of 1 and the back of the skull would be 2. However, if the figure was posed so that the camera was looking down their out stretched arm as they point at the camera, the tip of the finger would be 1 and the back of the skull would be 2. However, the nose would now fall somewhere between 1 and 2 and due to the distance, probably closer to 2.

Is something like this even possible? Thanks.


FVerbaas ( ) posted Sun, 19 April 2020 at 4:34 AM
Forum Coordinator

The p- node gives you the xyz location of the point, with x in the red channel, y in the green channel, and z in the blue channel. Unit is something like 0.1 inch, so you can work the math from there. For ease you may want to keep the camera in one place and move the scene instead.


FVerbaas ( ) posted Sun, 19 April 2020 at 4:37 AM
Forum Coordinator

I do not know exactly what you want to achieve, but you may also want to look at the optional z-buffer output in Firefly.


redspark ( ) posted Sun, 19 April 2020 at 5:26 AM

Thanks. I'll take a look at the p-Node to see if I can figure it out. What I'm trying to do is create a Stylized outline using the Geometric outline effect. Sometimes in Anime, the lines are thicker or thinner depending on distance and you get a Calligraphy effect. Right now the Poser generated Geometric outline thickness is uniform. However, if you manually create a geometric outline, you can control the thickness using displacement. I'm looking for a way to have Poser automatically figure out the line thickness based on the model itself. If you know of a way to do this already, please let me know. Thanks. :)


ironsoul ( ) posted Sun, 19 April 2020 at 2:20 PM

Not a general solution but for the face you could exploit the UV map where the center (0.5,0.5) tends to be the nose and therefore near the camera. image.png

.



redspark ( ) posted Mon, 20 April 2020 at 5:55 AM

Thanks Ironsoul! I'll try to work with that concept.


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.