[Solved] Textures are reversed in Sample UpdatingDecalsAndAreaLightTex Topic is solved

Discussion area about developing with Ogre-Next (2.1, 2.2 and beyond)


knn217
Halfling
Posts: 78
Joined: Wed Jan 25, 2023 9:04 am
x 5

[Solved] Textures are reversed in Sample UpdatingDecalsAndAreaLightTex

Post by knn217 »

Hello, I followed the sample: UpdatingDecalsAndAreaLightTex for my implementation
After changing the texture file to "10points.png", I realized the texture is reversed in the sample.
How do I reverse the texture?

Last edited by knn217 on Sat Jul 08, 2023 3:05 pm, edited 1 time in total.
User avatar
dark_sylinc
OGRE Team Member
OGRE Team Member
Posts: 5476
Joined: Sat Jul 21, 2007 4:55 pm
Location: Buenos Aires, Argentina
x 1358

Re: Textures are reversed in Sample UpdatingDecalsAndAreaLightTex

Post by dark_sylinc »

Interesting that no one reported this bug earlier (we have at least 1 user thoroughly using this feature).

Fixed.

knn217
Halfling
Posts: 78
Joined: Wed Jan 25, 2023 9:04 am
x 5

Re: Textures are reversed in Sample UpdatingDecalsAndAreaLightTex

Post by knn217 »

Thanks for the reply and the fix, I didn't know this was a bug.

I thought it can be changed in the createplane constructor somewhere like the upVector since it's more convenient.

So if I want a reversed texture, do I just create a reversed texture file like "10points_reversed.png" or something?

knn217
Halfling
Posts: 78
Joined: Wed Jan 25, 2023 9:04 am
x 5

Re: Textures are reversed in Sample UpdatingDecalsAndAreaLightTex

Post by knn217 »

OH wait, I figured it out!
To get reversed texture, I need to reverse the Light's direction
Thanks for the fix tho