Say Hello To My Little Friends a.k.a Lasers For Blaze : PG

Announce new projects or updates of Irrlicht Engine related tools, games, and applications.
Also check the Wiki
mohaps
Posts: 248
Joined: Tue Jun 08, 2004 1:54 pm
Location: Shrewsbury MA
Contact:

Say Hello To My Little Friends a.k.a Lasers For Blaze : PG

Post by mohaps »

Image

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
jox
Bug Slayer
Posts: 726
Joined: Thu Apr 22, 2004 6:55 pm
Location: Germany

Post by jox »

Looks more like throwing sparklers ;)
It is like it is. And because it is like it is, things are like they are.
mohaps
Posts: 248
Joined: Tue Jun 08, 2004 1:54 pm
Location: Shrewsbury MA
Contact:

Post by mohaps »

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...
---
Saurav Mohapatra
author, artist and bona fide geek

web: http://www.mohaps.com
email: mohaps AT gmail DOT com
jox
Bug Slayer
Posts: 726
Joined: Thu Apr 22, 2004 6:55 pm
Location: Germany

Post by jox »

How bout something like this:

Image

:)
It is like it is. And because it is like it is, things are like they are.
mohaps
Posts: 248
Joined: Tue Jun 08, 2004 1:54 pm
Location: Shrewsbury MA
Contact:

Post by mohaps »

getting inspired from jox's image

Image
---
Saurav Mohapatra
author, artist and bona fide geek

web: http://www.mohaps.com
email: mohaps AT gmail DOT com
jox
Bug Slayer
Posts: 726
Joined: Thu Apr 22, 2004 6:55 pm
Location: Germany

Post by jox »

A little bit better :)

The regular billboards are not so much suitable for laser beams, are they?

You'll probably need to create some special laser beam scene nodes... :)
It is like it is. And because it is like it is, things are like they are.
TheRLG
Posts: 372
Joined: Thu Oct 07, 2004 11:20 pm

Post by TheRLG »

I agree, a new laser particle system would probly benefit ya more than billboards. Just create some kind tiny particle flow that oscillates over a given vector.... lmfao i have no idea what im talking about but those are fun words!
jox
Bug Slayer
Posts: 726
Joined: Thu Apr 22, 2004 6:55 pm
Location: Germany

Post by jox »

:)

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.
mohaps
Posts: 248
Joined: Tue Jun 08, 2004 1:54 pm
Location: Shrewsbury MA
Contact:

Post by mohaps »

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...
---
Saurav Mohapatra
author, artist and bona fide geek

web: http://www.mohaps.com
email: mohaps AT gmail DOT com
jox
Bug Slayer
Posts: 726
Joined: Thu Apr 22, 2004 6:55 pm
Location: Germany

Post by jox »

Curious to see this in action :)
It is like it is. And because it is like it is, things are like they are.
mohaps
Posts: 248
Joined: Tue Jun 08, 2004 1:54 pm
Location: Shrewsbury MA
Contact:

Post by mohaps »

okay jox..this is the first shot of the "SqugglyLines" framework..

Image

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;
};
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
  • beam weapons
  • arc discharges
  • special f/x
I am working on some advanced versions of th eSquiggly Line framework for supporting particle system semantics and making this a full fledged scene node
[/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
rabidlockergnome unlogged

Post by rabidlockergnome unlogged »

ooooooh purrty!!! u da man!
mohaps
Posts: 248
Joined: Tue Jun 08, 2004 1:54 pm
Location: Shrewsbury MA
Contact:

Post by mohaps »

I added billboard support to squiggly lines and now it looks like
Image
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
mohaps
Posts: 248
Joined: Tue Jun 08, 2004 1:54 pm
Location: Shrewsbury MA
Contact:

Post by mohaps »

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
Image



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
mohaps
Posts: 248
Joined: Tue Jun 08, 2004 1:54 pm
Location: Shrewsbury MA
Contact:

Post by mohaps »

the site http://www.etvig.com/istuff/blaze/squiggly.html now contains a demo executable with data showcasing the system... :)

'njoy :P
---
Saurav Mohapatra
author, artist and bona fide geek

web: http://www.mohaps.com
email: mohaps AT gmail DOT com
Post Reply