Afterwarp Development  

Go Back   Afterwarp Development > Software/Game Development > Published Resources
Published Resources Post any source code, images and tools here that you want to share with the community.

Reply
 
Thread Tools Display Modes
  (#1) Old
2morrowMan 2morrowMan is offline
Administrator
2morrowMan is on a distinguished road
 
2morrowMan's Avatar
 
Posts: 237
Join Date: Oct 2005
Location: Ukraine
XParticles for Asphyre 4.x - 24-Feb-2007, 16:15

I'm found some time to release XParticles for Asphyre 4.
This version compatible with Asphyre 4.0.9.

Added a few new features.
Made some optimizations.
Now all particles saves to xml file, witch you can edit without XParticleEditor.

Sample app's shows you how to use it in your projects.

You can find already configured settings in pss folder with XParticle editor.

Any comments are wellcome.

P.S. I'm use XParticles and Asphyre 4 in my project few weeks and I can say XParticles is a little fastest now.
Attached Files
File Type: rar XParticles_1.8.0.rar (11.0 KB, 842 views)
File Type: rar XParticleEditor_1.5.0.rar (318.0 KB, 1808 views)
File Type: rar XPExamples.rar (473.5 KB, 2022 views)
Reply With Quote
  (#2) Old
The Wicked Flea The Wicked Flea is offline
Honoured
The Wicked Flea has much to be proud ofThe Wicked Flea has much to be proud ofThe Wicked Flea has much to be proud ofThe Wicked Flea has much to be proud ofThe Wicked Flea has much to be proud ofThe Wicked Flea has much to be proud ofThe Wicked Flea has much to be proud ofThe Wicked Flea has much to be proud of
 
The Wicked Flea's Avatar
 
Posts: 692
Join Date: Oct 2005
Location: world.usa.find('East Coast');
24-Feb-2007, 16:25

Thanks 2morrowMan, I'll give it a go a little later today/tomorrow.

EDIT: Why aren't the samples compiled? I wanted to see what they looked like without having to install the whole thing yet.


"If we knew what we were doing, it wouldn't be called research, would it?"
-- Albert Einstein

IntelliArchiver 1.00 RC1 is here!
Finished Projects: Just DIE Already!, Asphyre 4 Zip Archive Handler
Reply With Quote
  (#3) Old
BaziX BaziX is offline
Dedicated
BaziX is on a distinguished road
 
BaziX's Avatar
 
Posts: 25
Join Date: Oct 2005
Location: Czech Republic
Send a message via ICQ to BaziX
26-Feb-2007, 11:06

Hi !

Please look into the Release folder in each example. You'll find compiled example.


Ing. Michal Bazalka
Demo Or Die
Reply With Quote
  (#4) Old
The Wicked Flea The Wicked Flea is offline
Honoured
The Wicked Flea has much to be proud ofThe Wicked Flea has much to be proud ofThe Wicked Flea has much to be proud ofThe Wicked Flea has much to be proud ofThe Wicked Flea has much to be proud ofThe Wicked Flea has much to be proud ofThe Wicked Flea has much to be proud ofThe Wicked Flea has much to be proud of
 
The Wicked Flea's Avatar
 
Posts: 692
Join Date: Oct 2005
Location: world.usa.find('East Coast');
26-Feb-2007, 15:01

Huh, there's something wrong with my unzipper it seems. I couldn't find a single subdirectoy last time and only had the source extracted. That's really odd. Fixed that little thing up -- now to look for a better, free, archiver.

2morrowman, is there a way I could do the emitters in the style of fire text, but only for 1 given system? It looks like, from the sample, that the bitmap holds the only emitters.


"If we knew what we were doing, it wouldn't be called research, would it?"
-- Albert Einstein

IntelliArchiver 1.00 RC1 is here!
Finished Projects: Just DIE Already!, Asphyre 4 Zip Archive Handler
Reply With Quote
  (#5) Old
2morrowMan 2morrowMan is offline
Administrator
2morrowMan is on a distinguished road
 
2morrowMan's Avatar
 
Posts: 237
Join Date: Oct 2005
Location: Ukraine
27-Feb-2007, 09:11

Use EmittersAdd() procedure to add emitters.
In the editor at second Tab you can add emitters using dialog and save it to XML file.
procedure EmittersAddFromBitmap(Image: TBitmap; Color: Cardinal); scans a bitmap for pixels with specified color. Pixels with this color will be added as emitters.
Reply With Quote
  (#6) Old
BaziX BaziX is offline
Dedicated
BaziX is on a distinguished road
 
BaziX's Avatar
 
Posts: 25
Join Date: Oct 2005
Location: Czech Republic
Send a message via ICQ to BaziX
27-Feb-2007, 13:19

Hi 2morrowman !

I've tried to compile your two examples, but following problems occured (Asphyre 4.0.9 and Delphi 10, Afterwarp's examples are all OK):

1. you use in your Uses list units from Asphyre 3 (AsphyreSubsc, AsphyreTimers) - not really a problem

2. but there are problems with undeclared identifiers

a. in your XParticles.pas unit isn't LoadFromXMLFile and Preload method implemented (but your examples need it), maybe you have other version and you have included the wrong one

b. and then others at Devices.PreloadEvent, Sender.Images.OnResolveFailed, Sender.Fonts.OnResolveFailed

c. and finally this line of code:

TAsphyreBitmapFont(Devices[0].Fonts[0]).Kerning := 0;

TAsphyreBitmapFont is defined nowhere, it only appears in the GuiEdit unit.

b. & c. -> maybe you have newer/other/derived version of Asphyre.

And something to the Editor. Access Violation appears when I click on the Update Image List imagebutton. And sometimes when changing Thread count with slide bar e.g. from 700 to 20 -> it remains the same on the screen (700). It gets OK only after changing count via edit field.

And some hint - would it be possible to add ScaleEmitters to the Editor when importing emitters from bmp ?

Thanx and keep up the good work !!


Ing. Michal Bazalka
Demo Or Die
Reply With Quote
  (#7) Old
2morrowMan 2morrowMan is offline
Administrator
2morrowMan is on a distinguished road
 
2morrowMan's Avatar
 
Posts: 237
Join Date: Oct 2005
Location: Ukraine
27-Feb-2007, 15:24

Oh, I fogort about demos... I gona fix it now!

Edit: Fixed!
Reply With Quote
  (#8) Old
wagenheimer wagenheimer is offline
Honoured
wagenheimer is on a distinguished road
 
wagenheimer's Avatar
 
Posts: 298
Join Date: Dec 2005
Location: Brazil
Send a message via ICQ to wagenheimer Send a message via MSN to wagenheimer Send a message via Skype™ to wagenheimer
04-Apr-2007, 04:02

Hi 2MorrowMan!

If i did run the pre-compiled demos, everything works fine!

But if i did "recompile" the demos, or did try to create a new one, nothing happens! No particles is shown! Its show a Lot of ParticlesSystems Active, but the ParticlesCount is always 0!

What is wrong???

Thanks!
Reply With Quote
  (#9) Old
2morrowMan 2morrowMan is offline
Administrator
2morrowMan is on a distinguished road
 
2morrowMan's Avatar
 
Posts: 237
Join Date: Oct 2005
Location: Ukraine
04-Apr-2007, 07:17

Do you use Asphyre 4.0.9? Because XParticles for this version and higher only!

It's can be a problem with parsing xml file...
Reply With Quote
  (#10) Old
BaziX BaziX is offline
Dedicated
BaziX is on a distinguished road
 
BaziX's Avatar
 
Posts: 25
Join Date: Oct 2005
Location: Czech Republic
Send a message via ICQ to BaziX
04-Apr-2007, 08:13

Hi !!

I've the same problem ! After recompiling the examples nothing is shown on the screen. I've thought that's my fault but as I see Wagenheimer has the same problem. Pre-compiled examples in the attached archives work fine.


Ing. Michal Bazalka
Demo Or Die
Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
XParticles engine for Asphyre eXtreme 3.1 2morrowMan Published Resources 45 25-Feb-2008 09:06
Sprite Engine и XParticles MPAK Asphyre in Russian 6 30-Dec-2006 01:55
XParticles CH@$ER Asphyre in Russian 12 04-Jun-2006 13:45



vBulletin® is copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
vBulletin Skin developed by: vBStyles.com
Copyright (c) 2000 - 2008 Afterwarp Development. All rights reserved.