Proxy object

Discussion related to the LuxCore functionality, implementations and API.
Post Reply
User avatar
TAO
Developer
Developer
Posts: 851
Joined: Sun Mar 24, 2019 4:49 pm
Location: France
Contact:

Proxy object

Post by TAO »

Recently I start to work on a huge scene and even with instancing the scene is still huge to handle so like in the old days I just looked for any type of proxy object to save my models as static meshes and reuse them. I can not find anything about that in the manual of the developer documentation.
Can you point me in a current direction? so I'll be able to implement it to MaxToLux.
User avatar
Dade
Developer
Developer
Posts: 5672
Joined: Mon Dec 04, 2017 8:36 pm
Location: Italy

Re: Proxy object

Post by Dade »

I'm not totally sure what you are looking for but I assume it is up to the exporter to feed LuxCore with the "proxy" object instead of the original one :?:
Support LuxCoreRender project with salts and bounties
User avatar
TAO
Developer
Developer
Posts: 851
Joined: Sun Mar 24, 2019 4:49 pm
Location: France
Contact:

Re: Proxy object

Post by TAO »

So I need to create a proxy object based on ply format that already exists in luxcore and use it externally just in render time and show a point cloud or any other type of geometry-shape in viewport instead.
Base on this In LuxCore, proxies do not improve rendering time or quality in any way and actually, all scene objects would be converted to proxies internally, right before the rendering starts.
marcatore
Donor
Donor
Posts: 463
Joined: Wed Jan 10, 2018 8:04 am

Re: Proxy object

Post by marcatore »

User avatar
B.Y.O.B.
Developer
Developer
Posts: 4146
Joined: Mon Dec 04, 2017 10:08 pm
Location: Germany
Contact:

Re: Proxy object

Post by B.Y.O.B. »

A basic proxy system can be implemented in an exporter. Export the mesh to disk as .ply and replace it with a simplified version in the 3d program. Then on export time, don't convert the simplified mesh, but load the .ply from disk instead.

However, VRay proxies are more advanced as far as I know, for example they are streamed in/out of RAM at rendertime as needed, which can save a lot more RAM than the basic method above. But such a system would need to be added directly in LuxCore.
User avatar
TAO
Developer
Developer
Posts: 851
Joined: Sun Mar 24, 2019 4:49 pm
Location: France
Contact:

Re: Proxy object

Post by TAO »

B.Y.O.B. wrote: Fri Dec 10, 2021 11:01 pm A basic proxy system can be implemented in an exporter. Export the mesh to disk as .ply and replace it with a simplified version in the 3d program. Then on export time, don't convert the simplified mesh, but load the .ply from disk instead.

However, VRay proxies are more advanced as far as I know, for example they are streamed in/out of RAM at rendertime as needed, which can save a lot more RAM than the basic method above. But such a system would need to be added directly in LuxCore.
I'll try it as you and dade mention, it is more like the Corona proxy mesh system not helping the quality or speed or even memory usage on render time but can help with handling more objects in viewport also use less memory before exporting objects to the renderer. Vray is more advanced as you said. by the way, smaller viewport memory usage gave me more ram to work at the render time, not the best option but it is still really helpful with huge scenes.
Post Reply