Page 1 of 1

Mirror texture is rendered with distortions.

Posted: Wed Mar 02, 2022 11:29 pm
by Andrey01
I am trying to render a round-shaped mirror with using a mesh made in Blender as a geometry. However, the mirror render its image askew. I created two materials in Blender, the first is assigned to the mirror frame, the second is directly to the mirror glass surface and set two textures for each of those materials. That's how it looks like in the program:

Image

But if I create the irrlicht cube scene node, it renders its mirror image fine without those visual distortions:

Image

It uses the only material with the only texture - render target.

Does anybody have ideas why in the first case does the mirror image render itself so skew, but in the second one does it render fine?

Re: Mirror texture is rendered with distortions.

Posted: Wed Mar 02, 2022 11:47 pm
by CuteAlien
What do the uv's of the mirror look like in Blender? Did you try putting a texture on it inside Blender?

Re: Mirror texture is rendered with distortions.

Posted: Wed Mar 02, 2022 11:56 pm
by Andrey01
I tried now and the texture of wood that I laid on the mirror frame, in Blender looks like also skew:
Image

How the texture looks like actually:
Image

Re: Mirror texture is rendered with distortions.

Posted: Thu Mar 03, 2022 10:41 am
by CuteAlien
So needs other uv mapping. In Blender go to UV Editing - then do UV - unwrap. Try the options there which works best

Re: Mirror texture is rendered with distortions.

Posted: Sat Mar 05, 2022 11:25 am
by Andrey01
Thanks! I noticed the UV of the mirror surface was squashed into a line and I fixed that by just adding seams in necessary places and re-unwrapping it.