Go to bottom

problems loading textures

category: general [glöplog]
i have a problem loading more than 11 textures with tgaload. When the program launches, i have a windows error.

can someone help me solve this problem?

here is where you can find the source:

-using vc++,opengl under windows.
-the comments are in french
added on the 2004-06-13 18:24:21 by Tomza Tomza
#define MAX_NO_TEXTURES 11
in seawars.h

What about increasing this value? :)
added on the 2004-06-13 19:10:15 by keops keops
Keops, are you kidding? Do you REALLY think people in need of a TGA loader library would bother looking inside it? Come on.

No, I'm not cynic. I just stopped overestimating people.
added on the 2004-06-13 19:13:55 by kb_ kb_
kb: of course they would (not) :)
added on the 2004-06-13 19:19:38 by keops keops
added on the 2004-06-13 19:20:19 by apricot apricot
put 4 small textures into one larger and adjust texture coordinates. now u can use 44 textures!!!!!
hey, and if you crunch 8 small into one large tex u may use up to 88.
added on the 2004-06-13 20:27:28 by ttl ttl
(hm, tho 8 wouldnt be a good number for square textures :) )
added on the 2004-06-13 20:37:24 by ttl ttl
c'mon.. everybody started somewhere.
added on the 2004-06-14 00:18:47 by Bagpuss Bagpuss
Thanks a lot ttl :)
It works well!
but the bug was the fact that my picture was compressed and i was using TGA_FREE............

but I really like the way you think!

thanks again!
added on the 2004-06-14 00:58:36 by Tomza Tomza
*giggle* "i like the way you think.." *bwahaa*
added on the 2004-06-14 07:16:54 by gloom gloom
I wonder what he changed the value to
12, possibly 13.
added on the 2004-06-14 10:59:41 by sagacity sagacity
or maybe 10, to make it more challenging...
added on the 2004-06-14 11:20:39 by uncle-x uncle-x
11.5 could suffice
added on the 2004-06-14 12:26:53 by keops keops
Good that nobody mentioned the term "linked list" so far. On the other hand I'd like the pouet top page to list BBS threads like
  • How do I insert an element?
  • Problems using "new"
  • Pointers are overrated
  • I hate memory leaks!
  • What does "class" do?
  • The STL - good or evil?
  • What was your first variable name?

added on the 2004-06-14 12:27:58 by kb_ kb_
kb : yeah :))) and "fix me beautiful - 2" thread where everybody post their sources and ps fixes every bug :))))))))))))))
added on the 2004-06-14 13:04:23 by apricot apricot
I want generics in C# already :-(
added on the 2004-06-14 13:09:31 by Jcl Jcl
for most people on pouet I would rather suggest threads like

  • How do I insert a penis?
  • Problems using "toothbrush"
  • Clothes are overrated
  • I hate leaking acne!
  • What does so-called "life" do? (And where do I get it?)
  • The GIRLS - good or evil?
  • What was your first hentai movie?
added on the 2004-06-14 13:20:15 by Spin Spin
added on the 2004-06-14 13:41:48 by apricot apricot
I remember to have written a TGA loader/writer by myself some day... perfect workaround to avoid things like limited # of textures, french comments and other things that might hold you back from finalizing a program.
added on the 2004-06-14 16:25:35 by styx^hcr styx^hcr
To sum stuff up kb:
name a vector arne, with the type mojs.
added on the 2004-06-14 23:08:54 by Hatikvah Hatikvah
Funny :)

I just have 1 tip; unless you have to do so to make a living, *stop coding*. I no longer have Visual Studio (or any development environment for that matter) installed at home, don't look up or answer any programming-related questions and I can tell, I'm a happier man now. I even got myself a new fridge.
added on the 2004-06-14 23:35:06 by superplek superplek
you're not the only one happier with that :DD
added on the 2004-06-14 23:48:31 by Gargaj Gargaj
I wasn't saying that I don't have an executable full of spike-cylinders lying around, waiting to be released at a party near you :)
added on the 2004-06-15 00:13:41 by superplek superplek
"I no longer have Visual Studio (or any development environment for that matter) installed at home, don't look up or answer any programming-related questions and I can tell, I'm a happier man now."

Looks like shanethewolf has had the right idea all along then ;)
added on the 2004-06-15 00:16:13 by Pete Pete


Go to top