Say Hello To My Little Friends a.k.a Lasers For Blaze : PG
Say Hello To My Little Friends a.k.a Lasers For Blaze : PG
first cut of the laser system... experimenting and still tons of bugs to shift through but basics are working..
---
Saurav Mohapatra
author, artist and bona fide geek
web: http://www.mohaps.com
email: mohaps AT gmail DOT com
Saurav Mohapatra
author, artist and bona fide geek
web: http://www.mohaps.com
email: mohaps AT gmail DOT com
yeah..i simulated the lasers more like a machinegun than the beam weapons... so each bolt is like a bullet
i shall be adding particle systems and all later.. once i iron out the collision and entity update bugs...
then it shall look like a solid beam...
i shall be adding particle systems and all later.. once i iron out the collision and entity update bugs...
then it shall look like a solid beam...
---
Saurav Mohapatra
author, artist and bona fide geek
web: http://www.mohaps.com
email: mohaps AT gmail DOT com
Saurav Mohapatra
author, artist and bona fide geek
web: http://www.mohaps.com
email: mohaps AT gmail DOT com
---
Saurav Mohapatra
author, artist and bona fide geek
web: http://www.mohaps.com
email: mohaps AT gmail DOT com
Saurav Mohapatra
author, artist and bona fide geek
web: http://www.mohaps.com
email: mohaps AT gmail DOT com
A start would maybe be a billboard scene node that aligns its length to the laser ray and the face to the camera center.
edit: the disadvantage of this is, the closer the direction of the laser ray to the viewing direction of the camera is, the less will be visible from the laser texture...
It is like it is. And because it is like it is, things are like they are.
I am experimenting with what i call "squiggly lines" (hat is a technical term )
basically...it is sort of particle system... which is in effect a line segment...
so every cycle... depending on the length of the line segment points are generated from the beginning to the end... and randomized a little to give a electric discharge feel...
five or six of these together can create an electric arc like effect...
this can work for beam weapon discharges / tractor beams also...
basically...it is sort of particle system... which is in effect a line segment...
so every cycle... depending on the length of the line segment points are generated from the beginning to the end... and randomized a little to give a electric discharge feel...
five or six of these together can create an electric arc like effect...
this can work for beam weapon discharges / tractor beams also...
---
Saurav Mohapatra
author, artist and bona fide geek
web: http://www.mohaps.com
email: mohaps AT gmail DOT com
Saurav Mohapatra
author, artist and bona fide geek
web: http://www.mohaps.com
email: mohaps AT gmail DOT com
okay jox..this is the first shot of the "SqugglyLines" framework..
and this the public interface of the squiggly line
initialize using the sets and
just call draw() in your thingie...
this class can be used for
[/list]
Code: Select all
class SquigglyLine
{
public:
SquigglyLine();
virtual ~SquigglyLine();
void draw(const u32 deltaMillis, IrrlichtDevice* device);
void setStartPoint(const vector3df& v){ startPoint = v; }
void setEndPoint(const vector3df& v){ endPoint = v; }
void setSegmentCount(const u32 count){ if(count == 0){ segmentCount = 1; } else { segmentCount = count;}}
void setLineColor(const SColor& c){ lineColor = c; }
void setAmplitude(const f32 v){ amplitude = v; }
void setThickness(const u32 v){ thickness = (thickness==0)?1:v; }
const f32 getLength() const;
const f32 getLengthSquared() const;
const vector3df& getStartPoint() const{ return startPoint; }
const vector3df& getEndPoint() const{ return endPoint; }
const u32 getSegmentCount() const{ return segmentCount; }
const SColor getLineColor() const{ return lineColor; }
const f32 getAmplitude() const{ return amplitude; }
const u32 getThickness() const{ return thickness; }
private:
void generateLine(array<vector3df>& points);
vector3df startPoint;
vector3df endPoint;
u32 segmentCount;
SColor lineColor;
f32 amplitude;
u32 thickness;
};
initialize using the sets and
just call draw() in your thingie...
this class can be used for
- beam weapons
- arc discharges
- special f/x
[/list]
Last edited by mohaps on Tue Mar 22, 2005 3:18 pm, edited 2 times in total.
---
Saurav Mohapatra
author, artist and bona fide geek
web: http://www.mohaps.com
email: mohaps AT gmail DOT com
Saurav Mohapatra
author, artist and bona fide geek
web: http://www.mohaps.com
email: mohaps AT gmail DOT com
I added billboard support to squiggly lines and now it looks like
Click on the image to download a mpeg video of the system in action
In theory it is a particle system with fixed particles which oscillate about a mean position as suggested by Rabid Locker Gnome...
The amplitude determines just how much the particles oscillate and the thickness determines how many lines are to be drawn...
Click on the image to download a mpeg video of the system in action
In theory it is a particle system with fixed particles which oscillate about a mean position as suggested by Rabid Locker Gnome...
The amplitude determines just how much the particles oscillate and the thickness determines how many lines are to be drawn...
Last edited by mohaps on Tue Mar 22, 2005 4:31 pm, edited 1 time in total.
---
Saurav Mohapatra
author, artist and bona fide geek
web: http://www.mohaps.com
email: mohaps AT gmail DOT com
Saurav Mohapatra
author, artist and bona fide geek
web: http://www.mohaps.com
email: mohaps AT gmail DOT com
I have uploaded a Demo Executable and MPEG Video of the Squiggly Line System in action
at http://www.etvig.com/istuff/blaze/squiggly.html
enjoy
working on making it a scene node...
at http://www.etvig.com/istuff/blaze/squiggly.html
enjoy
working on making it a scene node...
Last edited by mohaps on Tue Mar 22, 2005 5:54 pm, edited 1 time in total.
---
Saurav Mohapatra
author, artist and bona fide geek
web: http://www.mohaps.com
email: mohaps AT gmail DOT com
Saurav Mohapatra
author, artist and bona fide geek
web: http://www.mohaps.com
email: mohaps AT gmail DOT com
the site http://www.etvig.com/istuff/blaze/squiggly.html now contains a demo executable with data showcasing the system...
'njoy
'njoy
---
Saurav Mohapatra
author, artist and bona fide geek
web: http://www.mohaps.com
email: mohaps AT gmail DOT com
Saurav Mohapatra
author, artist and bona fide geek
web: http://www.mohaps.com
email: mohaps AT gmail DOT com