TSTerrainSceneNode [Download Links Posted 30/7/08]

Announce new projects or updates of Irrlicht Engine related tools, games, and applications.
Also check the Wiki
B@z
Posts: 876
Joined: Thu Jan 31, 2008 5:05 pm
Location: Hungary

Post 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?
hybrid
Admin
Posts: 14143
Joined: Wed Apr 19, 2006 9:20 pm
Location: Oldenburg(Oldb), Germany
Contact:

Post by hybrid »

Check the bugforum or search the SVN browser. It's due to some missing implementations in SAnimatedMesh.
B@z
Posts: 876
Joined: Thu Jan 31, 2008 5:05 pm
Location: Hungary

Post by B@z »

ok, thanks
i'll check it later.
irruser
Posts: 34
Joined: Thu Jul 26, 2007 10:18 am
Location: Scotland

Post by irruser »

has any on got a link they could send me i cant seem to get the one on here to work. thanks :)
B@z
Posts: 876
Joined: Thu Jan 31, 2008 5:05 pm
Location: Hungary

Post by B@z »

i can't find it either xD
irruser
Posts: 34
Joined: Thu Jul 26, 2007 10:18 am
Location: Scotland

Post 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)
christianclavet
Posts: 1638
Joined: Mon Apr 30, 2007 3:24 am
Location: Montreal, CANADA
Contact:

Post 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.
irruser
Posts: 34
Joined: Thu Jul 26, 2007 10:18 am
Location: Scotland

Post 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:
B@z
Posts: 876
Joined: Thu Jan 31, 2008 5:05 pm
Location: Hungary

Post 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?
hybrid
Admin
Posts: 14143
Joined: Wed Apr 19, 2006 9:20 pm
Location: Oldenburg(Oldb), Germany
Contact:

Post 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).
seno
Posts: 34
Joined: Thu Nov 17, 2005 2:50 am
Location: Seoul Korea

Post 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~
Let's Take Over the World ~!!
B@z
Posts: 876
Joined: Thu Jan 31, 2008 5:05 pm
Location: Hungary

Post 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 -.-
seno
Posts: 34
Joined: Thu Nov 17, 2005 2:50 am
Location: Seoul Korea

Post 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.
Let's Take Over the World ~!!
B@z
Posts: 876
Joined: Thu Jan 31, 2008 5:05 pm
Location: Hungary

Post 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?
B@z
Posts: 876
Joined: Thu Jan 31, 2008 5:05 pm
Location: Hungary

Post by B@z »

any news?
Post Reply