EMT_PARALLAX_MAP_SOLID setTextureScale Issue

If you are a new Irrlicht Engine user, and have a newbie-question, this is the forum for you. You may also post general programming questions here.
Post Reply
tombfan1996
Posts: 2
Joined: Mon Jul 31, 2023 8:23 pm

EMT_PARALLAX_MAP_SOLID setTextureScale Issue

Post by tombfan1996 »

Can only seem to get setTextureScale to work when the material type is EMT_SOLID, I have followed other forum posts which advise ETC_REPEAT on both TextureWrapU/TextureWrapV. If I change material type to EMT_PARALLAX_MAP_SOLID, I invoke setTextureScale, it does not scale the texture as per EMT_SOLID (have also tried other material types for diffuse/normal - still doesnt work). Why is this?
CuteAlien
Admin
Posts: 9643
Joined: Mon Mar 06, 2006 2:25 pm
Location: Tübingen, Germany
Contact:

Re: EMT_PARALLAX_MAP_SOLID setTextureScale Issue

Post by CuteAlien »

As far as I can read that shader it ignores texture matrices. Nothing really you can do except rewriting the shader.
Reason other material works is that it's using fixed function pipeline which supports that.
IRC: #irrlicht on irc.libera.chat
Code snippet repository: https://github.com/mzeilfelder/irr-playground-micha
Free racer made with Irrlicht: http://www.irrgheist.com/hcraftsource.htm
tombfan1996
Posts: 2
Joined: Mon Jul 31, 2023 8:23 pm

Re: EMT_PARALLAX_MAP_SOLID setTextureScale Issue

Post by tombfan1996 »

Ok, thank you for your response.
Post Reply