Quake3 BSP loader

You discovered a bug in the engine, and you are sure that it is not a problem of your code? Just post it in here. Please read the bug posting guidelines first.
sudi
Posts: 1686
Joined: Fri Aug 26, 2005 8:38 pm

Quake3 BSP loader

Post by sudi »

Image

The file: Download

When loading it doesn't say it is missing textures so i guess it must be a meshloading error.
and I'm loading with shaders like in the example.
We're programmers. Programmers are, in their hearts, architects, and the first thing they want to do when they get to a site is to bulldoze the place flat and build something grand. We're not excited by renovation:tinkering,improving,planting flower beds.
burningreggae
Posts: 66
Joined: Wed Oct 04, 2006 2:07 pm

Post by burningreggae »

i loaded the map. I can't find any problems?. What exactly are your problems?.
burningreggae
sudi
Posts: 1686
Joined: Fri Aug 26, 2005 8:38 pm

Post by sudi »

don't ya see the holes in the walls and the ground?
We're programmers. Programmers are, in their hearts, architects, and the first thing they want to do when they get to a site is to bulldoze the place flat and build something grand. We're not excited by renovation:tinkering,improving,planting flower beds.
burningreggae
Posts: 66
Joined: Wed Oct 04, 2006 2:07 pm

Post by burningreggae »

this means, if you say it's a bug, than you should provide a working source code so that i can see what your are doing. Therefore the bug tracker exists
You should say which version you are using , provide a working-code snippet so that we can reproduce your scene. Normally i don't answer "theres a bug" but i felt a little funny. So please, have a look how a bug-report should be done;-)

I said I can load the Example without missing any textures, so i have to say there is no bug.
burningreggae
geckoman
Posts: 143
Joined: Thu Nov 27, 2008 11:05 am
Location: Germany
Contact:

Post by geckoman »

I've seen this in other maps, too! But as I don't create a FPS I did not investigate what the problem could be.
rogerborg
Admin
Posts: 3590
Joined: Mon Oct 09, 2006 9:36 am
Location: Scotland - gonnae no slag aff mah Engleesh
Contact:

Post by rogerborg »

Which maps? What version of Irrlicht? What platform and device?
Please upload candidate patches to the tracker.
Need help now? IRC to #irrlicht on irc.freenode.net
How To Ask Questions The Smart Way
geckoman
Posts: 143
Joined: Thu Nov 27, 2008 11:05 am
Location: Germany
Contact:

Post by geckoman »

some random maps from quake3, irrlicht 1.5, Windows Vista, D3D

I do not have enough time to provide you with a running example, sorry.
rogerborg
Admin
Posts: 3590
Joined: Mon Oct 09, 2006 9:36 am
Location: Scotland - gonnae no slag aff mah Engleesh
Contact:

Post by rogerborg »

Well, thanks for letting us know. If anyone can produce a sample app that repeatably demonstrates the problem, please do sing out.
Please upload candidate patches to the tracker.
Need help now? IRC to #irrlicht on irc.freenode.net
How To Ask Questions The Smart Way
hybrid
Admin
Posts: 14143
Joined: Wed Apr 19, 2006 9:20 pm
Location: Oldenburg(Oldb), Germany
Contact:

Post by hybrid »

There's probably no reason to test the 1.5 branch anymore, because of the many changes for BSP meshes in SVN/trunk. And since we also have the bsp browser now, Iguess one should be able to reproduce the problem with that app quite easily. Just link to the bsp download location, and tell us where you find non-working parts, together with screenshots of how it should look like and how it actually does look like in Irrlicht.
sudi
Posts: 1686
Joined: Fri Aug 26, 2005 8:38 pm

Post by sudi »

Ok...
Irrlicht version: latest SVN
System: Windows Vista
Driver: OpenGL
Specs: blablabla

Map: is in the first post

screen:
Image
Image

code:
example21 not changed in any way. i replaced the pk3 folder in the media dir.

console:

Code: Select all

