Backwards bitmaps

You are an experienced programmer and have a problem with the engine, shaders, or advanced effects? Here you'll get answers.
No questions about C++ programming or topics which are answered in the tutorials!
Post Reply
saigumi
Posts: 921
Joined: Fri Aug 22, 2003 11:31 am
Location: St. Louis, MO USA
Contact:

Backwards bitmaps

Post by saigumi »

Well, I finally used a texture that wasn't symmetrical and found an interesting problem.

The bitmap is backwards.

When I create the model in Milkshape, we set the location of the texture which is a png at the time.

When I load the mesh, I call the setMaterialTexture to apply the bitmap, but it's backwards.

Has anyone else seen this?
Crud, how do I do this again?
niko
Site Admin
Posts: 1759
Joined: Fri Aug 22, 2003 4:44 am
Location: Vienna, Austria
Contact:

Post by niko »

Someone posted this problem, but we did not find any solution to this. It seems that some textures are right, but some are not... *helpless*
saigumi
Posts: 921
Joined: Fri Aug 22, 2003 11:31 am
Location: St. Louis, MO USA
Contact:

Post by saigumi »

I'm wondering if it's due to the way Milkshape handles textures and how those textures are stored.

I haven't looked into how PNGs are stored, but I'm wondering if the texture X coordinates are stored for a PNG, and when it's loaded into Irrlicht, it's sets up the coordinates for a PNG, but I go and toss in a BMP instead.

That may also be a clue as to why Milkshape blows when I try to switch my PNG out for a BMP after generating the model....

Will try it out when I get home.
Crud, how do I do this again?
Post Reply