StripTrack OGRE addon !
- Troglodit
- Gremlin
- Posts: 160
- Joined: Tue May 25, 2004 2:18 pm
- Location: Ukraine/Ternopil
- Contact:
StripTrack OGRE addon !
Hello everyone!
I represent an OGRE xUSSR community and whant to share with you some of our news.
Recently, we announced a competition for the best implementation of OGRE addon entitled "Tail for moving object" or StripTrack.
The competition was presented two works, which we present for your attention.
The authors of the work - Rageous and Five_stars. The winner of the competition is Rageous, so we recommend look to his work first. Actually Five_stars's demos is not very stable, please do not pay attention.
At first look it might seem that our library duplicated RibbonTrail's functionality, but you will see an obvious difference looking at this video:
VIDEO
In addition, it has functionality such as Wind, many types of cutting the "tail", and other options like a normal building.
You can download the source code: http://www.ogre3d.ru/request.php?17
And here compiled Demos: http://www.ogre3d.ru/request.php?16
I represent an OGRE xUSSR community and whant to share with you some of our news.
Recently, we announced a competition for the best implementation of OGRE addon entitled "Tail for moving object" or StripTrack.
The competition was presented two works, which we present for your attention.
The authors of the work - Rageous and Five_stars. The winner of the competition is Rageous, so we recommend look to his work first. Actually Five_stars's demos is not very stable, please do not pay attention.
At first look it might seem that our library duplicated RibbonTrail's functionality, but you will see an obvious difference looking at this video:
VIDEO
In addition, it has functionality such as Wind, many types of cutting the "tail", and other options like a normal building.
You can download the source code: http://www.ogre3d.ru/request.php?17
And here compiled Demos: http://www.ogre3d.ru/request.php?16
Arsen Gnatkivsky
game development, programming, modeling.
Magic of Stonehenge demo
http://www.ogre3d.ru - Russian OGRE site. Welcome !
game development, programming, modeling.
Magic of Stonehenge demo
http://www.ogre3d.ru - Russian OGRE site. Welcome !
-
- Gnome
- Posts: 331
- Joined: Thu Oct 25, 2007 12:21 pm
- Location: The Netherlands
- oddrose
- Orc
- Posts: 470
- Joined: Thu Feb 15, 2007 2:08 pm
- Location: Gothenburg, Sweden
- Contact:
- Rageous
- Gnoblar
- Posts: 23
- Joined: Sun Sep 05, 2004 3:28 am
- Location: russia
- Contact:
Good [getlocaltime()] everyone!
You can use icq (144666557) or email (can be found in sources) to ask any questions regarding my implementation
By the way, the demos included into first post have rather low fps (30fps for 7k triangles on my ATI 9600XT / P4 3.2GHz). I can't tell right now, why it's so low, since haven't taken a look at the demos sources, but usually it's much higher (170fps for 40k triangles on my demo for example). So don't afraid of high impact on performance: most likely library speed will satisfy your requests.
By the way, the demos included into first post have rather low fps (30fps for 7k triangles on my ATI 9600XT / P4 3.2GHz). I can't tell right now, why it's so low, since haven't taken a look at the demos sources, but usually it's much higher (170fps for 40k triangles on my demo for example). So don't afraid of high impact on performance: most likely library speed will satisfy your requests.
- Troglodit
- Gremlin
- Posts: 160
- Joined: Tue May 25, 2004 2:18 pm
- Location: Ukraine/Ternopil
- Contact:
No, there is no TagPoint usage. You can just attach tails to nodes and bones (to bones through DoubleNodeAdapter).how it's implemented, i mean, that could be made with a tag point
Also you can create two tails by using one strip track by dividing tail with separators. Also you can attach solid tail to many bones and points.
Pay you attention that node or bone sets separately for every emiter point. (addVertex function)
Example with bones:
Code: Select all
DoubleNodeAdapter* bone1=new DoubleNodeAdapter( mSceneNode[i], ent->getSkeleton()->getBone( "neck" ) );
DoubleNodeAdapter* bone2=new DoubleNodeAdapter( mSceneNode[i], ent->getSkeleton()->getBone( "Spine01" ) );
StripTrack *strip = stripTrackManager->createStripTrack( "strip" +StringConverter::toString(i));
strip->setMaterialName( "StripTrack" );
strip->setSegmentsQuote( quote );
strip->setGenerateNormals( normals );
strip->setCutMode( cutMode, cutMode == StripTrack::CUT_MODE_BY_TIME ? cutTimeout : cutLength );
strip->setWind( Ogre::Vector3( 10.0f, -5.0f, -10.0f ) * (float)wind, 10.0f * turbulence );
strip->beginVertexInput();
strip->addVertex( Ogre::Vector3( 0.0f, 0.0f, 0.0f ), bone1 );
strip->addVertex( Ogre::Vector3( 0.0f, 0.0f, 0.0f ), bone2 );
strip->endVertexInput();
strip->setWind( Ogre::Vector3( 0, 5.0f, 0.0f ) * (float)wind, 10.0f * turbulence );
Code: Select all
StripTrack *strip = stripTrackManager->createStripTrack( "strip" +StringConverter::toString(i));
strip->setMaterialName( "StripTrack" );
strip->setCutMode( cutMode, cutMode == StripTrack::CUT_MODE_BY_TIME ? cutTimeout : cutLength );
strip->setWind( Ogre::Vector3( 10.0f, -5.0f, -10.0f ) * (float)wind, 10.0f * turbulence );
strip->beginVertexInput();
strip->addVertex( Ogre::Vector3( 0.0f, 0.0f, 0.0f ), headNode );
strip->addVertex( Ogre::Vector3( 0.0f, 0.0f, 100.0f ), headNode );
strip->endVertexInput();
strip->setWind( Ogre::Vector3( 10.0f, -5.0f, -10.0f ) * (float)wind, 10.0f * turbulence );
Last edited by Troglodit on Wed Jan 02, 2008 1:02 am, edited 1 time in total.
Arsen Gnatkivsky
game development, programming, modeling.
Magic of Stonehenge demo
http://www.ogre3d.ru - Russian OGRE site. Welcome !
game development, programming, modeling.
Magic of Stonehenge demo
http://www.ogre3d.ru - Russian OGRE site. Welcome !
- Troglodit
- Gremlin
- Posts: 160
- Joined: Tue May 25, 2004 2:18 pm
- Location: Ukraine/Ternopil
- Contact:
Thanks to all ! We are glad that you like it. Also we hope it will be usefull for you
Arsen Gnatkivsky
game development, programming, modeling.
Magic of Stonehenge demo
http://www.ogre3d.ru - Russian OGRE site. Welcome !
game development, programming, modeling.
Magic of Stonehenge demo
http://www.ogre3d.ru - Russian OGRE site. Welcome !