Thread: Background

  1. #1
    Computer guy
    Join Date
    Sep 2005
    Location
    I'm lost!!!
    Posts
    200

    Background

    Ok, my game now is 90% completed. The last thing (but also very important) is background for the screen. Would it slow down the game if i draw a big quad to fill the screen then apply texture to it? I tested in my computer and it still run normally, but when i tried in my school's computer: it's awful. So is there anyway i can create background without using "applying texture on quad" method?
    Hello, testing testing. Everthing is running perfectly...for now

  2. #2
    Hard to answer based on the lack of information (what API? what else is being processed per frame grphaically?)

    But in general I would say you should be able to to that no problem. There may be faster/better ways to do this depending on what you're using to accomplish the task, but it would take a pretty crappy computer to be unable to handle a single quad... Unless your resolution is insanely high and your texture is insanely huge and you're surpassing the Gfx cards abilities in fill rate, memory, or bandwidth. Unlikely.
    "There's always another way"
    -lightatdawn (lightatdawn.cprogramming.com)

  3. #3
    Computer guy
    Join Date
    Sep 2005
    Location
    I'm lost!!!
    Posts
    200
    Nah, the highest resolution of the texture i'm currently get to is 512 (no more). I'm using Opengl by the way. Besides, every object i create in my game will be delete out of memory when they are destroyed, so memory would not be a problem. Well, i'm choosing background for my game right now!!! (such a pain)
    Hello, testing testing. Everthing is running perfectly...for now

  4. #4
    Slave MadCow257's Avatar
    Join Date
    Jan 2005
    Posts
    735
    Probably the only speedup would be if certain parts of the screen are rarely changed. Then you can make seperate quads for those and update as neccesary

  5. #5
    Absent Minded Programmer
    Join Date
    May 2005
    Posts
    968
    No hdragon, our schools computers graphics card just can't handle the stuff.

    They just can't, it is something you'll have to deal with at school, just understand that it is ONLY that computer that sucks that bad.
    Sometimes I forget what I am doing when I enter a room, actually, quite often.

  6. #6
    Registered User VirtualAce's Avatar
    Join Date
    Aug 2001
    Posts
    9,607
    A full screen texture quad should not be a problem on any computer...unless it is a school's computer. I use this effect for a lot of things including sun-glare effects and even the alpha blending does not seem to affect the framerate at all.

    Cards do better with large quads (hence sky planes) than they do with highly tesselated quads.

  7. #7
    Computer guy
    Join Date
    Sep 2005
    Location
    I'm lost!!!
    Posts
    200
    i guess i have to deal with it at school then. So here is a screen shot i took. (the level still hasn't finished though).
    Hello, testing testing. Everthing is running perfectly...for now

  8. #8
    Absent Minded Programmer
    Join Date
    May 2005
    Posts
    968
    I still think you need a 3d ship in there, and throw some lighting and bloom over it
    Sometimes I forget what I am doing when I enter a room, actually, quite often.

  9. #9
    User
    Join Date
    Jan 2006
    Location
    Canada
    Posts
    499
    That's an awesome background, man!

    Where did you get it?

  10. #10
    Computer guy
    Join Date
    Sep 2005
    Location
    I'm lost!!!
    Posts
    200
    google: "space wallpaper"
    It really lights up the whole screen isn't it
    Hello, testing testing. Everthing is running perfectly...for now

  11. #11
    Slave MadCow257's Avatar
    Join Date
    Jan 2005
    Posts
    735
    I think you stole that space ship too from some game on shockwave

  12. #12
    Computer guy
    Join Date
    Sep 2005
    Location
    I'm lost!!!
    Posts
    200
    Quote Originally Posted by MadCow257
    I think you stole that space ship too from some game on shockwave
    Nope, i designed the ship. It took me month to modified from sketch to full body color. Here is the original sketch, you'll laugh at it.
    Hello, testing testing. Everthing is running perfectly...for now

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. How to load background pic/texture in OpenGl?
    By salman86 in forum Windows Programming
    Replies: 3
    Last Post: 08-07-2005, 06:37 PM
  2. Load Bitmap as Window Background
    By Epo in forum Windows Programming
    Replies: 6
    Last Post: 07-19-2005, 09:37 AM
  3. Windows background color
    By Exile in forum Windows Programming
    Replies: 2
    Last Post: 01-23-2005, 07:55 AM
  4. Detect Close of a background process
    By Schwarzhelm in forum C Programming
    Replies: 1
    Last Post: 11-05-2003, 01:46 AM
  5. how to set the background colour of a static box?
    By Cobras2 in forum Windows Programming
    Replies: 2
    Last Post: 08-01-2002, 04:57 PM