Irrlicht Engine version 1.5
Microsoft Windows Vista Personal Service Pack 1 (Build 6001)
DIRECT3D9 Driver was not compiled into this dll. Try another one.
Please select the driver you want for this example:
 (a) Direct3D 9.0c
 (b) Direct3D 8.1
 (c) OpenGL 1.5
 (d) Software Renderer
 (e) Burning's Video (TM) Thomas Alten
 (otherKey) exit

Irrlicht Engine version 1.5
Microsoft Windows Vista Personal Service Pack 1 (Build 6001)
Using renderer: OpenGL 2.1.1
GeForce 8600M GT/PCI/SSE2: NVIDIA Corporation
OpenGL driver version is 1.2 or better.
GLSL version: 1.2
Could not load mesh, because file could not be opened: : explorer.cfg
Could not create archive for: /q/baseq3/

Loaded texture: skydome2.jpg
Loaded mesh: gun.md2
Animation: active
Animation: pow
Animation: idle
Animation: putway
Loaded texture: gun.jpg
respawn
Loaded texture: iconlist.png
Loaded texture: irrlichtlogo3.png
Could not load sprite bank because the file does not exist: sprite_q3map
Irrlicht Engine version 1.5
Microsoft Windows Vista Personal Service Pack 1 (Build 6001)
Using renderer: OpenGL 2.1.1
GeForce 8600M GT/PCI/SSE2: NVIDIA Corporation
OpenGL driver version is 1.2 or better.
GLSL version: 1.2
Could not load mesh, because file could not be opened: : explorer.cfg
Could not create archive for: /q/baseq3/

