at http://www.etvig.com/istuff/blaze/squiggly.html

enjoy

working on making it a scene node...
you can see its evolution in this post http://irrlicht.sourceforge.net/phpBB2/ ... php?t=6008
Code: Select all
SizzlerSceneNode* sizzler = new SizzlerSceneNode(getDevice()->getSceneManager(),
startNode,
1,
vector3df(0,0,0),
endNode->getAbsolutePosition(),
false,
SColor(100,200,240,230),
100,
bbTex,
35,
10,
20);
Code: Select all
class SizzlerSceneNode : public ISceneNode
{
public:
SizzlerSceneNode(ISceneManager* smgrPtr, //scene manager
ISceneNode* parentNode=0, // parent node
s32 nodeId = -1,//node id
const vector3df& startPointPosition = vector3df(0,0,0), //the start position
const vector3df& endPointPosition = vector3df(0,200,0), // the end position
bool endPointIsRelative = true, //is end point in model space or world space
const SColor& lineColorValue = SColor(100,200,240,230), // color of the lines
s32 segmentCountValue=50, // number of segments
ITexture* bbTexture=0, // billboard texture
s32 billboardSizeValue=30, // billboard square size
s32 thicknessValue=10, // number of lines
f32 amplitudeValue=20); // oscillation amplitude for lines about mean position
};
Code: Select all
sizzler = new SizzlerSceneNode(getDevice()->getSceneManager(),
startNode,
1,
vector3df(0,0,0),
endNode->getAbsolutePosition(),
false,
SColor(100,200,240,230),
100,
bbTex,
35,
10,
20);