Forum: Poser - OFFICIAL


Subject: The LuxPose Project - Alpha Stage

Khai-J-Bach opened this issue on Aug 27, 2010 · 1684 posts


Latexluv posted Fri, 08 October 2010 at 3:16 PM

Quote -

Quote -
If you mean attaching a refract node to the Poser surface and it translates into Lux as glass....it's not working at all. Had to hand edit the material file.

For me the material above computes to the following Lux file (important parts only):

#----->   luxball_new_1/material:glass    <-----

MakeNamedMaterial "luxball_new_1/material:glass" "string type" ["glass"]

"string Kr" ["0.024222943199534778, 1.0, 0.22331043694287706"]

"color Kt" [0.215686276555 0.54509806633 1.0]

"float index" [1.5]

"float cauchyb" [0.20000000298]

"float filmindex" [0.850000023842]

######################

#----->   luxball_new_1/material:glass_1    <-----

MakeNamedMaterial "luxball_new_1/material:glass_1" "string type" ["glossy"]

"color Kd" [0.139313726983 0.139313726983 0.139313726983]

"color Ks" [0.0172058831287 0.0172058831287 0.0172058831287]

"float uroughness" [0.32760295434]

"float vroughness" [0.32760295434]

######################

#----->   luxball_new_1/material    <-----

MakeNamedMaterial "luxball_new_1/material" "string type" ["mix"]

"string namedmaterial1" ["luxball_new_1/material:glass"]

"string namedmaterial2" ["luxball_new_1/material:glass_1"]

"float amount" [0.0]

 

As you can see, the "mix amount" is 0, because Refraction_Value is 1. So the glossy part is ignored.

The colors defined in Poser are assigned to the glass material as follows:

Poser Refraction_Color -> glass Kr
Poser Refraction Node Background -> glass Kt 
Poser Refraction Node Index_of_Refraction -> glass index
Poser Refraction Node Quality -> glass couchyB
Poser Refraction Node Softness -> glass film
Poser Refraction Node Raybias -> glass filmindex

I tried it again using the setting you posted on my test orb (BB's orb object).  I exported using the script you posted as Alpha 1-42.  I opened the material file in a text editor and I do not get the settings you show.

This is what exported:

#----->   Orb_1/Preview    <-----

MakeNamedMaterial "Orb_1/Preview" "string type" ["glossy"]
"color Kd" [0.177745096587 0.177745096587 0.177745096587]
"color Ks" [0.016323530205 0.016323530205 0.016323530205]
"float uroughness" [0.32760295434]
"float vroughness" [0.32760295434]

I do not know what I am not doing correctly. Manually changing the word 'glossy' to 'glass' in the text editor is making it render as glass.

"A lonely climber walks a tightrope to where dreams are born and never die!" - Billy Thorpe, song: Edge of Madness, album: East of Eden's Gate

Weapons of choice:

Poser Pro 2012, SR2, Paintshop Pro 8