Bug 70154

Summary: boson cannot render terrain
Product: [Applications] boson Reporter: Mario Girlando <mgtanis>
Component: generalAssignee: The Boson Team <boson-bugs>
Status: RESOLVED FIXED    
Severity: normal    
Priority: NOR    
Version: unspecified   
Target Milestone: ---   
Platform: unspecified   
OS: Linux   
Latest Commit: Version Fixed In:
Attachments: this screenshot shows the problem I reported

Description Mario Girlando 2003-12-11 20:14:12 UTC
Version:           0.9.1 (using KDE 3.1.4)
Installed from:     (3.0)
Compiler:          gcc version 2.95.4 20011002 (Debian prerelease)
OS:          Linux (i686) release 2.4.23

The game does not render the terrain, but the units are rendered correctly. My konsole window fills with messages such as


boson: ERROR: [void BoGroundRenderer::calculateWorldRect(const QRect &, int, int, float *, float *, float *, float *)] oops null next/previous pointer (pass1)
boson: [unsigned int BoGroundRenderer::renderCells(const BosonMap *)] generating cell list


over and over.
Comment 1 Andreas Beckermann 2003-12-20 20:59:45 UTC
thats a very strange problem and should of course not happen. Does it happen every time you start the game? For every map?

CU
Andi
Comment 2 Leo Savernik 2004-01-02 09:18:11 UTC
I'm seeing this too, but I get different error messages. When loading map textures, many of the following error messages appear:

Boson Textures: [void BosonTextureArray::init()]
Boson Textures: ERROR: [static bool BosonTextureArray::createTexture(const QImage &, unsigned int, bool = true, bool = false)] OpenGL Error when loading texture 205

Jfyi, I'm using the tdfx driver in 16 bit mode (voodoo3).
Comment 3 Andreas Beckermann 2004-01-02 17:40:15 UTC
Leo: Your problem is that the voodoo3 card did not support textures bigger than 256x256.
You can solve this by reducing the size of the textures $KDEDIR/share/apps/boson/themes/grounds/earth/*.jpg to something like e.g. 128x128 or even less.
(e.g. using gimp)

You will most probably have the same problem with some of the model textures - you can scale the images in $KDEDIR/share/apps/boson/themes/textures/ down as well to solve this.

CU
Andi
Comment 4 Mario Girlando 2004-01-02 22:45:13 UTC
I have an Hercules 3dProphet II MX video card (GeForce 2 chipset) and I'm running Nvidia drivers (build 4496). As for comment #1, this behaviour happens with every map I've tried (about 3/4 of them). Is there any particular map I should test with?

I am also adding a screenshot attachment that shows the problem. I just noticed that the game renders 1 terrain square under one of the structures.
Comment 5 Mario Girlando 2004-01-02 22:45:36 UTC
Created attachment 3936 [details]
this screenshot shows the problem I reported
Comment 6 Andreas Beckermann 2004-01-16 21:53:19 UTC
Mario: Hi again. Sorry for the late answer, I have somehow missed your reply.
Please try to resize the window. Your screenshot shows that only the top-left cell is drawn, which indicates that screen width/height aren't used correctly.
(don't use minimize/maximize/iconify, they are usually special cases. use usual resizing)

CU
Andi
Comment 7 Andreas Beckermann 2004-01-23 19:01:13 UTC
Hi
We're using a completely new algorithm for creating the list of visible cells which doesn't have this problem anymore, so I am closing this bug now.
The new code will be in 0.10.

CU
Andi