Advertisement

another texture problem

Started by November 01, 2003 06:09 PM
4 comments, last by lobravo 21 years, 4 months ago
I''m stuck! I want to make space! Ok, but i need to star with the stars. But how? well, I never read about Skyboxes, but i created one. I make a texture, that looks like stars. But it''s in .bmp. Bitmaps are too big. The original size of the image is 512x512, 700Kb, with black background and dots on it. when I render it in the skybox, meaning the stars of the space, it gets low res. Then i need to make another image, double size. it jump to 3.800Mb. It turns the app slow. I guess the problem is the size is too big to the memory...maybe What do I do? I read about png, raw and others. is it worth to use these kinds of images? even jpg. I was thinkin about a particle system, but make stars around about 100000.0f distant adn draw is each frame could become slower. Could anyone help me? I thank for any hint!
"There are people who live in the reality. We recreate it!"
Well I messed around quite a bit with stars, there are several ways you can do it.

Particle or GLPoints method: basicly a large array of particals. I tired this with frustum culluing and without. Both had too large of frame rate hits for me to use.

The oversized texture: I found in order for there to be some fairly nice looking stars I needed each texture to be 2048X2048. This took up too much memmory for me to use.

Multitextured method: This is what I ended up doing. I had a standard 512X512 skybox. Then I multi textred on larger star texture on each panel of the sky box. You can tile 4 per side onto a quad at a size of 1024X1024, or just use 1 large 2048X2048 texture. I have the 2048, as a compressed tga file that is 2 megs.

Good luck
Advertisement
You could use a small bitmap like 64x64 and repeat the texture over a quad. This site http://www.flipcode.com/tutorials/tut_atmap.shtml explains GL_REPEAT.
if (!understand) ask;
I tried repeating a texture, but i found if you tile it more than 4 per side of a skybox it looked tiled.

Depends on what end result you want.
You can also use jpeg

here youmust find what you are searching for

[edited by - raton on November 2, 2003 4:31:50 AM]
Mess with the bestDie like the rest
Thanks for the advice. I tried to load jpg, but i couldn''t. i got errors. Even my LoadGLTexture suddenly show error and i dont know what is the error. I erased from the code anything about texture, any functions to load bmp and i keep receiving a message telling me i''m calling this functions. But I ain''t.

Well, thanks for the advice. I''ll try PNG
"There are people who live in the reality. We recreate it!"

This topic is closed to new replies.

Advertisement