Page 1 of 1

Material Bug on old Graphics Cards

Posted: Sat Oct 07, 2006 12:08 am
by patrick
With my old 600MHz laptop I have some problems initializing all openGL extension (which is quite clear, because they are not present :D). This is just to remind everybody, that this problem still exists.

SVN: Revision 9879

My systems:

=================
Desktop:
=================
OS: Gentoo Xorg 7.0
Gfx: S3 Savage IV
Driver: Kernel S3 savage driver

=================
Vaio PCG-SR11K
=================
OS: Gentoo Kernel 2.6.17
Gfx: S3 Savage IV
Driver: Kernel S3 savage driver

Starting the game causes this error to happen:

Code: Select all

#0  0x00000000 in ?? ()
#1  0x0829a86a in Material::select (this=0x881ccd8) at material.cc:161
#2  0x081d26bc in GLMenuImageScreen::draw (this=0x881cc30)
    at glmenu_imagescreen.cc:236
#3  0x08155fac in GameWorldData::loadGUI (this=0x86bb190, root=0x84c0)
    at game_world_data.cc:171
#4  0x08162de0 in GameMenuData::loadGUI (this=0x84c0, root=0x84c0)
    at game_menu.cc:454
#5  0x08156245 in GameWorldData::loadData (this=0x86bb190, root=0x881cfc0)
    at game_world_data.cc:130
#6  0x0815136d in GameWorld::loadData (this=0x86baef4) at game_world.cc:184
#7  0x0816263d in GameMenu::loadData (this=0x84c0) at game_menu.cc:142
#8  0x0814dc5a in Campaign::run (this=0x86bac40) at campaign.cc:153
#9  0x0814db71 in Campaign::start (this=0x86bac40) at campaign.cc:85
#10 0x082e0308 in GameLoader::start (this=0x84c0) at game_loader.cc:163
#11 0x0816c7a3 in Orxonox::start (this=0x84377c8) at orxonox.cc:417
#12 0x0816f0cf in startOrxonox (argc=1, argv=0xbfe00a34, name=@0x84c0, 
    port=33984) at orxonox.cc:573
#13 0x081708f2 in main (argc=1, argv=0xbfe00a34) at new_allocator.h:62
Some extension in the material class is the problem

Posted: Thu Oct 12, 2006 6:25 am
by bensch
This should be fixed in r9882

Posted: Mon Oct 30, 2006 3:29 pm
by silvan
I've got the same problem here:

== System ==
Kubuntu Dapper Drake (6.06)
Intel Pentium M
ATI Mobility Radeon 7500
Driver: 1.2 Mesa 6.4.1


SVN: Revision 9908

Code: Select all

=======================================================
Program received signal SIGSEGV, Segmentation fault.
[Switching to Thread -1225205344 (LWP 10776)]
0x00000000 in ?? ()
(gdb)
#0  0x00000000 in ?? ()
#1  0x08249a5b in Material::select (this=0x89967e8) at material.cc:163
#2  0x0819bea2 in GLMenuImageScreen::draw (this=0x8996780)
    at glmenu/glmenu_imagescreen.cc:236
#3  0x08130598 in GameWorldData::loadGUI (this=0x88dff98, root=0x84c0)
    at story_entities/game_world_data.cc:171
#4  0x0813b3c9 in GameMenuData::loadGUI (this=0x84c0, root=0x84c0)
    at story_entities/menu/game_menu.cc:454
#5  0x0813026c in GameWorldData::loadData (this=0x88dff98, root=0x8996a88)
    at story_entities/game_world_data.cc:130
#6  0x0812bfd0 in GameWorld::loadData (this=0x88dfcfc)
    at story_entities/game_world.cc:184
#7  0x0813b046 in GameMenu::loadData (this=0x84c0)
    at story_entities/menu/game_menu.cc:142
#8  0x081277ec in Campaign::run (this=0x88e2348)
    at story_entities/campaign.cc:153
#9  0x08127936 in Campaign::start (this=0x88e2348)
    at story_entities/campaign.cc:85
#10 0x08285faa in GameLoader::start (this=0x88df850)
    at loading/game_loader.cc:163
#11 0x081494b7 in Orxonox::start (this=0x871cca8) at orxonox.cc:417
#12 0x081497a4 in startOrxonox (argc=1, argv=0xbfad6ab4, name=@0x84c0,
    port=33984) at orxonox.cc:573
#13 0x0814a78a in main (argc=1, argv=0xbfad6ab4) at orxonox.cc:481
(gdb)

Posted: Tue Oct 31, 2006 10:07 am
by patrick
Yes, I still got this problem too

Posted: Tue Oct 31, 2006 5:06 pm
by Nowic
I don't know if it's related with this bug... what are the sizes of the textures in Orxonox? Most old graphic cards can't handle texture sizes which aren't a power of 2. It just came to my mind when I read about old hardware...

Posted: Thu Feb 22, 2007 4:23 pm
by patrick
Created a ticket for this bug: https://dev.orxonox.net/ticket/208

Could you all please check, if this bug still exists on your systems (silvan?), thx!

Posted: Fri Feb 23, 2007 9:39 am
by bensch
Yes, this is most probably connected to the square-texture BUG.

For the Fix one should first check for the support of
--> GL_ARB_texture_non_power_of_two <--

So two solutions can be considered (split by step a and b):
1. Adapt texture class as follows:
2. Check for the extension using GLEW (hope it is found on newer HW)
3. Check for the 2^n size of the texture being loaded.
4. SDL_Surface* Texture::prepareSurface(SDL_Surface* surface, bool& hasAlpha) should return a square Texture.
a) Either blit to a square surface
b) or rescale the surface and blit it to a new one that is OpenGL conform

Posted: Fri Feb 23, 2007 8:54 pm
by silvan
patrick wrote:Created a ticket for this bug: https://dev.orxonox.net/ticket/208

Could you all please check, if this bug still exists on your systems (silvan?), thx!
Yes the bug is still here :D (At least in the current cleanup branch).

Posted: Sun Feb 25, 2007 5:28 pm
by patrick
Thx for the replies! I think I will try to fix this bug first.

Posted: Mon Mar 19, 2007 1:21 pm
by beni
Is it just me or is this last post completely unrelated to this bug?

I'm afraid we're dealing with some kind of not allowed ad. At least the last one posted in a related topic and a question, while this time it's pretty obvious that's an ad.

Edit: The unrelated post has been deleted

Posted: Tue Mar 20, 2007 4:58 pm
by beni
Don't get why this can happen. I may direct you to the post, hofzge: viewtopic.php?t=21

Posted: Tue Mar 20, 2007 7:58 pm
by Nowic
Two users are wiriting the same message? I think it's just spam! Check "UserA" and "UserB". They are spamers too. -> delete them and we need a stronger spam protction.

Posted: Wed Mar 21, 2007 7:27 am
by hofzge
The posts in question have been deleted, as they contained ads in their signature.

From now on this will no longer be tolerated.