Page 3 of 4

Posted: Thu Jul 24, 2008 1:08 pm
by B@z
seno: yeah, the console is same as what you wrote.
no problem there
and the i is 0

hybrid: where can i get that buxfix?

Posted: Thu Jul 24, 2008 4:15 pm
by hybrid
Check the bugforum or search the SVN browser. It's due to some missing implementations in SAnimatedMesh.

Posted: Thu Jul 24, 2008 5:36 pm
by B@z
ok, thanks
i'll check it later.

Posted: Fri Jul 25, 2008 1:34 pm
by irruser
has any on got a link they could send me i cant seem to get the one on here to work. thanks :)

Posted: Fri Jul 25, 2008 7:23 pm
by B@z
i can't find it either xD

Posted: Fri Jul 25, 2008 9:48 pm
by irruser
if someone could send me it in an email or pm i would re-upload it and send him the link to post on here. becuase i think that the file has been removed or something (ive tried for days to get it but with no luck)

Posted: Sat Jul 26, 2008 2:16 am
by christianclavet
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.

Posted: Sat Jul 26, 2008 10:49 am
by irruser
ah thanks sorry i never picked up on the fact it was his bandwidth all used up and thanks very much clavet for pointing me in the right direction. :oops:

Posted: Mon Jul 28, 2008 2:51 pm
by B@z
hybrid wrote:Check the bugforum or search the SVN browser. It's due to some missing implementations in SAnimatedMesh.
sorry, i seached a lot, but didn't find.
could you send me a link please?

Posted: Mon Jul 28, 2008 3:03 pm
by hybrid
I already told you that it's in SAnimatedMesh. So check the logs of that file. Since it was fixed in both the 1.4 branch and trunk you should check the file of the branch to get the proper log message, otherwise you have to check the merges (which is exactly one that is interesting, namely 1251).

Posted: Wed Jul 30, 2008 1:24 am
by seno
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~

Posted: Sun Aug 10, 2008 8:43 pm
by B@z
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

Code: Select all

   scene::SMesh               *my_mesh;
i tried to write it to SAnimatedMesh but then it dies here:

Code: Select all

mesh->addMeshBuffer(buffer);
and didn't found something like that :(

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();
then i could convert it to SAnimatedMesh
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 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:
An unhandled exception of type 'System.NullReferenceException' occurred in StudyPNGDetailMap.exe

Additional information: Object reference not set to an instance of an object.
at videoDriver->endScene();

i have a bad omen -.-

Posted: Mon Aug 11, 2008 1:47 am
by seno
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.. :oops:


i will keep checking your problem, however without updating this project

for Irrlicht 1.4, it might be hard to solve your problem.

Posted: Mon Aug 11, 2008 8:44 am
by B@z
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

Code: Select all

      scene::SAnimatedMesh* animatedMesh = new scene::SAnimatedMesh();
      mesh->recalculateBoundingBox();
	  animatedMesh->addMesh(mesh);
      this->my_mesh = animatedMesh;
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?

Posted: Fri Aug 15, 2008 10:47 am
by B@z
any news?