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:
http://arkal.free.fr/Projet/Lesson06.rar
note:
-using vc++,opengl under windows.
-the comments are in french
can someone help me solve this problem?
here is where you can find the source:
http://arkal.free.fr/Projet/Lesson06.rar
note:
-using vc++,opengl under windows.
-the comments are in french
#define MAX_NO_TEXTURES 11
in seawars.h
What about increasing this value? :)
in seawars.h
What about increasing this value? :)
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.
No, I'm not cynic. I just stopped overestimating people.
kb: of course they would (not) :)
lol
;P
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.
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.
(hm, tho 8 wouldnt be a good number for square textures :) )
c'mon.. everybody started somewhere.
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!
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!
*giggle* "i like the way you think.." *bwahaa*
I wonder what he changed the value to
12, possibly 13.
or maybe 10, to make it more challenging...
11.5 could suffice
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?
kb : yeah :))) and "fix me beautiful - 2" thread where everybody post their sources and ps fixes every bug :))))))))))))))
I want generics in C# already :-(
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?
pfffff...
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.
To sum stuff up kb:
name a vector arne, with the type mojs.
name a vector arne, with the type mojs.
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.
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.
you're not the only one happier with that :DD
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 :)
"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 ;)
Looks like shanethewolf has had the right idea all along then ;)