PathCreator

Announce new projects or updates of Irrlicht Engine related tools, games, and applications.
Also check the Wiki
kazymjir
Posts: 727
Joined: Sat Feb 20, 2010 4:05 pm
Location: Munich, Bayern

PathCreator

Post by kazymjir »

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
Last edited by kazymjir on Wed Feb 02, 2011 7:26 pm, edited 1 time in total.
BlindSide
Admin
Posts: 2821
Joined: Thu Dec 08, 2005 9:09 am
Location: NZ!

Post by BlindSide »

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!
ShadowMapping for Irrlicht!: Get it here
Need help? Come on the IRC!: #irrlicht on irc://irc.freenode.net
kazymjir
Posts: 727
Joined: Sat Feb 20, 2010 4:05 pm
Location: Munich, Bayern

Post by kazymjir »

Thanks BlindSide !
I think videos are the best medium to present something, it's better than static text and images.
Last edited by kazymjir on Sat May 29, 2010 1:53 pm, edited 1 time in total.
Iyad
Posts: 140
Joined: Sat Mar 07, 2009 1:18 am
Location: Montreal, Canada

Post by Iyad »

It is extremely usefull, simple and working really good.

Im going to use it for Bots waypoints and camera cinematics.
Thanks alot for this code.
#include <Iyad.h>
Virion
Competition winner
Posts: 2148
Joined: Mon Dec 18, 2006 5:04 am

Post by Virion »

this is awesome!! i would like to try it on my level editor soon. 8)
netpipe
Posts: 669
Joined: Fri Jun 06, 2008 12:50 pm
Location: Edmonton, Alberta, Canada
Contact:

Post by netpipe »

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.
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%
kazymjir
Posts: 727
Joined: Sat Feb 20, 2010 4:05 pm
Location: Munich, Bayern

Post by kazymjir »

REDDemon
Developer
Posts: 1044
Joined: Tue Aug 31, 2010 8:06 pm
Location: Genova (Italy)

Post by REDDemon »

I'll use spline waypoint to. You saved me for write my own class that does the same :-*
Junior Irrlicht Developer.
Real value in social networks is not about "increasing" number of followers, but about getting in touch with Amazing people.
- by Me
teto
Posts: 159
Joined: Thu Dec 03, 2009 9:37 pm
Location: /home
Contact:

Post by teto »

I haven't tried it yet but I think it will prove useful in my project too so thx again for sharing it.
Using trunk with mingw/gcc 4.6, Windows 7 64 bits driver opengl
teto
Posts: 159
Joined: Thu Dec 03, 2009 9:37 pm
Location: /home
Contact:

Re: PathCreator

Post by teto »

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
Virion
Competition winner
Posts: 2148
Joined: Mon Dec 18, 2006 5:04 am

Re: PathCreator

Post by Virion »

I have told kazymjir about this on facebook lol he will see the message when he woke up
kazymjir
Posts: 727
Joined: Sat Feb 20, 2010 4:05 pm
Location: Munich, Bayern

Re: PathCreator

Post by kazymjir »

Thanks Virion for message!

Unfortunately, I lost all files, but maybe Tecan can still have them somewhere, I've sent him PM.
hybrid
Admin
Posts: 14143
Joined: Wed Apr 19, 2006 9:20 pm
Location: Oldenburg(Oldb), Germany
Contact:

Re: PathCreator

Post by hybrid »

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.
kazymjir
Posts: 727
Joined: Sat Feb 20, 2010 4:05 pm
Location: Munich, Bayern

Re: PathCreator

Post by kazymjir »

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
kazymjir
Posts: 727
Joined: Sat Feb 20, 2010 4:05 pm
Location: Munich, Bayern

Re: PathCreator

Post by kazymjir »

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
Post Reply