Print at Jan 26, 2026, 5:29:34 PM
Posted by GaudiGalopin3324 at Feb 11, 2024, 2:33:39 PM
confused   How to make a mirror ball?
I want to get it, not just a shiny ceramic one, but a mirror ball, like polished metal, with reflections like in a curved mirror. I transferred the entire MTL file of the mirror to the MTL file of the vase. Nothing is working out. It turns out just ceramics with highlights. What needs to be done? Maybe this is impossible in principle? Is the mirror in SH3d only on straight surfaces?


Posted by Keet at Feb 11, 2024, 3:04:37 PM
Re: How to make a mirror ball?
Did you try the sweethome3d_window_mirror_ prefix I mentioned in your other post? As stated there you should put it in the OBJ file, not the MTL file:
g sweethome3d_window_mirror_myvase_1
v ...

----------------------------------------
Dodecagon.nl
1300+ 3D models, manuals, and projects

Posted by Keet at Feb 11, 2024, 3:34:36 PM
Re: How to make a mirror ball?
Try it with this MTL:

newmtl Vase
illum 1
Ka 0.2 0.2 0.2
Kd 1.0 1.0 1.0
Ks 0.0078125 0.0078125 0.0078125
Ns 1.0
map_Kd mirror.jpeg

where mirror.jpeg is the same image as the Sweet Home 3D mirror. (I don't think the image makes any difference for the photo rendering.)
The Ns value can go up to 1000 so a little more shininess might enhance the view.

The OBJ file g group should start like I said before:
g sweethome3d_window_mirror_vase_1
usemtl Vase
v ...
...


You might try it without a texture image and just use a color, then experiment with the Kd and Ks values.

Edit 2:
I found a note I had that this might work better:
Set ambient and diffuse to black (Ka 0 0 0 , Kd 0 0 0) and specular to white (Ks 1 1 1).
Then increase the shininess by experimenting, maybe around 100.
This is of course without a texture image.
----------------------------------------
Dodecagon.nl
1300+ 3D models, manuals, and projects

Posted by GaudiGalopin3324 at Feb 11, 2024, 4:03:14 PM
applause   Re: How to make a mirror ball?
Dear Keet, Everything is just perfect! Everything is working out!! I am now figuring out (trying))) how to use the mirror effect on the glass so that the background shines through a little while it turns out a dull polished metal. R.S. I already injured my finger while I was turning the mouse wheel in search of this distant group))) number 6. But your advice was worth it))

Posted by captaincook at Feb 11, 2024, 5:31:10 PM
Re: How to make a mirror ball?
Toujours d'excellents conseils de Keet.

Je me suis amusé aussi à créer une sphère miroir et ça marche super.



Posted by GaudiGalopin3324 at Feb 11, 2024, 6:22:22 PM
Re: How to make a mirror ball?
Interesting job! Does your mirror sphere let light through itself? Or is it the backlight panel on the grass? I am currently trying to make a translucent mirror surface and it is not working yet..

Posted by captaincook at Feb 11, 2024, 7:44:37 PM
Re: How to make a mirror ball?
Non, la sphère miroir ne laisse pas passer la lumière.
La lumière visible sur l'herbe est simplement un panneau lumineux non visualisable pour améliorer l'éclairage de la scène.

Posted by Keet at Feb 11, 2024, 8:48:51 PM
Re: How to make a mirror ball?
@GaudiGalopin3324
@captaincook
The two of you created mirrored spheres independent of each other. Now I'm interested in the MTL files you both used for the spheres. I think other users could use that too.
Those spheres look great!
----------------------------------------
Dodecagon.nl
1300+ 3D models, manuals, and projects

Posted by GaudiGalopin3324 at Feb 11, 2024, 9:34:24 PM
rose   Re: How to make a mirror ball?
I can only give my file to study, there are an insane number of trial versions, more than 50 pieces with different parameters. I have highlighted two more or less decent ones with the word "Perfect" so as not to look for the right ones. It's a glass vase and a mirrored one. My opinion is that MTL files are almost all on the same person, but the "d" parameter has a high value, I preferred to set 0.1-0.2, and the optical density coefficient is important, the feeling of a "glass lens" strongly depends on it. Otherwise, it all depends on the brilliance in the final settings of the groups in the program itself, not in MTL. And I also noticed a strange effect of a strong glow when assigning any texture (not color) to the glass. Just a dazzling snow-white lamp. The color of the texture does not matter at all - in the end, a dazzling white ball and that's it. This is because I placed a very powerful light source inside the vase - a 50% flashlight. It also highlights the texture of the vase. In the version with a mirrored vase, the flashlight does not break out in any way, but highlights the base of the leaves through the throat of the vase.


the file is here https://www.mediafire.com/file/p9e0hpk4wyx9sq...%25B8%25D1%258F.sh3d/file

Posted by Keet at Feb 11, 2024, 10:30:06 PM
Re: How to make a mirror ball?
Did you notice the mirror-in-mirror effect that you achieved?
That's a problem that many 3D creators have huge problems with and you displayed a great example here. You can find many discussions about it on the internet.
I like the rabbit and the sneaky fox :)
----------------------------------------
Dodecagon.nl
1300+ 3D models, manuals, and projects

