Print at Dec 19, 2025, 1:17:17 PM

Posted by ziolink32 at Feb 19, 2017, 9:56:04 AM
Re: Different '3D view' rendering qualities to accommodate different...
Hello,
I'm trying to develop a plugin to switch from one drawing mode to the other. The reason is that my pc is not so powerful, and the full 3d view is very laggy on my hardware, thus the wireframe mode will let me quickly build the whole floor, and then switch to the full 3d view to check the result.
I managed to dynamically change the drawingMode property in the HomeEnvironment class, but the walls and furniture instantiation seems to be hardcoded to ignore the drawing mode.
In the 5.3 version I found the 3d objects creation in the Object3DBranchFactory class:


[...]
if (item instanceof HomePieceOfFurniture) {
return new HomePieceOfFurniture3D((HomePieceOfFurniture)item, home, true, waitForLoading);
} else if (item instanceof Wall) {
return new Wall3D((Wall)item, home, true, waitForLoading);
[...]


So, is it possible to do this without rebuilding the whole project?
Maybe by cyclying through all the objects and somehow regenerating them?

Thanks