setPosition
When I trying to test collision demo with another quake3 maps, my player is falling down and I cannot see any part of map.
I note that in examples the follow code was used:
code:
--------------------------------------------------------------------------------
sceneNode->setPosition(core::vector3df(-1300,-144,-1249));
--------------------------------------------------------------------------------
Is very hard to guess these values for another maps.
Is there any method to place player at beginning of map?
Quake 3 map elements /PlayerStart/ are not supported in Irrlicht, right?
Please some help and code if anybody knows.
Thanks in advance.
setPosition
If the example works with the map that comes with Irrlicht, and doesn't work with your maps, then there must be something about your maps that it doesn't like. You're probably better off solving this problem at the map level, rather than trying to compensate with programming.
You should look into the differences between your map and the one that comes with Irrlicht. Specifically, what program was used to create it.
You should look into the differences between your map and the one that comes with Irrlicht. Specifically, what program was used to create it.
The links in that thread are defunct, and I was unable to find the class by browsing the site.Anonymous wrote:its in the HowTo section, 13th one down, called "Class to read additional informations from Quake3 .bsp Files "
That being said, have you tried commenting out the setPosition? That particular line is there because the map wasn't built around the origin (0,0,0).
OK.
The problem was solved.
When I use bsptree directly /not pk3 file/, irrlicht is searching texture files in subdir of my demo /not in subdir of media dir/
I have copy these textures on correct place, and all was ok.
QUARK works very well with quake 3 bsp tree, and I hope, that soon q3bsptree additional information reading will be realized in irrlicht.
By the way I Unarekin was right.
I have removed (-1300,-144,-1249) values for my new map.
The problem was solved.
When I use bsptree directly /not pk3 file/, irrlicht is searching texture files in subdir of my demo /not in subdir of media dir/
I have copy these textures on correct place, and all was ok.
QUARK works very well with quake 3 bsp tree, and I hope, that soon q3bsptree additional information reading will be realized in irrlicht.
By the way I Unarekin was right.
I have removed (-1300,-144,-1249) values for my new map.