Page 1 of 1

Unsupported texture format

PostPosted: Fri Jul 08, 2011 23:15
by RobSis
Hello.

I installed all the dependencies required, the code compiles, but I cannot run it.
Here's the output of ./minetest:
Your phone or window isn't wide enough to display the code box. If it's a phone, try rotating it to landscape mode.
Code: Select all
...
INFO: getTextureIdDirect(): Loading path "/home/data/celeron55-minetest-c5f7f456afb1/bin/../data/stone.png"
INFO: Setting stone.png as base
INFO: generate_image_from_scratch(): name=stone.png
last_part_of_name=stone.png
INFO: getTextureIdDirect(): Loading path "/home/data/celeron55-minetest-c5f7f456afb1/bin/../data/stone.png"
INFO: Setting stone.png as base
INFO: generate_image_from_scratch(): name=stone.png
last_part_of_name=stone.png
INFO: getTextureIdDirect(): Loading path "/home/data/celeron55-minetest-c5f7f456afb1/bin/../data/stone.png"
INFO: Setting stone.png as base
Unsupported texture format
FBO error
FBO incomplete

In thread ef5d4780:
/home/data/celeron55-minetest-c5f7f456afb1/src/tile.cpp:1105: bool generate_image(std::string, irr::video::IImage*&, irr::IrrlichtDevice*): Assertion 'rtt' failed.
Debug stacks:
DEBUG STACK FOR THREAD ef5d4780:
#0  int main(int, char**)
Aborted


Any ideas? Thanks!

PostPosted: Sat Jul 09, 2011 10:53
by Karlas
It might be something with your texture pack,try a new one.

PostPosted: Sat Jul 09, 2011 17:10
by mstoykov
if it isn't from the texture pack ( and it won't be if you haven't installed one :) ) pls tell us what your OS + how you got irrlicht and what version it is :) (also any other kind of information like version of libpng (as the textures are pngs) may prove important :))

PostPosted: Tue Jul 12, 2011 23:26
by RobSis
My OS is GNU/Linux, Debian 6.0.2 (Squeeze).

All required packages are available in official repositories.

Versions:
libirrlicht-dev: 1.7.1
libpng12-dev: 1.2.44-1
libbz2-dev: 1.0.5-6

PostPosted: Wed Jul 13, 2011 22:01
by mstoykov
If you have used texturepack - undo it (probably recompiling it again will be the fastest way) and after this I'm lost :).
There is the wildest idea that you can install dev packages without having the not dev (aka the ones you need for running) but now that I think about it libpng is way too used if it can be told from my system :) and I have the same version as you :S.

PostPosted: Wed Sep 14, 2011 16:39
by RobSis
I never used any texture pack. I believe, that the problem will be in Render-To-Texture. I heard that not every hardware supports that. Also, my laptop is not fully supported by official linux acpi, nor is the graphic adapter... The error is in tile.cpp:1108 (in latest stable). Can I bypass this piece of code somehow? :D

PostPosted: Wed Sep 14, 2011 20:29
by kahrl
If you don't mind rebuilding, you could try replacing the line tile.cpp:1083

Your phone or window isn't wide enough to display the code box. If it's a phone, try rotating it to landscape mode.
Code: Select all
if(driver->queryFeature(video::EVDF_RENDER_TO_TARGET) == false)


with

Your phone or window isn't wide enough to display the code box. If it's a phone, try rotating it to landscape mode.
Code: Select all
if(true || driver->queryFeature(video::EVDF_RENDER_TO_TARGET) == false)

PostPosted: Wed Sep 14, 2011 20:35
by RobSis
Hell yeah! It works!

Thanks, man. I should have paid more attention on my c++ class :)