I need too the HLSL version. Could anyone plaese (like blindside ) make hlsl verision, it would just take a minute for someone which understand gls. and hlsl.doqkhanh wrote: Anyone has HLSL for leafnode?
Please help me !
Thanks in advance.
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 ...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.
I don't know. Are you really registering the factory BEFORE you load the scene? Show some code!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?
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.doqkhanh wrote:But very very low...Darktib wrote:If you use DX you don't need a shader...
I cannot load these tree in a irr file too.
Code: Select all
CKlaskerTreeSceneNodeFactory* factory2 = new CKlaskerTreeSceneNodeFactory(smgr, device);
smgr->registerSceneNodeFactory(factory2);
factory2->drop();
Hmm, are your .xml files in the right folder? IIRC, you need to have a "klasker"-folder where your working directory ist.Vsk wrote:As abou the code, as I told, it soupous to only need this:
Before this:Code: Select all
CKlaskerTreeSceneNodeFactory* factory2 = new CKlaskerTreeSceneNodeFactory(smgr, device); smgr->registerSceneNodeFactory(factory2); factory2->drop();
smgr->loadScene("escena.irr");
I compiles no problems at all, but can not load the "unknwon trees".
Sounds like IrrExt has an old version of the tree generator. IUnknown is what IReferenceCounted was called in older versions of Irrlicht.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?
Klasker wrote: Sounds like IrrExt has an old version of the tree generator. IUnknown is what IReferenceCounted was called in older versions of Irrlicht.
Thanks, that explains it. The version on http://www.wc3jass.com/ is version 2.1c, so I will assume that is the most recent.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.
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