v0.6: addTerrainMesh Iimage displayed reverse

You discovered a bug in the engine, and you are sure that it is not a problem of your code? Just post it in here. Please read the bug posting guidelines first.
Post Reply
knightoflight
Posts: 199
Joined: Sun Aug 24, 2003 5:47 pm
Location: Germany

v0.6: addTerrainMesh Iimage displayed reverse

Post by knightoflight »

maybe im wrong, but it seems that
irr::scene::ISceneManager::addTerrainMesh displays the IImage as texture reverse, is it a bug ?
niko
Site Admin
Posts: 1759
Joined: Fri Aug 22, 2003 4:44 am
Location: Vienna, Austria
Contact:

Post by niko »

Really? Did not notice it. You could scale your terrain with a negative value and disable backfaceculling to temporarily fix this.
knightoflight
Posts: 199
Joined: Sun Aug 24, 2003 5:47 pm
Location: Germany

Post by knightoflight »

Sir, yes Sir ;-)
it works as workaround, thanks
robmar
Posts: 1125
Joined: Sun Aug 14, 2011 11:30 pm

Re: v0.6: addTerrainMesh Iimage displayed reverse

Post by robmar »

Is this still not fixed, or has it become a feature?
hybrid
Admin
Posts: 14143
Joined: Wed Apr 19, 2006 9:20 pm
Location: Oldenburg(Oldb), Germany
Contact:

Re: v0.6: addTerrainMesh Iimage displayed reverse

Post by hybrid »

Not sure about terrainmesh, we only fixed terrainscenenode IIRC. What is the problem with terrain mesh exactly? Screenshot, demo?
robmar
Posts: 1125
Joined: Sun Aug 14, 2011 11:30 pm

Re: v0.6: addTerrainMesh Iimage displayed reverse

Post by robmar »

The loaded images, heightmap and texture are flipped horizontally 180 degrees. I only noticed when I loaded a real-world map. Its a sort of strange "bug" to have all these years...!!?
hybrid
Admin
Posts: 14143
Joined: Wed Apr 19, 2006 9:20 pm
Location: Oldenburg(Oldb), Germany
Contact:

Re: v0.6: addTerrainMesh Iimage displayed reverse

Post by hybrid »

No, not really. I mean, even after you've described this problem it's still not clear. And furthermore it's a question whether it's really a problem, or if you just have to rotate your terrain?!
robmar
Posts: 1125
Joined: Sun Aug 14, 2011 11:30 pm

Re: v0.6: addTerrainMesh Iimage displayed reverse

Post by robmar »

Not clear that the image is east facing west? i.e. flipped?

And yes, rotate and enable backface culling otherwise it could be invible when rotated... anyway, its a bit of a bodge to have to do that.

Or use PhotoShop etc to flip-horizontal the images... :)
Post Reply