If you are a new Irrlicht Engine user, and have a newbie-question, this is the forum for you. You may also post general programming questions here.
gamemaker981
Posts: 12 Joined: Sat Jan 27, 2007 4:21 am
Post
by gamemaker981 » Tue Mar 20, 2007 3:39 am
Hello,
I was browsing through the forum when I came across CTreeSceneNode, that can be used to render trees with Irrlicht.
http://irrlicht.sourceforge.net/phpBB2/ ... hp?t=10909
I downloaded it, and found it's only a few header files and cpp files.
I use Dev-Cpp on Windows for Irrlicht. How can I use CTreeSceneNode?
Why did I choose Irrlicht? Simple: It has the most helpful tutorials.
gamemaker981
Posts: 12 Joined: Sat Jan 27, 2007 4:21 am
Post
by gamemaker981 » Tue Mar 20, 2007 3:48 am
OK. got it figured out somehow.
I started a new project, and added all the cpp and .h files to it.
When I compile, I get the following error:
7 F:\Game Development\Game Development Tools\irrlicht-1.2\Trees\CBillboardGroupSceneNode.cpp In file included from CBillboardGroupSceneNode.cpp
52 F:\Game Development\Game Development Tools\irrlicht-1.2\Trees\CBillboardGroupSceneNode.h conflicting return type specified for `virtual irr::u32 irr::scene::CBillboardGroupSceneNode::getMaterialCount()'
323 C:\Dev-Cpp\include\ISceneNode.h overriding `virtual irr::s32 irr::scene::ISceneNode::getMaterialCount()'
Obviously, I didn't expect any errors.
Please help...
Why did I choose Irrlicht? Simple: It has the most helpful tutorials.
hybrid
Admin
Posts: 14143 Joined: Wed Apr 19, 2006 9:20 pm
Location: Oldenburg(Oldb), Germany
Contact:
Post
by hybrid » Tue Mar 20, 2007 8:25 am
Change s32 to u32 in header and cpp file for the mentioned method.
Klasker
Posts: 230 Joined: Thu May 20, 2004 8:53 am
Contact:
Post
by Klasker » Tue Mar 20, 2007 9:12 am
You need to download the proper version of the trees. It looks like you are using Irrlicht 1.2 with the trees for version 1.3.
If you are using Irrlicht 1.2:
Download here
If you are using Irrlicht 1.3:
Download here
Then copy all the header and cpp files into your project's directory and add them to your Dev-C++ project.
gamemaker981
Posts: 12 Joined: Sat Jan 27, 2007 4:21 am
Post
by gamemaker981 » Wed Mar 21, 2007 2:29 am
Why did I choose Irrlicht? Simple: It has the most helpful tutorials.