Tree Scene Node v2.1

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

Postby christianclavet » Thu Jul 30, 2009 6:06 am

Wow. This still compile and run under 1.6SVN (only got 6 warning into MSVC)
Downloaded the "proceduralTrees" archive from the last messages in this thread to check if it was still working. It really does! :D
Image

I had a 10 FPS framerate, I checked the code and found at line 236:
Code: Select all
device->sleep(100);

replaced it with:
Code: Select all
device->yield();

The 10FPS was anoying me as first I was thinking it was the tree node that was very process intensive. Now the display show around 500 FPS here.. :) Much better.
User avatar
christianclavet
 
Posts: 1383
Joined: Mon Apr 30, 2007 3:24 am
Location: Montreal, CANADA

Postby marmz » Thu Jul 30, 2009 9:32 am

Recompiled also Irrlicht with no optimization.


Program received signal SIGSEGV, Segmentation fault.
0x0804cab3 in irr::IReferenceCounted::drop () at ../../include/SMaterial.h:251
251 //! Sets the i-th texture
Current language: auto; currently c++

(gdb) bt
#0 0x0804cab3 in irr::IReferenceCounted::drop () at ../../include/SMaterial.h:251
#1 0x0804bf57 in main ()

That's all... :roll:
marmz
 
Posts: 7
Joined: Wed Jul 29, 2009 2:48 pm

Postby hybrid » Thu Jul 30, 2009 11:19 am

Looks like you didn't compile your app with -g, so symbols are missing. But I still think that you call drop on something you shouldn't. Do you drop a scene node which is part of the scene graph?
hybrid
Admin
 
Posts: 13943
Joined: Wed Apr 19, 2006 9:20 pm
Location: Oldenburg(Oldb), Germany

Postby marmz » Thu Jul 30, 2009 11:31 am

The app is the main program in Procedural Trees (latest version). I wrote no app for now.
I recompiled it with -g flag.
GDB output:
-------------------------------------------------------------------------------------------------------
Program received signal SIGSEGV, Segmentation fault.
0x0804cab3 in irr::IReferenceCounted::drop (this=0x0) at ../../include/IReferenceCounted.h:116
116 --ReferenceCounter;
(gdb) bt
#0 0x0804cab3 in irr::IReferenceCounted::drop (this=0x0) at ../../include/IReferenceCounted.h:116
#1 0x0804bf57 in main () at main.cpp:142

--------------------------------------------------------------------------------------------------------
Here's the function....
--------------------------------------------------------------------------------------------------------

int main()
{
srand( (u32)time(0) ); // This is to generate random seeds.

IrrlichtDevice* device = createDevice( video::EDT_OPENGL );

CEventReceiver receiver;
device->setEventReceiver( &receiver );

manager = device->getSceneManager();
driver = device->getVideoDriver();

gui::IGUIEnvironment* guienv = device->getGUIEnvironment();
//
// Load tree designs
//
for ( s32 i=0; i<NUM_TREE_DESIGNS; i++ )
{
treeDesigns[i].Generator = new CTreeGenerator( manager );

io::IXMLReader* xml = device->getFileSystem()->createXMLReader( treeDesignFiles[i].DesignFile );

treeDesigns[i].Generator->loadFromXML( xml );

xml->drop();

treeDesigns[i].TreeTexture = driver->getTexture( treeDesignFiles[i].TreeTextureFile );

treeDesigns[i].LeafTexture = driver->getTexture( treeDesignFiles[i].LeafTextureFile );

treeDesigns[i].BillTexture = driver->getTexture( treeDesignFiles[i].BillTextureFile );
}

......
......
......
---------------------------------------------------------------------------------------------------------

I'm not enough skilled in this to debug it, please help! :oops:
marmz
 
Posts: 7
Joined: Wed Jul 29, 2009 2:48 pm

SOLVED

Postby marmz » Thu Jul 30, 2009 1:15 pm

Ok.. it was much simple than i expected...
I was putting executable in wrong place... :shock:
now i created a folder bin/ inside project folder.. and put executable there.
and now it loads xml design and textures.

thank u for help.. :oops: program is very nice :lol:
marmz
 
Posts: 7
Joined: Wed Jul 29, 2009 2:48 pm

Postby Darktib » Mon Aug 24, 2009 6:26 pm

For those who doesn't want to edit manually xml files, I have created a tree editor here
User avatar
Darktib
 
Posts: 122
Joined: Sun Mar 23, 2008 8:25 pm
Location: France

Postby devsh » Tue Nov 03, 2009 9:06 pm

it would be a good idea to have reliefmaps and normal maps for the bark for some of the next-gen users :)
Portfolio (WIP) and Development Blog:
http://indirectlightandmagic.tumblr.com/

