Sun, Dec 1, 4:19 AM CST

Renderosity Forums / Poser - OFFICIAL



Welcome to the Poser - OFFICIAL Forum

Forum Coordinators: RedPhantom

Poser - OFFICIAL F.A.Q (Last Updated: 2024 Nov 29 7:57 am)



Subject: Incorrect shader type on Preview material


IsaoShi ( ) posted Sun, 10 August 2008 at 5:50 PM · edited Tue, 05 November 2024 at 6:06 AM

file_411476.jpg

Let me explain...

The attached piccie shows the Preview material of a pair of shoes I have, part of the AO6 Hysteria set from Al3D. Instead of being a normal PoserSurface shader, it's a Light shader.

This causes a problem with a D3D Firefly Render script that I like to use. Looking at the code, I found that this script expects to find a Displacement node on every surface material, and it crashes when it gets to these shoes because a Light shader has no Displacement node.

I can't find any way to get rid of that Light shader and put a proper PoserSurface shader in its place. Does anyone know how to do this, please?

"If I were a shadow, I know I wouldn't like to be half of what I should be."
Mr Otsuka, the old black tomcat in Kafka on the Shore (Haruki Murakami)


ockham ( ) posted Sun, 10 August 2008 at 6:38 PM

You should probably ask D3D about this.... it's fairly easy to insert an
exception-catching line in a Python script, but I expect he has a good
reason for using displacement in each case.

My python page
My ShareCG freebies


IsaoShi ( ) posted Sun, 10 August 2008 at 7:00 PM · edited Sun, 10 August 2008 at 7:01 PM

Thanks David... yes, that's one way of looking at it. But I thought the problem was the wrong type of shader on the Preview material, rather than D3D's script.

"If I were a shadow, I know I wouldn't like to be half of what I should be."
Mr Otsuka, the old black tomcat in Kafka on the Shore (Haruki Murakami)


Dimension3D ( ) posted Mon, 11 August 2008 at 4:06 PM

As a workaround in the FireFly Render script, you can set the variable noTest to 1, then the material nodes are not tested for displacement maps. The script has no exception catching there, because I simply did not expect such a case.

To fix the material, edit the Poser file and just remove the whole shader tree from that preview material.


Dimension 3D - Poser Tools, Poser Props and Morphs, Cinema 4D Plugins, and more

Renderosity Store / D3D Web Site


Realmling ( ) posted Mon, 11 August 2008 at 4:27 PM

You can also delete the preview material completely from cr2 (or any file to tell the truth). Poser will re-create the preview zone when the item is loaded into the scene. And this should set it back to normal material zone parameters.

Crazy alien chick FTW! (yeah....right....)

Realm of Savage - Poser goodies and so much more!


~~


IsaoShi ( ) posted Mon, 11 August 2008 at 5:18 PM

Thank you for your help... the script is working with those shoes now, and I'll get round to fixing the cr2 later.

"If I were a shadow, I know I wouldn't like to be half of what I should be."
Mr Otsuka, the old black tomcat in Kafka on the Shore (Haruki Murakami)


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.