Print at Dec 19, 2025, 3:25:21 PM

Posted by Puybaret at May 4, 2010, 8:30:20 AM
Re: Different '3D view' rendering qualities to accommodate different...
You would be astonished to know that 2 additional 3D drawing modes are already available in internal parameters of Sweet Home 3D. See the two following pictures of the same home as the one beside Sweet Home 3D logo.
Outline (wireframe) mode:


Fill and outline mode:


I never made them available in the user interface because I don't believe it's so useful.
I'm not against adding an option in the dialog used to modify the 3D view, but I don't have the means to test whether it will run better on each graphics card available out there. confused

If ever you're able to compile Sweet Home 3D sources, you can test these two modes quite easily by making the following changes in source code:
In the createObject3D method of HomeComponent3D class, replace the instantiation of HomePieceOfFurniture and Wall3D:

if (homeObject instanceof HomePieceOfFurniture) {
return new HomePieceOfFurniture3D((HomePieceOfFurniture)homeObject, this.home, true, waitForLoading);
} else if (homeObject instanceof Wall) {
return new Wall3D((Wall)homeObject, this.home, true, waitForLoading);
}

by:

if (homeObject instanceof HomePieceOfFurniture) {
return new HomePieceOfFurniture3D((HomePieceOfFurniture)homeObject, this.home, false, waitForLoading);
} else if (homeObject instanceof Wall) {
return new Wall3D((Wall)homeObject, this.home, false, waitForLoading);
}


At the end of the readObject method of HomeEnvironment class, add one of the following calls:

this.drawingMode = DrawingMode.OUTLINE;

or :

this.drawingMode = DrawingMode.FILL_AND_OUTLINE;


That's all! smile
----------------------------------------
Emmanuel Puybaret, Sweet Home 3D creator