Tree Scene Node v2.1

Announce new projects or updates of Irrlicht Engine related tools, games, and applications.
Also check the Wiki

Postby Vsk » Wed May 14, 2008 4:34 pm

doqkhanh wrote::( Anyone has HLSL for leafnode?
Please help me !

I need too the HLSL version. Could anyone plaese (like blindside :-P) make hlsl verision, it would just take a minute for someone which understand gls. and hlsl.

Thanks in advance.
Vsk
 
Posts: 343
Joined: Thu Sep 27, 2007 4:43 pm

Postby Vsk » Wed May 14, 2008 5:05 pm

Hey, there is some strange Issue.
If I use it in Direct 9 more than dont fucntion the shader, for some reason the oak is the only one that its leaf aren black.
What is differente about it of the rest?

Thanks.
Vsk
 
Posts: 343
Joined: Thu Sep 27, 2007 4:43 pm

Postby Vsk » Wed May 14, 2008 7:19 pm

I have problem with the plugin and some doubts.

Doubts:

When using inside irredit, should not the material and textures set by default for each kind of trees? I mading this by hand inside irredit.


Problems

I have registered the factory with the code that say in the archive and then load the scene and however the same messasge appear:

"Could not create node for unknown type..klaster..."

What is the problem?

Thanks.
Vsk
 
Posts: 343
Joined: Thu Sep 27, 2007 4:43 pm

Postby Darktib » Wed May 14, 2008 7:36 pm

If you use DX you don't need a shader...
User avatar
Darktib
 
Posts: 153
Joined: Sun Mar 23, 2008 8:25 pm
Location: France

Postby shogun » Thu May 15, 2008 8:33 am

Vsk wrote:I have problem with the plugin and some doubts.

Doubts:

When using inside irredit, should not the material and textures set by default for each kind of trees? I mading this by hand inside irredit.


No. The Plugin only loads the .xml-files, and those don't have the material/texture definitions inside. Feel free to extend the fileformat and the plugin ...

Problems

I have registered the factory with the code that say in the archive and then load the scene and however the same messasge appear:

"Could not create node for unknown type..klaster..."

What is the problem?


I don't know. Are you really registering the factory BEFORE you load the scene? Show some code!
shogun
 
Posts: 162
Joined: Wed Sep 05, 2007 11:02 am
Location: inside

Postby doqkhanh » Thu May 15, 2008 1:31 pm

Darktib wrote:If you use DX you don't need a shader...

But very very low...

I cannot load these tree in a irr file too.
doqkhanh
 
Posts: 158
Joined: Sat Mar 01, 2008 3:14 am
Location: Tokyo, Japan

Postby Vsk » Thu May 15, 2008 7:35 pm

doqkhanh wrote:
Darktib wrote:If you use DX you don't need a shader...

But very very low...

I cannot load these tree in a irr file too.


But then I don't understand it, because I have seen the code, it makes no diference between direct X and open gl in the part tha invoce the shader.

Even more, i have to commente the material type and asign emt-vertexTrans-something insted of the calling to the shader program because it doesn' work.. in directx.

As abou the code, as I told, it soupous to only need this:

Code: Select all
CKlaskerTreeSceneNodeFactory* factory2 = new CKlaskerTreeSceneNodeFactory(smgr, device);
   smgr->registerSceneNodeFactory(factory2);
   factory2->drop();


Before this:
smgr->loadScene("escena.irr");

I compiles no problems at all, but can not load the "unknwon trees".
Vsk
 
Posts: 343
Joined: Thu Sep 27, 2007 4:43 pm

Postby shogun » Sun May 18, 2008 8:08 am

Vsk wrote:As abou the code, as I told, it soupous to only need this:

Code: Select all
CKlaskerTreeSceneNodeFactory* factory2 = new CKlaskerTreeSceneNodeFactory(smgr, device);
   smgr->registerSceneNodeFactory(factory2);
   factory2->drop();


Before this:
smgr->loadScene("escena.irr");

I compiles no problems at all, but can not load the "unknwon trees".


Hmm, are your .xml files in the right folder? IIRC, you need to have a "klasker"-folder where your working directory ist.
shogun
 
Posts: 162
Joined: Wed Sep 05, 2007 11:02 am
Location: inside

Postby Darktib » Mon May 19, 2008 8:34 pm

[quote=Darktib]If you use DX you don't need a shader...


But very very low... [/quote]
For me it works better under DX^^
User avatar
Darktib
 
Posts: 153
Joined: Sun Mar 23, 2008 8:25 pm
Location: France

Why do STreeMesh and CTreeGenerator inherit from IUknown?

Postby mhack » Mon May 26, 2008 9:26 pm

I've been checking out the tree generator extension and really appreciate this contribution from klasker. I compiled the Trees.zip file from http://www.wc3jass.com/files/Trees.zip without too much trouble in Cygwin.

But then I decided to get the latest from the IrrExt project subversion repository and the compile fails because of some changes in STreeMesh and CTreeGenerator, which now inherit from IUnknown instead of IReferenceCounted. I'm curious why you made those changes. I don't see any definition for IUknown in the Irrlicht include directory and so assume that it will only work for Microsoft-specific compilers.

Wouldn't it be better to do it the previous way, which presumably is more portable?
User avatar
mhack
 
Posts: 38
Joined: Sun Apr 01, 2007 2:13 am
Location: Montana, USA

Re: Why do STreeMesh and CTreeGenerator inherit from IUknown

Postby Klasker » Tue May 27, 2008 6:55 am

mhack wrote:I've been checking out the tree generator extension and really appreciate this contribution from klasker. I compiled the Trees.zip file from http://www.wc3jass.com/files/Trees.zip without too much trouble in Cygwin.

But then I decided to get the latest from the IrrExt project subversion repository and the compile fails because of some changes in STreeMesh and CTreeGenerator, which now inherit from IUnknown instead of IReferenceCounted. I'm curious why you made those changes. I don't see any definition for IUknown in the Irrlicht include directory and so assume that it will only work for Microsoft-specific compilers.

Wouldn't it be better to do it the previous way, which presumably is more portable?

Sounds like IrrExt has an old version of the tree generator. IUnknown is what IReferenceCounted was called in older versions of Irrlicht.
Klasker
 
Posts: 230
Joined: Thu May 20, 2004 8:53 am

Postby hybrid » Tue May 27, 2008 7:45 am

It says version 2.1a. Don't know when it was added, as it has been in the google code repository before IIRC.
hybrid
Admin
 
Posts: 14143
Joined: Wed Apr 19, 2006 9:20 pm
Location: Oldenburg(Oldb), Germany

Postby mhack » Tue May 27, 2008 12:17 pm

Klasker wrote:Sounds like IrrExt has an old version of the tree generator. IUnknown is what IReferenceCounted was called in older versions of Irrlicht.


hybrid wrote:It says version 2.1a. Don't know when it was added, as it has been in the google code repository before IIRC.


Thanks, that explains it. The version on http://www.wc3jass.com/ is version 2.1c, so I will assume that is the most recent.
User avatar
mhack
 
Posts: 38
Joined: Sun Apr 01, 2007 2:13 am
Location: Montana, USA

Postby jotatsu » Thu Jul 10, 2008 1:18 am

Im trying to use the shogun's plugin with irredit 1.41, get the msg

Code: Select all
KlaskerTree - FOUND FILE: aspen.xml!
KlaskerTree - FOUND FILE: oak.xml!
KlaskerTree - FOUND FILE: pine.xml!
KlaskerTree - FOUND FILE: willow.xml!
Loaded plugin: plugins\klaskerTreesPlugin.dll


But there is no option to add the tree node in the menus or bar. I have the xml in the klasker directory, the bmp icons in the resources folder and well plugin is in proper folder too. Any idea of what could be?
User avatar
jotatsu
 
Posts: 28
Joined: Sun Mar 18, 2007 1:11 am
Location: Colombia

Postby doqkhanh » Thu Jul 10, 2008 1:27 am

Hi there, you are using extension with irrEdit in last version, with Irrlicht 1.4. The current version of irrEdit using Irrlitch 1.4.1 and it not work right now with an out-of-date plugin. You can simply re-build the plug in. The source has posted in one of last post in this topic.
doqkhanh
 
Posts: 158
Joined: Sat Mar 01, 2008 3:14 am
Location: Tokyo, Japan

PreviousNext

Return to Project Announcements

Who is online

Users browsing this forum: No registered users and 1 guest