PathCreator
PathCreator
PathCreator
It's a smart library to help in generating paths for createFollowSplineAnimator.
This is screenshot how it works:
http://img51.imageshack.us/img51/3596/screenshot2iw.png
Little tutorial how to use it:
1. Include header file and create instance of PathCreator
Constructor params:
driver - pointer to driver (needed to draw a line on scene)
node - usually camera, from this node code will get point positions while addPath() is called (node->getPosition())
filename - path to output file, where waypoints should be saved
arrayname - name of array to create in new file
2. Add calls to basic methods from PathCreator
Usually attached to IEventManager key-down events, but you can use it as you want.
addPath() - adding a new point to path
delPath() - remove last point from path
conPath() - connect first point and last point of path
save() - save path to a output file
3. Add drawPath() to main render loop
REMEMBER! drawPath() must be after beginScene() method!
And it's everything !
You can also use some optional functions to configure PathCreator:
setColor(SColor) - set path color
setNamespaceLvl(int) - set namespace level generated in output file, possible values is:
0 - no namespace (eg. vector3df() )
1 - core:: (eg. core::vector3df() )
2 - irr::core:: (eg. irr::core::vector3df() )
This is first version of PathCreator and not last!
I have some more ideas for this project, but don't have time now to implement them
Source code and example is here (you will need map-20kdm2.pk3 from Irrlicht examples media to run demo):
http://tecan.ath.cx/tecan/share/downloa ... ile=117201
(thanks Tecan for hosting! )
UPDATE:
New download link:
http://www.mediafire.com/?mnbr6czuz4d8d7n
It's a smart library to help in generating paths for createFollowSplineAnimator.
This is screenshot how it works:
http://img51.imageshack.us/img51/3596/screenshot2iw.png
Little tutorial how to use it:
1. Include header file and create instance of PathCreator
Constructor params:
driver - pointer to driver (needed to draw a line on scene)
node - usually camera, from this node code will get point positions while addPath() is called (node->getPosition())
filename - path to output file, where waypoints should be saved
arrayname - name of array to create in new file
2. Add calls to basic methods from PathCreator
Usually attached to IEventManager key-down events, but you can use it as you want.
addPath() - adding a new point to path
delPath() - remove last point from path
conPath() - connect first point and last point of path
save() - save path to a output file
3. Add drawPath() to main render loop
REMEMBER! drawPath() must be after beginScene() method!
And it's everything !
You can also use some optional functions to configure PathCreator:
setColor(SColor) - set path color
setNamespaceLvl(int) - set namespace level generated in output file, possible values is:
0 - no namespace (eg. vector3df() )
1 - core:: (eg. core::vector3df() )
2 - irr::core:: (eg. irr::core::vector3df() )
This is first version of PathCreator and not last!
I have some more ideas for this project, but don't have time now to implement them
Source code and example is here (you will need map-20kdm2.pk3 from Irrlicht examples media to run demo):
http://tecan.ath.cx/tecan/share/downloa ... ile=117201
(thanks Tecan for hosting! )
UPDATE:
New download link:
http://www.mediafire.com/?mnbr6czuz4d8d7n
Last edited by kazymjir on Wed Feb 02, 2011 7:26 pm, edited 1 time in total.
Nice video! Very well done and in-depth! I am a little inspired to create videos now myself. Your English did cause me to die but the Eastern European accent is always entertaining.
I hope to see more from you!
I hope to see more from you!
ShadowMapping for Irrlicht!: Get it here
Need help? Come on the IRC!: #irrlicht on irc://irc.freenode.net
Need help? Come on the IRC!: #irrlicht on irc://irc.freenode.net
this is awesome!! i would like to try it on my level editor soon.
My company: http://www.kloena.com
My blog: http://www.zhieng.com
My co-working space: http://www.deskspace.info
My blog: http://www.zhieng.com
My co-working space: http://www.deskspace.info
started trying to add bezier's to it. maybe someone knows what to actually do.
maybe averaging them together or something. not sure why it slows down either towards the end.
maybe averaging them together or something. not sure why it slows down either towards the end.
Last edited by netpipe on Fri May 29, 2020 10:15 pm, edited 1 time in total.
Live long and phosphor!
-- https://github.com/netpipe/Luna Game Engine Status 95%
-- https://github.com/netpipe/Luna Game Engine Status 95%
Updated download link:
http://www.mediafire.com/?mnbr6czuz4d8d7n
http://www.mediafire.com/?mnbr6czuz4d8d7n
Re: PathCreator
would it be possible to reupload it plz ? both links don't work as far as I am concerned
Using trunk with mingw/gcc 4.6, Windows 7 64 bits driver opengl
Re: PathCreator
I have told kazymjir about this on facebook lol he will see the message when he woke up
My company: http://www.kloena.com
My blog: http://www.zhieng.com
My co-working space: http://www.deskspace.info
My blog: http://www.zhieng.com
My co-working space: http://www.deskspace.info
Re: PathCreator
Thanks Virion for message!
Unfortunately, I lost all files, but maybe Tecan can still have them somewhere, I've sent him PM.
Unfortunately, I lost all files, but maybe Tecan can still have them somewhere, I've sent him PM.
-
- Admin
- Posts: 14143
- Joined: Wed Apr 19, 2006 9:20 pm
- Location: Oldenburg(Oldb), Germany
- Contact:
Re: PathCreator
All you contributors should really think about putting such nicely done things to the irrext project. It's not that SF won't never lose a file, but chances are really good that they will still have some backup around... And you get full project access, you can develop all your projects there.
Re: PathCreator
Still don't have response from Tecan.
But, look what I found after some googling:
http://www.msdnproject.com/code/1661299.htm
Somebody uploaded my project to this website, it gets 74497 Downloads :O
Try this download link: http://en.freesion.com/3865/4898908/41017778/
Not sure if this is working, I am getting "ip forbidden" error
But, look what I found after some googling:
http://www.msdnproject.com/code/1661299.htm
Somebody uploaded my project to this website, it gets 74497 Downloads :O
Try this download link: http://en.freesion.com/3865/4898908/41017778/
Not sure if this is working, I am getting "ip forbidden" error
Re: PathCreator
WOW!
I found PathCreator files in my old backup .zip file! I thought that I didn't have it there!
Grab it from: http://www.mediafire.com/?iv73t3393z55832
Sorry that it's again on cloud file hosting website, when I will have some more free time I will try upload it somewhere else
I found PathCreator files in my old backup .zip file! I thought that I didn't have it there!
Grab it from: http://www.mediafire.com/?iv73t3393z55832
Sorry that it's again on cloud file hosting website, when I will have some more free time I will try upload it somewhere else