|
Sweet Home 3D Forum » List all forums » » Forum: Developers » » » Thread: Add another 3D model to an existing 3D model? » » » » Post: Re: Add another 3D model to an existing 3D model? |
Print at Dec 16, 2025, 2:34:12 PM |
| Posted by enkonyito at Sep 25, 2021, 4:39:10 AM |
|
Re: Add another 3D model to an existing 3D model? The setModel method requires a parameter of Content type, like URLContent class. The supported content are the ones cited in the furniture import wizard, i.e. OBJ, 3DS, DAE or a ZIP file containing a file at this format. I don’t see how you could add a second model with these restrictions, unless you generate a model file containing both models. Since it is possible to import an object into SH3D from a resource (com/eteks/sweethome3d/io/resources/lightSource.obj), how to use the URLContent class ? The goal would be to preload a scene with the model of a light and those of these sources before displaying them in the 3D preview. ---------------------------------------- EnkoNyito |
|
|
Current timezone is GMT Dec 16, 2025, 2:34:12 PM |