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 11, 2x Intel I9, 64GB Ram, 2x GTX 1080 TI, 1 x RTX 380 TI, Oculus Quest 2
User avatar
MB
Licensed Customer
Licensed Customer
 
Posts: 168
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 8 guests

Thu Mar 28, 2024 10:27 am [ UTC ]