1

Topic: Background problem

Hi. I'm having a little bug with my Teeworlds as you can see on the screenshot below
http://img231.imageshack.us/img231/2635 … 001la3.png

You might have thought, seeing the thread title and the screen, "omg, another noob who haven't read the docs or used the search function". I know, there this gfx_clear setting.
But did you recognize which map is it? It's the official dm1 yikes

I'm running on Ubuntu 7.10, and I've tried with the compiled binary and compiled teeworlds myself from the source, I still get that problem. With compiz enabled or not.
The background only appears correctly when I'm in the top left corner of the map. And the problem is the same for all the maps.

spl0k, aka Al`. From the HuH clan.
Noobing pwns since 01/01/1970.
TeeViewer - TeeComp

2

Re: Background problem

spl0k wrote:

But did you recognize which map is it? It's the official dm1 yikes

Maybe someone changed the dm1 map,so it hasn´t any background lol

My Tower defence mode:
My Tower-defence Mod

3

Re: Background problem

There's the background, but only on the top left corner.
And no, nobody have changed the map because it's MY server, compiled from the source and that's all.

spl0k, aka Al`. From the HuH clan.
Noobing pwns since 01/01/1970.
TeeViewer - TeeComp

4

Re: Background problem

This topic is a bit old but maybe theres still interest:

With 0.4.0 and 0.4.1 I have a correct background but with 0.4.2 I have exactly the same problem as described above.

I blame my ATI IGP 320m internal graphics card (notebook) because when I disable hardware acceleration I get a correct background - but then I have to live with 0.5fps...

As the IGP 320m is a piece of shit in general (sorry for wording, but it fits... I have some more games that have graphical issues with this card) I guess some of the graphics otimisations in 0.4.2 are too much for this card.

Therefore:
Is it possible to use 0.4.2 game code with 0.4.1 graphics code ? Just some mad idea but maybe there could be a quick fix for the doomed owners of laptops with this card...

5

Re: Background problem

I played a bit with the source and integrated some old rendering code from 0.4.1 into 0.4.2.

It works for me(tm). I have animated backgrounds and smooth gameplay. (although there are still some graphical glitches in the menues due to some transparency errors (I blame my card, not the game))

The problematic code seems to be in the 'render_layers' function in 'game/client/gc_render.cpp'.

I created a small patch so maybe others can try if it works for them:

http://www.informatik.uni-bremen.de/~hi … card.patch

This patch has been tested on a Linux system running Gentoo Linux, kernel 2.6.24 and X.Org 1.4.0.90. Graphics card is an internal ATI IGP 320m (aka U1). I do not take any responsibility if this brakes your card, makes your cat sick and causes any other damage. Try at your own risk... :-)

6

Re: Background problem

wait wasen´t that an old bug????

it occurs if u join on an older server version. Like ur playin` 0.4.3 and the server runs on 0.3.3
Something like that

7

Re: Background problem

gfx_clear 0

I need to figure out something to put here.

8

Re: Background problem

Struppi wrote:

wait wasen´t that an old bug????

it occurs if u join on an older server version. Like ur playin` 0.4.3 and the server runs on 0.3.3
Something like that

Nope. This occurs also when I run the server on my machine.

Jon wrote:

gfx_clear 0

Nope. But thank you for participating in this.

gfx_clear 0/1 has the effect as described previously in this topic (Does not really help unless you stick in the upper left corner).

9

Re: Background problem

Your tee just should stop taking drugs lol

*** JUSTICE ALWAYS WINS ***

10

Re: Background problem

Captain AMN wrote:

Your tee just should stop taking drugs lol

You're as usefull as ever. X-P

bam: WARNING:'src/game/server/gamemodes/mod.cpp' comes from the future

11

Re: Background problem

I think people should read more carefully posts...

spl0k, aka Al`. From the HuH clan.
Noobing pwns since 01/01/1970.
TeeViewer - TeeComp

12

Re: Background problem

Check to make sure you have all the latest drivers for your graphics card/chip. Tell me, are you running Linux or Windows, as i can find drivers for both if you need.

Ubuntu Member
Power tends to corrupt and absolute power corrupts absolutely. - Lord Acton

13

Re: Background problem

Hellow wrote:

Check to make sure you have all the latest drivers for your graphics card/chip. Tell me, are you running Linux or Windows, as i can find drivers for both if you need.

Thanks for the offer but as you seem unable to gather that information from the posts I have serious doubts in your abilites... smile

And I can assure you that I know the driver situation for my graphics card very well and that I am using the most recent version of the driver that does not yet brake my setup.



It's nice to see that some people are trying to help but I feel that most are just trying a quick shot at this without actually reading what the problem is about... sad

14 (edited by tpct 2008-06-23 14:47:42)

Re: Background problem

I get the same error in many maps, but not in all maps,.

http://www.picturedumper.com/data/thumbs/2008/06/23/dc71e3109706.thumb.png


But when i set gfx_clear to 1, it´s work, but i get yellow background. See:

http://www.picturedumper.com/data/thumbs/2008/06/23/89c161fe44a0.thumb.png


#5
How get I the patch in to work with teeworlds?

15

Re: Background problem

tpct wrote:

How get I the patch in to work with teeworlds?

This patch is for compiling teeworlds from the source. On a Linux system, use the following procedure:

Change to the folder containing the teeworlds-0.4.2 source and type:

patch -p1 -i <name_of_patchfile>

e.g.
patch -p1 -i ../teeworlds-0.4.2-badcard.patch

if you saved the patch to the directory above the source directory.

If all went well you will get the following message:
patching file src/game/client/gc_render.cpp

Then use bam to compile like you would normally.

The patch should also work when compiling for windows; the patch program should be available somewhere.

16

Re: Background problem

Just as a trackback to http://www.teeworlds.com/forum/viewtopic.php?id=2508

matricks wrote:

Ticket added.
http://teeworlds.com/trac/teeworlds/ticket/544

Will add some option to turn on/off clipping.

Question? search function
Short movies? Lappi's link loft
Teeworlds info'n'tuts on gfx? Landil's sketchbook