Measuring the surface area assigned to a given material type

Forums: Measuring the surface area assigned to a given material type
Forum for OctaneRender Lua scripting examples, discussion and support.

Measuring the surface area assigned to a given material type

Postby MB » Wed Dec 06, 2017 10:01 pm

MB Wed Dec 06, 2017 10:01 pm
We have a Lua script that helps move an Octane model into Unity with all its lights and materials in tact. I'm finding it very difficult to match the illumination levels found in Octane, inside Unity, since we are lighting the unity scene with emissive materials. The brightness in Unity is a function of the surface area of the material, I would thus like to control the brightness of the Unity emission material as a function of its surface area. I need to calculate this in Octane if possible and incorporate it into the data we are sending to Unity where the material is actually created.

Is there any way to measure in Octane how many square meters there is of a given material, our obj files are broken into layers by material if that helps. Or any other ideas on how to solve this problem would be very welcome.
Windows 7 Enterprise, 2x Intel Xeon X5650 2.66 GHz, 24GB Ram, GTX 590, Quadro 5000, Quadro K4200
User avatar
MB
Licensed Customer
Licensed Customer
 
Posts: 109
Joined: Tue Jan 15, 2013 3:41 am
Location: Washington, D.C.

Return to Lua Scripting


Who is online

Users browsing this forum: No registered users and 1 guest

Sun Dec 17, 2017 7:44 pm [ UTC ]