Ambiera Forum

Discussions, Help and Support.

Ambiera Forum > CopperCube > Feature requests and bug reports
How to fix reflection glitch please?

veganpete
Registered User
Quote
2021-07-04 18:45:41

Hi all,

anyone know how to stop this from happening please?...

🔎︎


Sometimes when the camera moves around the object, the texture seems to invert sharply. Other times, it's perfectly smooth.
I can't figure out what's causing it.

I've tried different png/jpg combinations and different irrlicht settings. All textures are seamless/tileable but the glitch happens with fake-reflective surfaces -both in-game and in-editor.

Thanks!


VP
Guest
Quote
2021-07-05 03:13:02

OK, I managed to fix it by copying the same textures and renaming them (eg: texture.jpeg, texture-copy1.jpeg, texture -copy2.jpeg etc).

By using different textures for each model, it doesn't glitch. Obviously duplicating textures in this way will increase the games filesize slightly.


DouweDabbe
Guest
Quote
2021-07-05 04:41:33

looks also lot like double skin


just_in_case
Moderator
Quote
2021-07-05 07:56:32

strange seems like there is something wrong with the texture filtering or soemthing else, also did you tried using any different type of reflection map channel from irredit/irrlicht properties?


VP
Guest
Quote
2021-07-05 12:29:30

Thanks both!

I had a play around with the irrlight settings and noticed that Sphere mapped works really well with a single texture. Not exactly the effect I was looking for but a good alternative to using 2 textures in solid fake reflection.

Now I have a decent metal effect without glitches, I guess I can clone the same model and scale it very slightly larger than the first. Then I can apply a transparent texture (over the top of the sphere mapped model) to produce a rust, stained effect for the pristine metal underneath.


VP
Guest
Quote
2021-07-05 13:38:29

:(

Ah, I spoke too soon. Sphere map also glitches in-game - looks like exactly the same problem. Maybe it's juts a coppercube limitation with textures. No big deal really.


VP
Guest
Quote
2021-07-13 14:50:38

OK, after a lot of trial and error, I finally figured out what's causing it. Not sure if it's an actual bug or if it's just a software limitation.

My scene has some models which are normal mapped (and light mapped) - a directional light and some static lights. I read that this is a known problem which affects fog rendering - but I think this is also what's causing jpeg fake reflection materials to glitch on the other models.

Also, transparent png's are not being drawn properly either - they are invisible but pop into view when the camera is in a certain position - and solid png textures are being displayed as a neon pinky/purple when I use moved by wind - they occasionally pop back to normal when as camera moves around.

Pretty sure they're all related problems - something to do with lighting conflicts - seems best to have only dynamic or only lightmapped models in a scene - not a mixture of both - or possibly even something to do with light-mapping resolution.

I'll keep trying to find a fix.


just_in_case
Moderator
Quote
2021-07-13 18:44:49

You can try playing with Param 1 and Param 2 of irredit/irrlicht properties, they are free parameters and work differently for different material types. I suggest you use a value of 0.5 of the objects moved by wind, which is the same as no alpha blending (render order independent). You can either set your transparent texture with no alpha blending or can use 0.5 as Param 1 value.
if you think it is related to fog then you can also try turning Fog enable or fog disable in irredit/irrlicht properties for that material.
hope that helps.


VP
Guest
Quote
2021-07-13 21:15:25

Thank you just_in_case , yes definitely something for me to try.

I'll have a play around with the param 1 and 2 settings; even if I can't get it perfect, I'm fairly happy with it now.

Really appreciate the help.


Create reply:


Posted by: (you are not logged in)


Enter the missing letter in: "Inter?ational" (you are not logged in)


Text:

 

  

Possible Codes


Feature Code
Link [url] www.example.com [/url]
Bold [b]bold text[/b]
Image [img]http://www.example.com/image.jpg[/img]
Quote [quote]quoted text[/quote]
Code [code]source code[/code]

Emoticons


   






Copyright© Ambiera e.U. all rights reserved.
Privacy Policy | Terms and Conditions | Imprint | Contact