Posted by GaudiGalopin3324 at Feb 11, 2024, 11:00:12 PM
Re: How to make a mirror ball?
I sometimes feel that reflections in mirrors are not quite natural and are often strangely miscalculated. But in the case of mirror balls, I have no confidence that there is a lie with reflections. Everything is very difficult and therefore convincingly real))). I used to ask a question on this forum about endless reflections in the "mirror corridor", the program has restrictions on this in two cycles, then a black square appears instead of the next reflection. This is done to save processor effort (?) when calculating. In my example with balls, there seem to be no black squares, probably no endless reflections (or the processor is not tired yet))). I want to try to work with translucent textures in my free time - I need to understand the possibilities of light transmission of mirror surface parameters. This is necessary for the backlight to work inside the form. And for example, for realism with the focus of the rays on the surface of the table. It's still black under the vases, if it's a mirror setting, it's wrong. I wanted to get a semi-transparent mirror, while it turns out to be deaf.

Posted by captaincook at Feb 12, 2024, 10:13:46 AM
Re: How to make a mirror ball?
Bonjour.

Pour répondre à la question de Keet concernant les fichiers MTL utilisés pour créer mon miroir sphérique, j'ai d'abord utilisé le MTL du miroir de base (un simple rectangle).

"#
# Generated by Sweet Home 3D - lun. févr. 12 10:02:00 CET 2024
# http://www.sweethome3d.com/
#

newmtl sweethome3d_window_mirror_1
illum 2
Ka 0.2 0.2 0.2
Kd 1.0 1.0 1.0
Ks 0.5 0.5 0.5
Ns 96.07843
Ni 1.0
map_Kd Miroir_sweethome3d_window_mirror_1.jpeg"

Puis celui de la sphère de base (une simple boule opaque).

"#
# Generated by Sweet Home 3D - dim. févr. 11 23:27:31 CET 2024
# http://www.sweethome3d.com/
#

newmtl default
illum 2
Ka 0.4 0.4 0.4
Kd 0.7102 0.702 0.6531
Ks 0.3 0.3 0.3
Ns 128.0 "

Et enfin celui du miroir sphérique :

" #
# Generated by Sweet Home 3D - dim. févr. 11 23:25:20 CET 2024
# http://www.sweethome3d.com/
#

newmtl sweethome3d_window_mirror_1
illum 2
Ka 0.2 0.2 0.2
Kd 1.0 1.0 1.0
Ks 0.5 0.5 0.5
Ns 96.07843
Ni 1.0 "

Je n'ai pas repris la texture d'origine du miroir.

Et pour info le début du fichier .OBJ correspondant.

"#
# Generated by Sweet Home 3D - dim. f?vr. 11 23:25:20 CET 2024
# http://www.sweethome3d.com/
#
mtllib materials.mtl
g sweethome3d_window_mirror_1_1_1_1_1
usemtl sweethome3d_window_mirror_1
v 834.0 100.0 316.00018
v 848.4201 100.72226 313.13174
........."

Posted by GaudiGalopin3324 at Feb 12, 2024, 10:26:11 AM
Re: How to make a mirror ball?
I assume that for a mirror sphere, it does not matter what value the Ns and Ni parameters are, they only work for a transparent sphere with parameter d. The mirror wins everything. There must be some other factors that can change the rendering, not the parameters in MTL.

Posted by Keet at Feb 12, 2024, 11:44:58 AM
Re: How to make a mirror ball?
Thank you @captaincook. Very clear information and understandable for users not yet familiar with the intricacies of obj/mtl files.
(Merci @captaincook. Des informations très claires et compréhensibles pour les utilisateurs qui ne sont pas encore familiarisés avec les subtilités des fichiers obj/mtl.)

Here's a MirrorShpere for other users to download.

@Andrei Maybe the Ni and Ns don't make a difference. At least the Ni shouldn't without transparency. Did you try different values that didn't appear to make a difference?
I think the most important part is the sweethome3d_window_mirror prefix in the OBJ file. That might overrule some values in the MTL file for the photo renderer.
----------------------------------------
Dodecagon.nl
1300+ 3D models, manuals, and projects

Posted by GaudiGalopin3324 at Feb 12, 2024, 12:16:23 PM
Re: How to make a mirror ball?
Yes, I made several attempts with the mirrored surface of the vase and stopped. The result was the same every time. I will try other experiments, report success or loss)). My research based on the transparent sphere also cannot be nominated for the Nobel prize, the work from "d" and from "Ni" is visible, even the maximum Ns did not stand out in any way, let alone the average values. I tried the boundary values of "d" - every other time a vase appeared on the render, then disappeared completely, depending on the lightness of the color or texture. Dark shades at the value boundary (0.05 or 0.9995) behave unstable on the render, light shades are more stable. That's all I've understood so far)). We should try with translucent textures, I suspect there are prospects there.

Posted by GaudiGalopin3324 at Feb 12, 2024, 12:26:04 PM
smile   Re: How to make a mirror ball?
even for a transparent vase, the glass material with the parameter "d" 0.1-0.2 looks more spectacular and elegant, not as is customary for glass 0.4-0.5. With a small number, a more clarified glass is obtained, it is more expensive than usual on sale)). And with average values, it is impossible to obtain glass of very light shades, but glass of dark shades (graphite or bronze) is obtained. Therefore, you can change the "d" for the tasks of the model.

Posted by Markdorney at Oct 31, 2024, 12:13:48 PM
Re: How to make a mirror ball?
Hi Keet,

Do you have an up to date link fo the mirror sphere/mirror ball - i'm in need of a disco ball, the link on the thread is giving me an error 404.

Thanks :)