Compressed texture modification

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!

Compressed texture modification

Postby 3DModelerMan » Mon Nov 21, 2011 10:20 pm

I'm working on a compressed texture patch. It's my first time trying to make a change to the engine, so I'm still trying to find my way around in their. I'm trying to get it to work when generating mip-maps, but it crashes somewhere in Copy32BitMipMap. Here's the patch file: http://www.mediafire.com/?wzu3ocwv8mst628
Would someone mind taking a look and telling me what I'm doing wrong?
That would be illogical captain...

My first full game:
http://www.kongregate.com/games/3DModelerMan/replicator#tipjar
User avatar
3DModelerMan
 
Posts: 1691
Joined: Sun May 18, 2008 9:42 pm

Re: Compressed texture modification

Postby REDDemon » Thu Nov 24, 2011 6:35 am

There are problems related to the texture size. Have you tried to do a step by step debugging inside that function to find out where exactly it crashes? Be carefull with aotomatic mipmap generation in compressed textures where there is extra padding when downsampling textures. Have you tried by manually setting up custom mipmap levels?
OpenGL is not hard. What you have to do is just explained in specifications. What is hard is dealing with poor OpenGL implementations.
User avatar
REDDemon
 
Posts: 831
Joined: Tue Aug 31, 2010 8:06 pm
Location: Genova (Italy)


Return to Advanced Help

Who is online

Users browsing this forum: Ovan and 1 guest