Jump to content
  • Advertisement

Archived

This topic is now archived and is closed to further replies.

XeRoZeN

OpenGL OpenGL Basic Loading Problem!

This topic is 5398 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

I''m having issues with my OpenGL Loading Screen. It uses quads and when it displays the image but not in the right way. I need to use 1024 x 1024 but instead I would like to use 1024 x 764. If I use a uneven dimension I get a blank white screen. Is there a way to use demensions that arnt by 1024 x 1024, 512 x 512 and etc?

Share this post


Link to post
Share on other sites
Advertisement
If you''re comfortable with extensions then look up ARB_texture_non_power_of_two (don''t know if any cards actually support it yet), EXT_texture_rectange and NV_texture_rectangle. If you don''t want to use extensions then just pad your image to 1024 by 1024 and adjust the texture coordinates to only show 3/4 of the texture or split the image into a 1024 by 512 image and a 1024 by 256 image and render it with two quads.

Enigma

Share this post


Link to post
Share on other sites
You have to use extensions such as ARB_texture_non_power_of_two or NV_texture_rectangle to use textures with odd dimensions.

[edit]: hooray I'm slow

--------------------------
{ Arena: Resurrection, my text-based RPG/Mortal Kombat-like game }
{ A Look Into The World Of Arena II, a collection of short stories about characters in Arena II }

[edited by - Creation on February 7, 2004 6:06:10 PM]

Share this post


Link to post
Share on other sites
Guest Anonymous Poster
Draw your picture in 1024x768.
Rescale it to 1024x1024.
Draw the textured quad so it fills the screen with tex coordinates (0,0) (0,1) (1,1) (1,0) and it will look good.

Share this post


Link to post
Share on other sites
Anonymous poster your idea may be great but my picture is a "pixel-ish" type of picture. I''ll test out "NV_texture_rectangle". Thanks guys!

Share this post


Link to post
Share on other sites
it should be noted that by using the NV_texture_rectangle extension you are limiting yourself to nVidia hardware.

Granted, this might not be a problem, but it pays to be aware of these things

Share this post


Link to post
Share on other sites
Guest Anonymous Poster
quote:
Original post by XeRoZeN
Anonymous poster your idea may be great but my picture is a "pixel-ish" type of picture. I''ll test out "NV_texture_rectangle". Thanks guys!


I would still make the texture 1024x1024 and leave the extra space blank and change the texture coordinates instead.
// Kahd''zuk

Share this post


Link to post
Share on other sites

  • Advertisement
×

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

We are the game development community.

Whether you are an indie, hobbyist, AAA developer, or just trying to learn, GameDev.net is the place for you to learn, share, and connect with the games industry. Learn more About Us or sign up!

Sign me up!