Notifications
Clear all

[Closed] Many instances with SDK

Hi,

Wondering if I will gain a lot of speed improvement when I want to instance many objects by using the SDK instead of maxscript?
I have a lot of maxscript experience but want to move to the SDK as well to be able to takle more serious tasks.

I want to instance objects at render time and if I do it through maxscript it slows down towards the end of instancing exponentially, not speaking of going beyond 10k objects.

Will I get better performance when I code it with the SDK?

Thanks,
Davy

3 Replies
 ulb

I am also just beginning to experiment with the sdk, and also willing to generate instances at rendertime. (must be a belgian thing :D)

My first experience is that if I add nodes to the scene, it takes almost the same time as in maxscript.

Basically what I want is to be able to render something without adding it directly to the scene.

Hopefully someone more experienced will be able to give us the right direction, or if I find anything I’ll tell you here.

if i remember correct…
when creating instances with sdk viewports are redrawn after creating an instance
so, crate 100 instances -> 100 redraws
use
GetCOREInterface()->DisableSceneRedraw();
GetCOREInterface()->EnableSceneRedraw();

might be same in MXS

guruware

…yes that’s not what will help for true performance.

The question is more if one can create instances at render time without having them actually in the scene so you can overcome max viewport issues?
So only the render engine will get them.

Just trying to get an idea of possibilities.

Davy

ps. Maybe it is a Belgium thing