Loaded texture: skydome2.jpg
Loaded mesh: gun.md2
Animation: active
Animation: pow
Animation: idle
Animation: putway
Loaded texture: gun.jpg
respawn
Loaded texture: iconlist.png
Loaded texture: irrlichtlogo3.png
Could not load sprite bank because the file does not exist: sprite_q3map
Loading map maps/ts_dm5.bsp
Could not load mesh, file format seems to be unsupported: levelparameter.cfg
quake3:getShader Load shader: scripts/slamp.shader for scripts/slamp.shader
Loaded texture: textures/broken_castle/n_castle_1.jpg
Loaded texture: textures/broken_castle/wall_c06a.jpg
Loaded texture: textures/kg_trim/tech_blocktrim04.jpg
Loaded texture: textures/broken_castle/n_castle_1a.jpg
Loaded texture: textures/broken_castle/wall_c05.jpg
Loaded texture: textures/broken_castle/debri_m01_moss.jpg
Loaded texture: textures/stf-hh3/3s_ang2_88.tga
Loaded texture: textures/planet&tiki/tiki2q3chal.tga
Loaded texture: textures/planet&tiki/planetquake.jpg
Loaded texture: textures/stf-hh3/3s_and1_88.tga
quake3::loadTextures needed 0100 ms to create 51 textures and 16 lightmaps
quake3::constructMesh needed 0019 ms to create 6279 faces, 34095 vertices,82407 mesh vertices
quake3::cleanMeshes0 needed 0000 ms to clean 9 of 29 meshes
quake3::cleanMeshes1 needed 0000 ms to clean 0 of 1 meshes
quake3::cleanMeshes2 needed 0000 ms to clean 0 of 0 meshes
quake3::cleanMeshes3 needed 0000 ms to clean 0 of 0 meshes
quake3::cleanMeshes4 needed 0000 ms to clean 0 of 0 meshes
quake3::calcBoundingBoxes needed 0001 ms to create 51 textures and 16 lightmaps
Loaded mesh: maps/ts_dm5.bsp
Needed 14ms to create OctTreeTriangleSelector.(46 nodes, 21465 polys)
Could not open file of texture: $redimage
Could not open file of texture: $blueimage
Could not open file of texture: $whiteimage
Could not open file of texture: $checkerimage
q3shaderfactory needed 0003 ms to create 1 shader nodes
Could not load mesh, because file could not be opened: : models/powerups/ammo/machinegunam.md3
Could not load mesh, because file could not be opened: : models/powerups/ammo/rocketam.md3
Could not load mesh, because file could not be opened: : models/powerups/ammo/machinegunam.md3
Could not load mesh, because file could not be opened: : models/powerups/ammo/railgunam.md3
Could not load mesh, because file could not be opened: : models/powerups/armor/shard.md3
Could not load mesh, because file could not be opened: : models/powerups/ammo/rocketam.md3
Could not load mesh, because file could not be opened: : models/powerups/ammo/machinegunam.md3
Could not load mesh, because file could not be opened: : models/powerups/armor/shard.md3
Could not load mesh, because file could not be opened: : models/powerups/armor/shard.md3
Could not load mesh, because file could not be opened: : models/powerups/health/medium_cross.md3
Could not load mesh, because file could not be opened: : models/powerups/health/medium_sphere.md3
Could not load mesh, because file could not be opened: : models/powerups/health/large_cross.md3
Could not load mesh, because file could not be opened: : models/powerups/health/large_sphere.md3
Could not load mesh, because file could not be opened: : models/weapons2/grenadel/grenadel.md3
Could not load mesh, because file could not be opened: : models/powerups/health/large_cross.md3
Could not load mesh, because file could not be opened: : models/powerups/health/large_sphere.md3
Could not load mesh, because file could not be opened: : models/powerups/armor/armor_yel.md3
Could not load mesh, because file could not be opened: : models/weapons2/lightning/lightning.md3
Could not load mesh, because file could not be opened: : models/powerups/health/medium_cross.md3
Could not load mesh, because file could not be opened: : models/powerups/health/medium_sphere.md3
Could not load mesh, because file could not be opened: : models/powerups/ammo/plasmaam.md3
Could not load mesh, because file could not be opened: : models/powerups/ammo/railgunam.md3
Could not load mesh, because file could not be opened: : models/powerups/health/small_cross.md3
Could not load mesh, because file could not be opened: : models/powerups/health/small_sphere.md3
Could not load mesh, because file could not be opened: : models/weapons2/shotgun/shotgun.md3
Could not load mesh, because file could not be opened: : models/powerups/armor/armor_yel.md3
Could not load mesh, because file could not be opened: : models/powerups/ammo/rocketam.md3
Could not load mesh, because file could not be opened: : models/powerups/health/medium_cross.md3
Could not load mesh, because file could not be opened: : models/powerups/health/medium_sphere.md3
Could not load mesh, because file could not be opened: : models/powerups/armor/armor_red.md3
Could not load mesh, because file could not be opened: : models/powerups/ammo/shotgunam.md3
Could not load mesh, because file could not be opened: : models/weapons2/plasma/plasma.md3
Could not load mesh, because file could not be opened: : models/weapons2/rocketl/rocketl.md3
Could not load mesh, because file could not be opened: : models/weapons2/railgun/railgun.md3
Could not load mesh, because file could not be opened: : models/powerups/health/mega_cross.md3
Could not load mesh, because file could not be opened: : models/powerups/health/mega_sphere.md3
Could not load mesh, because file could not be opened: : models/powerups/ammo/shotgunam.md3
Could not load mesh, because file could not be opened: : models/powerups/armor/shard.md3
Could not load mesh, because file could not be opened: : models/powerups/armor/shard.md3
Could not load mesh, because file could not be opened: : models/powerups/armor/shard.md3
Could not load mesh, because file could not be opened: : models/powerups/armor/shard.md3
Could not load mesh, because file could not be opened: : models/powerups/armor/shard.md3
Could not load mesh, because file could not be opened: : models/powerups/armor/shard.md3
Could not load mesh, because file could not be opened: : models/powerups/armor/shard.md3
Could not load mesh, because file could not be opened: : models/powerups/ammo/plasmaam.md3
Could not load mesh, because file could not be opened: : models/powerups/health/medium_cross.md3
Could not load mesh, because file could not be opened: : models/powerups/health/medium_sphere.md3
Could not load mesh, because file could not be opened: : models/powerups/health/medium_cross.md3
Could not load mesh, because file could not be opened: : models/powerups/health/medium_sphere.md3
Could not load mesh, because file could not be opened: : models/powerups/armor/shard.md3
Could not load mesh, because file could not be opened: : models/powerups/armor/shard.md3
Could not load mesh, because file could not be opened: : models/powerups/armor/shard.md3
Could not load mesh, because file could not be opened: : models/powerups/ammo/machinegunam.md3
Could not load mesh, because file could not be opened: : models/powerups/ammo/plasmaam.md3
Could not load mesh, because file could not be opened: : models/powerups/health/medium_cross.md3
Could not load mesh, because file could not be opened: : models/powerups/health/medium_sphere.md3
Loaded texture: skydome2.jpg
Loaded mesh: gun.md2
Animation: active
Animation: pow
Animation: idle
Animation: putway
Loaded texture: gun.jpg
respawn
Loaded texture: iconlist.png
Loaded texture: irrlichtlogo3.png
Bug:
should be obvious....the black holes and the see through areas should be filled with geometry. I tried walking on them, doesn't work so its NOT a missing texture.
To recreate this just download the map and open it with example21 or example2 will give the same result
We're programmers. Programmers are, in their hearts, architects, and the first thing they want to do when they get to a site is to bulldoze the place flat and build something grand. We're not excited by renovation:tinkering,improving,planting flower beds.
burningreggae
Posts: 66
Joined: Wed Oct 04, 2006 2:07 pm

