Game Development Community

Ingame Look VS. Regular Look (2 images)

by Lyle Stanton · in Torque Game Builder · 12/13/2005 (10:47 pm) · 8 replies

I have been working for a week now, messing around with every option in T2D to get the image to display the same way the jpg. or png. looks. So far I have had no luck. I have an 800 x 600 Image with the Scene window and everything set to 800 X 600. The image just keeps coming out blurry ingame. Am I miss something obvious here? i cant figure out why the images dont look alike. can anyone help me? please.

here is what im talking about.


ok here is the regular jpg.
imagehost.bizhat.com/show.php?id=109766


and here is the same jpg ingame. ...well i moved the box a little.
imagehost.bizhat.com/show.php?id=109770

I have tried messing with the resolution, smooth filtermode, none filtermode, and just about everything else i could think of.

any suggestions?

#1
12/13/2005 (11:04 pm)
What happens when you change:

sceneWindow2D.setCurrentCameraPosition( "0 0 800 600" );

to

sceneWindow2D.setCurrentCameraPosition( "0 0 100 75" );

I'm using the same sort of 800x600 graphic and it looks fine in that setting. The camera position is in world units, not pixels, so I think the way you have it will be making the camera view be too large and then it compensates by shrinking the graphic to fit.

From the docs:

(x / y / [width / height])

x/y: Position to CENTER camera on.
width/height: Area of camera to use.

NOTE:- The width/height parameters can be omitted (together) to allow you to specify a new position only. Setting the camera area allows you to set an absolute area whereas position allows you to center on a position and specify a camera width/height similar to a field-of-view.
#2
12/13/2005 (11:26 pm)
Lyle,

If you had successful set filter mode to "none", the card won't do any filtering so you shouldn't get this. Are you sure that the filtering mode is being turned off correctly? You can obviously test this by temporarily making the object very big and seeing if you get pixellation.

- Melv.
#3
12/14/2005 (12:24 am)
@ Steve
I have tried 100 75, 125 80 just a bunch of different numbers to test it. always the same results.

@Melv
yeah i have tried smooth and none.
datablock t2dImageMapDatablock( GreenFelt )
{
imageName = "~/client/images/GreenFelt";
imageMode = full;
filterMode = none;
};

i just tried making the image very large with filtermode off, and get alot of pixellation.

:(

anyother ideas?

thanks for the suggestions though.
#4
12/14/2005 (12:44 am)
I dont have to use chuncked right?
thought i read somewhere that you dont have to do that anymore?
#5
12/14/2005 (1:43 am)
It could be the settings on your graphics card. Since Torque 2D is really 3D your 3D video/texture quality settings might be affecting it.
#6
12/14/2005 (1:54 am)
Well holly ****.

that did the trick.

Thank you very much Jeremy.

well that kinda sucks, if i want to distribute a game that i make. people will have to have there image quality setting set to high quality, and not high performance or it will look like crap?

Thanks again Jeremy, and thanks for the suggestions Melv and Steve
#7
12/14/2005 (9:22 am)
Well, that's exactly what those settings choose between: Quality and crap. That setting affects all 3D hardware accelerated games, so your game is in the same boat as Halflife 2, of which the developers also wouldn't want looking like crap. My settings did the same thing, and I was disappointed.

However, it IS strange that when you specifically tell the engine to turn all filtering off, the low quality settings of the card's drivers still choose to turn on the crappy filtering.
#8
12/14/2005 (9:50 am)
Is there any way to override the graphics card options? I'm actually working on a game where I want the graphics to look blocky and pixelated (it's part of the style), and on those machines that have filtering turned on via drivers it gets blurred as well.