Game Development Community

Grey background

by Dan Meister · in Torque Game Builder · 05/01/2010 (2:12 pm) · 9 replies

I have been trying some of the included tutorials, on everything i create or open when i drage a background image and place it, it is greyed. I can click the checkbox to force 16 bit and it will appear colored, however when i run it it is grey still.

#1
05/01/2010 (4:38 pm)
Are you using Firefox? I discovered during the QA that Firefox does not play well with drag and dropping images from it into TGB.
#2
05/01/2010 (8:49 pm)
I use internet explorer but the problem is in the Torque Game Builder, whenever I drag a static sprite background from the right column into the main window (canvas i think u call it) it appears greyed. I can check the box that says force 16 bit and it will appear normal, however when i run it it is again greyed.
This only happens with background images. Static and scrolling, they all appear grey. Other images I use work just fine.
#3
05/08/2010 (12:34 pm)
TGB works fine on other computers ive installed it on, however on my computer every background is grey and flickering. All other images work fine, it is only the backgrounds, static and scrolling. Ive tried drivers, even tried switching my video card with another, nothing works.
#4
05/11/2010 (1:13 am)
Here is a screenshot of the error I am having.

http://i785.photobucket.com/albums/yy134/dethskull88/Torque%20Game%20Builder/grahpic_error.jpg

when I click edit preferences and set the graphics to OpenGL, I get all sorts of errors from the mouse being off, to all background images flickering grey. If i set graphics to d3d, it fixes most problems, however when i run the game it is still a grey flickering background. I have tried updating drivers, downloading sdk's, uninstalling and reinstalling, and I even upgraded my OS from win xp to win7, I still get the error. I have installed and ran torque fine on other computers with no problem.
#5
05/11/2010 (10:43 am)
Hey Dan, sorry it's taken me a bit to get back to you on this. I've been trying to reproduce it but haven't had any luck with it.

The screens you sent to support actually gave me a better idea of what's going on here, and it looks like it's related to what I originally thought it was, the importing error.

Try this:
Delete the background sprite from your scene and then remove it from your library as well. If you don't know how to do that you just drag the object from the library to the trash can icon at the top of the library. Then try to reimport the background image using the ImageMapBuilder. Let me know if the image still imports distorted like it did before.
#6
05/11/2010 (11:03 am)
Quote:
Delete the background sprite from your scene and then remove it from your library as well. If you don't know how to do that you just drag the object from the library to the trash can icon at the top of the library. Then try to reimport the background image using the ImageMapBuilder. Let me know if the image still imports distorted like it did before.

It's worth noting that on any of my systems, if I delete an imageMap from TGB (1.7.4 and 1.7.5) by dragging it into trash, then try to add the same image back in by dragging it into the editor, it will not work. It simply doesn't create the imageMap.

The solution is to rename the source image and drag it in.
#7
05/11/2010 (11:35 am)
I moved the background.jpg out of the resources folder, and using GIMP i cut the background out of the image. Then I created a new background.jpg in the resources folder and pasted the image in. It still does not work right, am I doing this wrong?
#8
05/11/2010 (12:03 pm)
I got it working, I saved with GIMP as a .png file and now it shows up fine. Thanks for the help.
#9
05/11/2010 (12:03 pm)
@Patrick
Thanks, I wasn't aware of that one. It should work via the ImageMapBuilder though, I just tried it. Strange that it wouldn't work on the drag and drop.

@Dan
You shouldn't need to edit the image at all. Just delete it from the scene and then remove it from your library using the method I posted previously. Then use the ImageMapBuilder to import the unaltered original background (which can be found in TGB's install directory in tgb/resources/fishart/backgrounds).

The ImageMapBuilder can be accessed two ways, via Projects->ImageMapBuilder or the button next to the trash can in the create tab. There's a short tutorial on using it in the docs under Component Tutorials->Adding Assets if you need more info on how to use it.

Basically what I'm trying to do here is rule out errors during the import process.
#10
05/11/2010 (12:04 pm)
Heh, well nevermind my last post then.