Do you want to hire a GLSL graphics programmer cheaply???
Try me!
http://indirectlightandmagic.tumblr.com/contact
User avatar
devsh
Competition winner
 
Posts: 1303
Joined: Tue Dec 09, 2008 6:00 pm
Location: UK

Postby Virion » Tue Nov 03, 2009 11:37 pm

devsh wrote:it would be a good idea to have reliefmaps and normal maps for the bark for some of the next-gen users :)

one of the things that we've suggested on another thread is that we include some precoded shaders into irrlicht so that users can use it directly without need to write it themselves. integrate that feature into this particular addon shouldn't be hard then. you could be interested in this.
User avatar
Virion
 
Posts: 2102
Joined: Mon Dec 18, 2006 5:04 am
Location: Malaysia

Postby Chet » Sun Nov 22, 2009 5:11 am

christianclavet wrote:Wow. This still compile and run under 1.6SVN (only got 6 warning into MSVC)
Downloaded the "proceduralTrees" archive from the last messages in this thread to check if it was still working. It really does! :D

14 pages of thread here with lots of downloads, which one do I start with to try this out?
Chet
 
Posts: 53
Joined: Wed Sep 10, 2008 5:34 am

Postby Darktib » Sun Nov 22, 2009 8:58 am

If you just want to see the capabilities of this excellent node, you can check the TreeEditor I've done, which uses this scene node

http://irrlicht.sourceforge.net/phpBB2/ ... hp?t=34811

Else, the first download link should work.
User avatar
Darktib
 
Posts: 122
Joined: Sun Mar 23, 2008 8:25 pm
Location: France

Postby Chet » Mon Nov 23, 2009 11:26 am

First link in thread does not seem to work.
Chet
 
Posts: 53
Joined: Wed Sep 10, 2008 5:34 am

Postby Mikhail9 » Thu Nov 26, 2009 6:22 am

As others have noted, I also find the scaling does not work. The trunks scale properly but the leaves do not. If you keep scaling the tree down, you just end up with a big puff-ball of leaves (that are too big).

Perhaps I'm doing something wrong, but in examining the code, I do see the scale vector being passed to the underlying scene node. However, it isn't passed to the billboard group that draws the leaves. Modifying the code to send it there via the constructor doesn't seem to help, though.

Anybody manage to get these wonderful trees to scale well?
Mikhail9
 
Posts: 54
Joined: Mon Jun 29, 2009 8:41 am

Postby polylux » Wed Jan 27, 2010 1:05 pm

Gidday!

As far as I've seen some ppl have brought it up already but noone really replied, so:
How do I get the irrEdit plugin to work? I am using irrEdit 1.5 and the "latest" tree plug-in. irrEdit's output isn't really "verbose", the only thing I see is the splash screen, then crash report and that's it. Removing the plug-in bings irrEdit back to live immediately.

Suggestions very welcome! :)

Cheers,
p.
beer->setMotivationCallback(this);
User avatar
polylux
 
Posts: 210
Joined: Thu Aug 27, 2009 12:39 pm
Location: EU, Austria

Postby hybrid » Wed Jan 27, 2010 1:19 pm

You need to compile the plugin with the same version as irrEdit uses. Otherwise this will definitely crash.
hybrid
Admin
 
Posts: 13943
Joined: Wed Apr 19, 2006 9:20 pm
Location: Oldenburg(Oldb), Germany

Postby polylux » Wed Jan 27, 2010 1:26 pm

Well, THAT could be a solution! :) Sorry for having posted before giving this a try. I thought the plugins would be kinda generic.

Anyways, thanks for the quick reply! ;)
beer->setMotivationCallback(this);
User avatar
polylux
 
Posts: 210
Joined: Thu Aug 27, 2009 12:39 pm
Location: EU, Austria

PreviousNext

Return to Project Announcements

Who is online

Users browsing this forum: No registered users and 1 guest