Print at Dec 21, 2025, 6:56:22 PM

Posted by okh at Nov 26, 2013, 9:10:39 AM
Re: How to import model of a cabinet with transparent glass panel?
Good that transparency is solved, although I suspect you may do this from Art of Illusion somehow too. I had a quick look and noticed a number of material controls that might help.

As for the image file, you can add the texture from SH3d too. If you IMPORT the .obj (+.mtl) in SH3d, ADD TEXTURE with SH3d (edit furniture), SELECT your model and EXPORT (3d view menu) selected item to OBJ format. That should produce .obj file, .mtl file and one image file for each texture. These can be imported to the Furniture Library Editor. (I prefer zipping all files before import.)

If you want to play with the .obj/.mtl files, the simple explanation is that the image should be linked from the .mtl file, for instance like this.

newmtl Birch
Kd 0.94838 0.90947 0.85077
Ks 0 0 0
Ka 0 0 0
illum 1
map_Kd birch_test.png


The image file name could be anything as long as it is the same as what is stated in map_Kd and the file could be .png, .jpg, .gif (avoid spaces and special characters in the file name). (The material itself could also be transparent/semi-transparent .png/.gif, but then the rendering issues in SH3d are a touch more complicated).

The former method gives you the advantage more control over the scaling of your texture, but neither method gives you the same kind of control over placement of complex textures as you should get with Art of Illusion.

Your model looks very nice. I hope you eventually share it. Good luck.

ok

PS Other general notes.

  • Some editing of the image file is not a bad idea. You usually get good results with scaled down, smaller image files. And you will not bloat your designs.
  • From another thread I noticed that is possible that the developers (Puybaret) will add transparency to future releases of SH3d colour dialogue.
  • What you cannot do with the .obj/.mtl file (to my knowledge) is adding a light source under or inside your cabinet. BUT you can add it later in SH3d (or even add it in the FurnitureLibrary properties, but that is a whole different story.... :-)