Forum Coordinators: RedPhantom
Poser - OFFICIAL F.A.Q (Last Updated: 2024 Oct 08 8:34 am)
Not sure if it's relevant to your query but in Firefly and Preview there's the Remove Back Facing Polys check box in render settings. I typically turn this off being that I do so much preview render stuff, back faces of one sided geometry shows up in preview. Interiors of clothing, hair cards, etc.
Also on the Poser Surface Root there is the Normals Forward check box, useful to render one sided geometry without the darkening effect of one side that happens in Firefly renders of card plants (transmapped card leaves, grass fronds, etc) and such...
On that note I'm not sure it's possible to shade the opposite facing of a one sided geometry differently, this is typically a thing that would be handled by the UVs/mat zone and an actual thickness ( interior of cloth)... someone like Bagginsbill would be able to answer more eloquently and decisively.
Here, have an example I've saved from Bagginsbill ages ago:
You can plug anything into the Blender node inputs to make whatever different material you want :)
- - - - - -
Feel free to call me Ohki!
Poser Pro 11, Poser 12 and Poser 13, Windows 10, Superfly junkie. My units are milimeters.
Persephone (the computer): AMD Ryzen 9 5900x, RTX 3070 GPU, 96gb ram.
Haha - that IS from ages ago and I didn't know as much then. That shader is distinguishing not front and back, but whether the polygon is facing +Z or -Z axis. That's not the same as what you want. I can't remember if I found a FireFly solution.
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)
I thought it was separating the normals forward and normals backward?Haha - that IS from ages ago and I didn't know as much then. That shader is distinguishing not front and back, but whether the polygon is facing +Z or -Z axis. That's not the same as what you want. I can't remember if I found a FireFly solution.
- - - - - -
Feel free to call me Ohki!
Poser Pro 11, Poser 12 and Poser 13, Windows 10, Superfly junkie. My units are milimeters.
Persephone (the computer): AMD Ryzen 9 5900x, RTX 3070 GPU, 96gb ram.
Thanks for all the replies! Much appreciated.
Afrodite-Ohki posted at 4:29 PM Fri, 9 December 2022 - #4451332
bagginsbill posted at 11:54 AM Fri, 9 December 2022 - #4451304Yes, that's what it does, but it's not forward or backward relative to the camera, but in global coordinates. If the camera is at an angle, or the object is too close to it, it won't work correctly.I thought it was separating the normals forward and normals backward?Haha - that IS from ages ago and I didn't know as much then. That shader is distinguishing not front and back, but whether the polygon is facing +Z or -Z axis. That's not the same as what you want. I can't remember if I found a FireFly solution.
That setup was the first thing I tried, by the way, only with the sign function instead of step.
If I had a node or combination of nodes that gave me the viewing direction as a vector, then I could wire something up in combination with the N node.
-- I'm not mad at you, just Westphalian.
My archives contain this alternative approach which extracts the diffuse node's Normals_Forward function to drive a blender. Author unknown, unfortunately, I only saved the screenshot (dated July 2008) - nor do I know enough to guarantee that it's an improvement. Offered without warranty for further discussion. :)
(and of course this is Poser 7 vintage and has no relevance to Superfly, but you knew that...)
Yes, still works in Poser 12 Firefly. I simplified the setup a bit by swapping the order of the diffuse nodes and ditching the Abs function.
ETA: Of course, as one would expect, this does *not* work for SuperFly. So, I'll have to figure out how this works in SF, as well (easier, at my guess, which is why I only asked about FF for now) and then, unlike shown here, use two separate root nodes.
-- I'm not mad at you, just Westphalian.
Here's an even simpler FireFly version. Just diffuse -> step -> blender is enough. [...]
I didn't have time last night to sit down and think through the math(s) nodes, but they gave the impression of overkill at the time. Neatly simplified! Also thanks to @hborre for the Superfly version.
Encouraging to see that the good old forum samizdat still works. Now I should try to remember to put this to work next time I have a single sided mesh.
The use of Diffuse to either capture "negative" reflected light, or to detect a difference between Diffuse with-and-without Normals_Forward does seem to work and I recalled that this is possibly a valid approach. However, it doesn't work with indirect light, and I ALWAYS use indirect light, so be careful with that.
No IDL - works fine:
With IDL, failure:
Notice also that the diffuse light reflected from the inside of the cylinder onto the floor is all green. The IDL calculation ignored the shader detection of front-vs-back
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)
The use of Diffuse to either capture "negative" reflected light, or to detect a difference between Diffuse with-and-without Normals_Forward does seem to work and I recalled that this is possibly a valid approach. However, it doesn't work with indirect light, and I ALWAYS use indirect light, so be careful with that.
Ah yes, there's always something, isn't there? Thanks for the heads up!
-- I'm not mad at you, just Westphalian.
hborre posted at 12:51 PM Mon, 12 December 2022 - #4451547I apologize for the confusing picture. As far as I understand, the PhysicalSurface node in Poser 11 and 12 is meant to support both FireFly and SuperFly. So, I'm assuming the roughness and metallic channels are being translated to the closest FireFly equivalents under the hood. Nonetheless, the shader as shown in the image will not distinguish the front and back face in SuperFly, only in FireFly.I see that it says that but the pic shows PBR roughness and metallic channels which I didn’t think FireFly had but which SuperFly does.It's Firefly as mentioned above in the image.
-- I'm not mad at you, just Westphalian.
odf posted at 10:05 PM Wed, 14 December 2022 - #4451767
moogal posted at 8:34 PM Wed, 14 December 2022 - #4451761hborre posted at 12:51 PM Mon, 12 December 2022 - #4451547I apologize for the confusing picture. As far as I understand, the PhysicalSurface node in Poser 11 and 12 is meant to support both FireFly and SuperFly. So, I'm assuming the roughness and metallic channels are being translated to the closest FireFly equivalents under the hood. Nonetheless, the shader as shown in the image will not distinguish the front and back face in SuperFly, only in FireFly.I see that it says that but the pic shows PBR roughness and metallic channels which I didn’t think FireFly had but which SuperFly does.It's Firefly as mentioned above in the image.
This got me pretty excited, so I applied this new solution to the two-sided cloth cape problem I was having in that old thread, to which BB posted the Z-axis solution. This looks really nice, until something casts a shadow on the backfaces. Then it has a panic episode or something. Rats and mice. Now I hafta file this under "No Dice! Cartoon characters aren't anatomically correct!"
===========================sigline======================================================
Cage can be an opinionated jerk who posts without thinking. He apologizes for this. He's honestly not trying to be a turkeyhead.
Cage had some freebies, compatible with Poser 11 and below. His Python scripts were saved at archive.org, along with the rest of the Morphography site, where they were hosted.
This got me pretty excited, so I applied this new solution to the two-sided cloth cape problem I was having in that old thread, to which BB posted the Z-axis solution. This looks really nice, until something casts a shadow on the backfaces. Then it has a panic episode or something. Rats and mice. Now I hafta file this under "No Dice! Cartoon characters aren't anatomically correct!"
Yeah, it's tricky. You'd need to make sure the front side has some light on it everywhere, but as bagginsbill discovered, can't use indirect light.
Once again, SuperFly wins. :-P
-- I'm not mad at you, just Westphalian.
odf posted at 4:26 PM Fri, 16 December 2022 - #4451895
Cage posted at 2:08 PM Fri, 16 December 2022 - #4451874Yawn. Well at least something is winning, thank heavens for scraps of joy. Lol.This got me pretty excited, so I applied this new solution to the two-sided cloth cape problem I was having in that old thread, to which BB posted the Z-axis solution. This looks really nice, until something casts a shadow on the backfaces. Then it has a panic episode or something. Rats and mice. Now I hafta file this under "No Dice! Cartoon characters aren't anatomically correct!"
Yeah, it's tricky. You'd need to make sure the front side has some light on it everywhere, but as bagginsbill discovered, can't use indirect light.
Once again, SuperFly wins. :-P
Yeah, it's pretty useless if it doesn't work with IDL honestly. You'd have to dredge the dregs of Poser 4 aesthetic die hards to find Firefly users who don't use IDL. Toon renderers on the other hand. IBL? Does a diffuse flood from IBL effect it. Wonder how your method appears in openGL? Does it appear in openGL?
primorge posted at 2:29 PM Fri, 16 December 2022 - #4451880
Oh, right. I got distracted and forgot to label the lower one. On the right, I had deactivated shadow casting for the light in the scene. I don't know why it looks like there's still a shadow. On the left, the shadows are activated again. I'm not sure these are good examples of the problem, now that you point it out. The trouble does relate to shadow-casting, at any rate.Weird that the shader back face "poke through" isn't matching the cast shadow shape... I'm confused in general by what's going on in your screen captures. In one instance it's showing the cast shadow fine (bottom left) and in bottom right it's not?
Edit. The problem may be the IBL, in fact. Interesting & weird.
===========================sigline======================================================
Cage can be an opinionated jerk who posts without thinking. He apologizes for this. He's honestly not trying to be a turkeyhead.
Cage had some freebies, compatible with Poser 11 and below. His Python scripts were saved at archive.org, along with the rest of the Morphography site, where they were hosted.
primorge posted at 5:18 PM Fri, 16 December 2022 - #4451905
I'll leave that up to folks who want to use Firefly or OpenGL to find out. What I meant to express with my admittedly flippant line up there is that over and over again I find that things that are easy in SuperFly are a big pain, if at all possible, in Firefly. So, I'm not seeing anything that would motivate me to use it and a pile of things that motivate me to stay away from it. That's just me, obviously, to each their own etc. and so on.Yeah, it's pretty useless if it doesn't work with IDL honestly. You'd have to dredge the dregs of Poser 4 aesthetic die hards to find Firefly users who don't use IDL. Toon renderers on the other hand. IBL? Does a diffuse flood from IBL effect it. Wonder how your method appears in openGL? Does it appear in openGL?
I was just posting my question because I imagined that if there were a practical solution, someone would have figured it out by now. It looks like, unfortunately, there is none.
-- I'm not mad at you, just Westphalian.
-- I'm not mad at you, just Westphalian.
I wanted to note here that I have gotten useful results with the Firefly methods revealed upthread. The images I posted above showed a problem when shadows were used on the two-sided cloth in a scene with IBL lighting. As illustrated in the images I posted (although not explained properly at the time), the two-sided effect is broken wherever a shadow is cast upon the two-sided item. The fix is to set all shadow-casting lights' shadow intensity below 1.0. At shadow strength 0.95, the effect works as desired, but at strength 1.0 the whole thing fails as I've noted.
I have not tested anything with IDL and would guess that it would fail, as smarter users than I have already noted, up there in 2022.
===========================sigline======================================================
Cage can be an opinionated jerk who posts without thinking. He apologizes for this. He's honestly not trying to be a turkeyhead.
Cage had some freebies, compatible with Poser 11 and below. His Python scripts were saved at archive.org, along with the rest of the Morphography site, where they were hosted.
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.
I'm trying to make cloth materials that work in both Firefly and Superfly. For things like skirts, it would be nice to be able to make the back of the cloth look different from the front. But I'm having trouble distinguishing front-facing from back-facing polygons within the shader. Any ideas?
-- I'm not mad at you, just Westphalian.