TSTerrainSceneNode [Download Links Posted 30/7/08]
-
- Posts: 1638
- Joined: Mon Apr 30, 2007 3:24 am
- Location: Montreal, CANADA
- Contact:
irruser, had you read the previous messages on this thread? He put the source code directly on this thread. The link on the web site is limited to traffic limit per month. If you want to download it (if you absolutely don't want to cut&paste the code in the forum). You should wait the 1 st of the month (for example august 1st)
If you can't wait click this link and take the code: (copy&paste)
http://irrlicht.sourceforge.net/phpBB2/ ... c&start=15
Seno mentionned the code was created under for IRRlicht 1.3.1.
If you can't wait click this link and take the code: (copy&paste)
http://irrlicht.sourceforge.net/phpBB2/ ... c&start=15
Seno mentionned the code was created under for IRRlicht 1.3.1.
Thanks to irruser, now the working example and sourcecode of TSTerrainSceneNode and modified irrlicht 1.3.1 source code has been uploaded and it's ready to download.
Here are links to download
http://rapidshare.com/files/133348097/T ... de.7z.html
http://rapidshare.com/files/133351959/i ... ht.7z.html
NOTE. Second link is the C++ source code part of the whole irrlicht engine project. The matching irrlicht project folder location is
[INSTALLED PATH]\irrlicht-1.3.1\source\Irrlicht
Thanks again to irruser and happy downloading~
Here are links to download
http://rapidshare.com/files/133348097/T ... de.7z.html
http://rapidshare.com/files/133351959/i ... ht.7z.html
NOTE. Second link is the C++ source code part of the whole irrlicht engine project. The matching irrlicht project folder location is
[INSTALLED PATH]\irrlicht-1.3.1\source\Irrlicht
Thanks again to irruser and happy downloading~
Let's Take Over the World ~!!
i downloaded this patch -> http://irrlicht.svn.sourceforge.net/vie ... ision=1251
and still the same
but it's just me, but i think it has nothing to do with SAnimatedMesh
coz my_mesh is SMesh
i tried to write it to SAnimatedMesh but then it dies here:
and didn't found something like that
EDIT:
i could make that, but same.
then i could convert it to SAnimatedMesh
i checked mb from here (where it crashes):
and it seems to be all right (not null pointer or something..) its debug name is SMeshBuffer.
and one more:
tried to add a mesh scene node from my_mesh. and deleting the wrong line.
and it gives error!!
i think my_mesh is corrupted
tried to download what seno is uploaded...
with irr 1.3.1 nothing had been displayed (couldn't compile his irr 1.3.1 modified source, coz there was errors, but downloaded one from this site, and modified it)
with irr 1.4 with mofications i got this error:
i have a bad omen -.-
and still the same
but it's just me, but i think it has nothing to do with SAnimatedMesh
coz my_mesh is SMesh
Code: Select all
scene::SMesh *my_mesh;
Code: Select all
mesh->addMeshBuffer(buffer);
EDIT:
i could make that, but same.
Code: Select all
scene::SAnimatedMesh* mesh = new scene::SAnimatedMesh();
convert_mesh = new scene::SMesh();
.....
buffer->recalculateBoundingBox();
convert_mesh->addMeshBuffer(buffer);
buffer->drop();
processed.X += maxVtxBlockSize.Width - borderSkip;
} // while(processed.X<hMapSize.Width)
mesh->addMesh(convert_mesh);
convert_mesh->drop();
i checked mb from here (where it crashes):
Code: Select all
scene::IMeshBuffer* mb = this->my_mesh->getMeshBuffer(i);
this->my_videoDriver->setMaterial(my_materials[i]);
this->my_videoDriver->drawMeshBuffer(mb);
and one more:
tried to add a mesh scene node from my_mesh. and deleting the wrong line.
and it gives error!!
i think my_mesh is corrupted
tried to download what seno is uploaded...
with irr 1.3.1 nothing had been displayed (couldn't compile his irr 1.3.1 modified source, coz there was errors, but downloaded one from this site, and modified it)
with irr 1.4 with mofications i got this error:
at videoDriver->endScene();An unhandled exception of type 'System.NullReferenceException' occurred in StudyPNGDetailMap.exe
Additional information: Object reference not set to an instance of an object.
i have a bad omen -.-
B@z, I found the line,
scene::SAnimatedMesh* animatedMesh = new scene::SAnimatedMesh();
at TSTerrainSceneNode::loadHeightMap: about 490 line,
is not used ever.
I don't remember why i did put the line at there, and it didn't occure
the memory leak, so it seems i forgot to remove..
i will keep checking your problem, however without updating this project
for Irrlicht 1.4, it might be hard to solve your problem.
scene::SAnimatedMesh* animatedMesh = new scene::SAnimatedMesh();
at TSTerrainSceneNode::loadHeightMap: about 490 line,
is not used ever.
I don't remember why i did put the line at there, and it didn't occure
the memory leak, so it seems i forgot to remove..
i will keep checking your problem, however without updating this project
for Irrlicht 1.4, it might be hard to solve your problem.
Let's Take Over the World ~!!
you wanted to convert it to SAnimatedMesh?
but it dont work with irr 1.3.1 either
if i change my_mesh to SAnimatedMesh
and
this, then, same xD
meshbuffercount is 81.
edit:
ok, what's my_renderBuffer.
it's unallocated, unused xD
if i convert my_mesh to SAnimatedMesh, then it seems to be bad.
(used = 1, allocated = 1, bounding box -1 -> 1)
if i leave it as is, then used = 81, allocated = 127
and bounding box is from 0,52,0 to 256,218,256
debug name is SMesh
and the mb is same as in the my_mesh...
i dont think there is a problem.
maybe my_mesh's meshbuffer has a problem?
but it dont work with irr 1.3.1 either
if i change my_mesh to SAnimatedMesh
and
Code: Select all
scene::SAnimatedMesh* animatedMesh = new scene::SAnimatedMesh();
mesh->recalculateBoundingBox();
animatedMesh->addMesh(mesh);
this->my_mesh = animatedMesh;
meshbuffercount is 81.
edit:
ok, what's my_renderBuffer.
it's unallocated, unused xD
if i convert my_mesh to SAnimatedMesh, then it seems to be bad.
(used = 1, allocated = 1, bounding box -1 -> 1)
if i leave it as is, then used = 81, allocated = 127
and bounding box is from 0,52,0 to 256,218,256
debug name is SMesh
and the mb is same as in the my_mesh...
i dont think there is a problem.
maybe my_mesh's meshbuffer has a problem?