Newest particle effect creation: Pentagram
Forum rules
This forum houses many years of development, tracing back to some of the earliest posts that exist on the board.
Its current use is for the continued development of the server and game it has always served: TMW Classic.
Newest particle effect creation: Pentagram
A pentagram on the ground created with 5 linear emitters:
Code: http://rafb.net/p/PxXzuw40.html
(requires latest SVN version)
To create this I had to use a little trick to create linear emitters with a desired angle and length. The trick was to create an emitter that spawns invisible particles in the desired angle with powers between 0 and the desired length and a lifetime of 1. Then you can give these particles child emitters which spawn the visible particles you are seeing.
Now I just had to create 5 emitters like that and calculate their positions and angles with a bit applied trigonometry and a pocket calculator.
Code: http://rafb.net/p/PxXzuw40.html
(requires latest SVN version)
To create this I had to use a little trick to create linear emitters with a desired angle and length. The trick was to create an emitter that spawns invisible particles in the desired angle with powers between 0 and the desired length and a lifetime of 1. Then you can give these particles child emitters which spawn the visible particles you are seeing.
Now I just had to create 5 emitters like that and calculate their positions and angles with a bit applied trigonometry and a pocket calculator.
- former Manasource Programmer
- former TMW Pixel artist
- NOT a game master
Please do not send me any inquiries regarding player accounts on TMW.
You might have heard a certain rumor about me. This rumor is completely false. You might also have heard the other rumor about me. This rumor is 100% accurate.
Re: Newest particle effect creation: Pentagram
With a circle around it:
Code: http://rafb.net/p/ppwktx74.html
A circle-shaped emitter can be created with the same technique. The only difference is that instead of a fixed angle with a variable power you use a variable angle (between 0 and 360) and a fixed power (the radius).
The circle emitter is the first emitter in the file.
When you make both the angle and the power variable you will get a filled circle with a notable concentration in the center (this one is without the pentagram):
Code: http://rafb.net/p/ppwktx74.html
A circle-shaped emitter can be created with the same technique. The only difference is that instead of a fixed angle with a variable power you use a variable angle (between 0 and 360) and a fixed power (the radius).
The circle emitter is the first emitter in the file.
When you make both the angle and the power variable you will get a filled circle with a notable concentration in the center (this one is without the pentagram):
- former Manasource Programmer
- former TMW Pixel artist
- NOT a game master
Please do not send me any inquiries regarding player accounts on TMW.
You might have heard a certain rumor about me. This rumor is completely false. You might also have heard the other rumor about me. This rumor is 100% accurate.
Re: Newest particle effect creation: Pentagram
wow, that looks great
// GonzoDark
// GonzoDark
IchigoBlack (86) a.k.a GonzoDark (80) || HolyManaClan
Re: Newest particle effect creation: Pentagram
In nomine dei nostri Satanas luciferi excelsi I like it. :twisted:
Regards.
Regards.
Re: Newest particle effect creation: Pentagram
Ave Satanas I also like itPlatyna wrote:In nomine dei nostri Satanas luciferi excelsi I like it.
Regards.
Pixel Battalion
Re: Newest particle effect creation: Pentagram
Ave Crush :) I do like it :P
Now try something harder... The Sierpinski Triangle Fractal.
Now try something harder... The Sierpinski Triangle Fractal.
Re: Newest particle effect creation: Pentagram
I am afraid filled triangular shapes are not possible with the particle engine. The closest thing I could imagine are filled circle segments ("pizza slices"). These can be created by creating a filled circle and limit the range of the angle.
But I think that it should be possible to create a filled parallelogram by chaining two linear emitters.
But I think that it should be possible to create a filled parallelogram by chaining two linear emitters.
- former Manasource Programmer
- former TMW Pixel artist
- NOT a game master
Please do not send me any inquiries regarding player accounts on TMW.
You might have heard a certain rumor about me. This rumor is completely false. You might also have heard the other rumor about me. This rumor is 100% accurate.
Re: Newest particle effect creation: Pentagram
Technically, as you take the fractal further, the filled parts get smaller and more separated. All we'd need is the outline of the triangles.
Re: Newest particle effect creation: Pentagram
the circle of the pentagram lacks perspective
I found this on the web, it's not the right angle, but just to give an idea ....
Notice that the middle of the perspective (line cc) is higher then the middle of the flat image (line ee) so it's not a perfect ellips, the bottom half is bigger then the top half. Of course the problem is that the tiles used in the game don't respect the perspective either, but since they are squared it doesn't stand out that much.
I found this on the web, it's not the right angle, but just to give an idea ....
Notice that the middle of the perspective (line cc) is higher then the middle of the flat image (line ee) so it's not a perfect ellips, the bottom half is bigger then the top half. Of course the problem is that the tiles used in the game don't respect the perspective either, but since they are squared it doesn't stand out that much.
In game characters: "5t3v3" and "L "
Re: Newest particle effect creation: Pentagram
The perspective is correct. We are using orhogonal perspective in TMW, not vanishing point perspective. Introducing objects in vanishing point perspective would look wrong.
- former Manasource Programmer
- former TMW Pixel artist
- NOT a game master
Please do not send me any inquiries regarding player accounts on TMW.
You might have heard a certain rumor about me. This rumor is completely false. You might also have heard the other rumor about me. This rumor is 100% accurate.
- Modanung
- Grand Knight
- Posts: 1719
- Joined: 20 May 2005, 15:51
- Location: Groningen, The Netherlands
- Contact:
Re: Newest particle effect creation: Pentagram
Nice. The circle will come in handy no doubt.
If you're looking for 3D FOSS games be sure to check out LucKey Productions on itch.io