Post by burningreggae »

your are missing the original quake3 files

most custom maps (and this one also) use the original shaders, items and models and textures from the commerical quake3.
we can't provide you these media files, they are copyrighted by id software.

but you can downlaod for.example a Quake3 Demo or have a look to OpenArena
burningreggae
sudi
Posts: 1686
Joined: Fri Aug 26, 2005 8:38 pm

Post by sudi »

ok whatever no one understands what i mean...
one more try....
Just take a look at the last screenshot. There u see half the ground the rest is simply missing and not loaded

AND I DON'T ***** MEAN THE MISSING ITEMMODELS

it must be levelgeometry bc part of it (the ground for example is loaded and there and walkable). And i understand that brush entities are not loaded either. but the ground especially half the ground can't be a brush entity.

oh and btw. if its missing shaders why isn't it telling me???
We're programmers. Programmers are, in their hearts, architects, and the first thing they want to do when they get to a site is to bulldoze the place flat and build something grand. We're not excited by renovation:tinkering,improving,planting flower beds.
burningreggae
Posts: 66
Joined: Wed Oct 04, 2006 2:07 pm

Post by burningreggae »

I unterstand what you mean, and i told you how to solve it.

Have a look to this:

quake3explorer main.
set
loadParam.cleanUnResolvedMeshes = 0

than you will see that textures ( shaders ) are missing. The missing textures are blue, the missing lightmaps are red..

These Textures (*.jpg/*.tga) and shaders ( *.shader ) are not provided by irrlicht, nor in your map. These missing files are in the original quake3.
you got it?

The loader tells you that files are missing if you turn
loadParam.verbose higher than 1
burningreggae
Pyritie
Posts: 120
Joined: Fri Jan 16, 2009 12:59 pm
Contact:

Post by Pyritie »

burningwater wrote:I unterstand what you mean, and i told you how to solve it.

Have a look to this:

quake3explorer main.
set
loadParam.cleanUnResolvedMeshes = 0

than you will see that textures ( shaders ) are missing. The missing textures are blue, the missing lightmaps are red..

These Textures (*.jpg/*.tga) and shaders ( *.shader ) are not provided by irrlicht, nor in your map. These missing files are in the original quake3.
you got it?

The loader tells you that files are missing if you turn
loadParam.verbose higher than 1
How can we load other quake3 maps just fine then?
Hive Workshop | deviantART

I've moved to Ogre.
twilight17
Posts: 362
Joined: Sun Dec 16, 2007 9:25 pm

Post by twilight17 »

I've had the same problem. I fixed it by following Tutorial 16.

You probably are just using

Code: Select all

 scene::IAnimatedMesh* mesh = smgr->getMesh("whatever.bsp"); 
correct?
Post this userbar I made on other websites to show your support for Irrlicht!
Image
http://img147.imageshack.us/img147/1261 ... wernq4.png
Post Reply