Sorry your browser is not supported!

You are using an outdated browser that does not support modern web technologies, in order to use this site please update to a new browser.

Browsers supported include Chrome, FireFox, Safari, Opera, Internet Explorer 10+ or Microsoft Edge.

Program Announcements / SPARK 3D Particle Engine wrapper 1.2 for DBPro

Author
Message
MrValentine
AGK Backer
13
Years of Service
User Offline
Joined: 5th Dec 2010
Playing: FFVII
Posted: 2nd Aug 2012 09:18
woo, tagging in here!

Any update on the most recent developments?

Hotline
16
Years of Service
User Offline
Joined: 22nd Aug 2008
Location:
Posted: 2nd Aug 2012 10:45
Not much , but i made another small step : now i have a transform gizmo in the Editor


[href=forum.thegamecreators.com/?m=forum_view&t=191567&b=5]Spark Particle engine[/href]
[href=forum.thegamecreators.com/?m=forum_view&t=199163&b=5]Transform gizmo plugin[/href]
MrValentine
AGK Backer
13
Years of Service
User Offline
Joined: 5th Dec 2010
Playing: FFVII
Posted: 2nd Aug 2012 10:53
I have not downloaded this yet but hopefully I will recall it when I get back to DBPro...

thank you for the speedy response!

Juggernaut
12
Years of Service
User Offline
Joined: 12th Mar 2012
Location:
Posted: 12th Sep 2012 16:47
Hello,

Will it work with other basic compilers that uses DirectX 9 ?

Thanks,
Hotline
16
Years of Service
User Offline
Joined: 22nd Aug 2008
Location:
Posted: 13th Sep 2012 11:11
Quote: "Hello,

Will it work with other basic compilers that uses DirectX 9 ?

Thanks, "


It should , just follow the description on the official site
Regards

[href=forum.thegamecreators.com/?m=forum_view&t=191567&b=5]Spark Particle engine[/href]
[href=forum.thegamecreators.com/?m=forum_view&t=199163&b=5]Transform gizmo plugin[/href]
Hotline
16
Years of Service
User Offline
Joined: 22nd Aug 2008
Location:
Posted: 13th Sep 2012 11:13 Edited at: 13th Sep 2012 13:57
Few new screenshots :

Hadron3D final look of the editor :






[href=forum.thegamecreators.com/?m=forum_view&t=191567&b=5]Spark Particle engine[/href]
[href=forum.thegamecreators.com/?m=forum_view&t=199163&b=5]Transform gizmo plugin[/href]
Duffer
21
Years of Service
User Offline
Joined: 9th Feb 2003
Location: chair
Posted: 30th Sep 2012 00:17
@ Hotline - looking good - howz it coming along?

a long time dabbler with DBC and DBPro with no actual talent but lots of enthusiasm...
Hotline
16
Years of Service
User Offline
Joined: 22nd Aug 2008
Location:
Posted: 2nd Oct 2012 23:01
Quote: "@ Hotline - looking good - howz it coming along?"


Still working on it... i just need a bit more time

[href=forum.thegamecreators.com/?m=forum_view&t=191567&b=5]Spark Particle engine[/href]
[href=forum.thegamecreators.com/?m=forum_view&t=199163&b=5]Transform gizmo plugin[/href]
Clonkex
Forum Vice President
14
Years of Service
User Offline
Joined: 20th May 2010
Location: Northern Tablelands, NSW, Australia
Posted: 3rd Oct 2012 02:32
Wow, nice editor!

Clonkex

baxslash
Valued Member
Bronze Codemaster
17
Years of Service
User Offline
Joined: 26th Dec 2006
Location: Duffield
Posted: 15th Oct 2012 16:21
Hotline, thought you'd like to know you were nominated for a badge and I think that providing an excellent dll like this for free counts as reason enough in my book. Congratz!


this.mess = abs(sin(times#))
miso
14
Years of Service
User Offline
Joined: 16th Jun 2010
Location: Budapest, Hungary, 127.0.0.1
Posted: 16th Oct 2012 09:02 Edited at: 16th Oct 2012 09:04
He will be glad, I suppose. He went abroad for a specific reason, so he might be unable to give a response for a while. ( He asked me to tell this, if forum events required it. )

No place like 127.0.0.1 .
Duffer
21
Years of Service
User Offline
Joined: 9th Feb 2003
Location: chair
Posted: 1st Nov 2012 00:37
@ Hotline,

Just wondering how this was going?> Are you going to release some particle 'packs' with the GUI designer?

a long time dabbler with DBC and DBPro with no actual talent but lots of enthusiasm...
Adrian
21
Years of Service
User Offline
Joined: 11th Nov 2003
Location: My Living Room
Posted: 3rd Dec 2012 18:51 Edited at: 3rd Dec 2012 18:55
Has anyone managed to use this with Advanced Terrains?

I used the Spark explosion on my last game and it worked well but my new one crashes with an empty error dialogue box when I try to create an advanced terrain.

The terrain creates perfectly if I remove all the Spark wrapper code.

If I make the 1st line of my program:
sp init
the program crashes every time even if I don't have any other Spark code in my listing.
Duffer
21
Years of Service
User Offline
Joined: 9th Feb 2003
Location: chair
Posted: 21st Dec 2012 17:26
@ Hotline,

How is it going? Any progress with the GUI designer and packs?

a long time dabbler with DBC and DBPro with no actual talent but lots of enthusiasm...
Hotline
16
Years of Service
User Offline
Joined: 22nd Aug 2008
Location:
Posted: 23rd Feb 2013 07:19
Hi Everyone ! sorry for the late reply , i was really busy with life these months, and still have some job related problems... I just want to let you know that the project isn't dead , and i'm still working on it in my spare time.

First of all THANK YOU VERY VERY MUCH for the badge !!! It's really an honor to have a TGC badge !!!


And finally here's a screenshot of the editor , Everything works fine , now all i need to implement some missing spark elements and it's done. Youtube vids coming soon...




[href=forum.thegamecreators.com/?m=forum_view&t=191567&b=5]Spark Particle engine[/href]
[href=forum.thegamecreators.com/?m=forum_view&t=199163&b=5]Transform gizmo plugin[/href]
Chris Tate
DBPro Master
16
Years of Service
User Offline
Joined: 29th Aug 2008
Location: London, England
Posted: 23rd Feb 2013 17:46
Looks fantastic; how does help you get the particles in the engine; does it generate DBP code, or some kind of data file that you need to parse?

Hotline
16
Years of Service
User Offline
Joined: 22nd Aug 2008
Location:
Posted: 24th Feb 2013 03:20
Quote: "Looks fantastic; how does help you get the particles in the engine; does it generate DBP code, or some kind of data file that you need to parse?"


It generates *.xml or a binary *.spk file that can be loaded into SPARK. All elements are saved in these files , except the textures. You must load them manually in your game\engine.

APIs and engines supported by SPARK are :
DBPro ,DX9 , OGL, Irrlicht , *SFML , *OGL-ES

* = w.i.p

[href=forum.thegamecreators.com/?m=forum_view&t=191567&b=5]Spark Particle engine[/href]
[href=forum.thegamecreators.com/?m=forum_view&t=199163&b=5]Transform gizmo plugin[/href]
Chris Tate
DBPro Master
16
Years of Service
User Offline
Joined: 29th Aug 2008
Location: London, England
Posted: 24th Feb 2013 10:36 Edited at: 24th Feb 2013 10:37
I was hoping you'd say that; having an option between XML or binary is a good idea; binary would load quickly, and XML is good for interoperation and collaboration.

Pardon my questions, it has been a while since I checked the documentation; but is it possible to apply HLSL shaders to particles?

Hotline
16
Years of Service
User Offline
Joined: 22nd Aug 2008
Location:
Posted: 24th Feb 2013 11:34 Edited at: 24th Feb 2013 11:38
Currently it's not possible but there are plans for HLSL support
Actually the developer of the engine already done this but it's only OGL .The future versions will support some kind of a material system , where you can apply special effects to the particles.

Here's a video of the modified version explosion demo (06_ExplosionDemo.dba) .
The particles are normal mapped per pixel lit and the wave uses a postprocessing displacement effect instead of a texture. Looks pretty cool :

http://www.youtube.com/watch?v=bHoxPXoXVQ8&feature=youtu.be

And with emitter attacher modifier :

http://www.youtube.com/watch?annotation_id=annotation_164835&feature=iv&src_vid=bHoxPXoXVQ8&v=F1sTQ2oMdSM

[href=forum.thegamecreators.com/?m=forum_view&t=191567&b=5]Spark Particle engine[/href]
[href=forum.thegamecreators.com/?m=forum_view&t=199163&b=5]Transform gizmo plugin[/href]
Chris Tate
DBPro Master
16
Years of Service
User Offline
Joined: 29th Aug 2008
Location: London, England
Posted: 24th Feb 2013 16:16
Looks really good.

I'm guessing a work around or perhaps solution for shaders is to apply them to images using image kit; or to cameras using dark shader. Perhaps the particles can reference these images.

As a whole most uses wouldn't need shaders; but for complex effects it would be good, like using the particles to distort things like heat haze and light scattering.

Stab in the Dark software
Valued Member
21
Years of Service
User Offline
Joined: 12th Dec 2002
Playing: Badges, I don't need no stinkin badges
Posted: 24th Feb 2013 17:16
Hotline,
Lee should think about including your spark 3d wrapper in "FPSC Reloaded".
Then the FPSC community could take advantage of your "Hadron3d Particle Editor".
I already use your spark wrapper which works great in DBpro. I'm sold just waiting for the Editor.
Adding shaders looks great but "spark 3d" is already the best particle system for DBpro.
I would like to be your first customer.

[img][/img]


WindowsXP SP3,Vista,Windows 7 SP1, DBpro v7.7RC7
Stab In The Dark Editor
The coffee is lovely dark and deep,and I have code to write before I sleep.
s_i
15
Years of Service
User Offline
Joined: 23rd May 2009
Location: Russia
Posted: 4th Apr 2013 21:19
I need SPARK in DarkGDK game. Is there any way to do this?
Hotline
16
Years of Service
User Offline
Joined: 22nd Aug 2008
Location:
Posted: 5th Apr 2013 02:37 Edited at: 5th Apr 2013 02:38
Quote: "I need SPARK in DarkGDK game. Is there any way to do this?"


if all goes well , i can build a .lib for you on monday or tuesday

[href=forum.thegamecreators.com/?m=forum_view&t=191567&b=5]Spark Particle engine[/href]
[href=forum.thegamecreators.com/?m=forum_view&t=199163&b=5]Transform gizmo plugin[/href]
s_i
15
Years of Service
User Offline
Joined: 23rd May 2009
Location: Russia
Posted: 5th Apr 2013 17:20
Yes, of course! Please, i'll be waiting.
1) Is it based on the Spark2 or Spark 1.5.5 ?
2) How to work with this lib? Should I use for this lib materials from Your "SPARK 3D Particle Engine wrapper 1.2 for DBPro" (help, converted to C++ examples, .xml from demos)? Or should I use the materials from the "https://sparkengine.svn.sourceforge.net/svnroot/sparkengine" ?
Hotline
16
Years of Service
User Offline
Joined: 22nd Aug 2008
Location:
Posted: 5th Apr 2013 21:56
Hi.

1. My wrapper uses SPARK2
2. It should be easy. The interface is exacly the same as the DBpro version. Except the returning types are pointers instead of an integer (like in dbpro) all functions returning void* and there are some void* typedefs like
typedef void* SparkEmitter; or
typedef void* SparkGroup;

these names just ensures easy track your types in a game , but you can create your own typedefs if you want , or simply use void*...

You can use the official release of the SPARK2 engine if you want with GDK. But be aware that the latest official c++ version has few bugs which are fixed in my wrapper , but still exists in the SVN version and requires some good OOP experience , including smart pointers and reference counting

[href=forum.thegamecreators.com/?m=forum_view&t=191567&b=5]Spark Particle engine[/href]
[href=forum.thegamecreators.com/?m=forum_view&t=199163&b=5]Transform gizmo plugin[/href]
s_i
15
Years of Service
User Offline
Joined: 23rd May 2009
Location: Russia
Posted: 5th Apr 2013 22:13
Thanks, I'll wait for your lib.
Hotline
16
Years of Service
User Offline
Joined: 22nd Aug 2008
Location:
Posted: 12th Apr 2013 00:07 Edited at: 12th Apr 2013 00:20
Hm... strange... i can build spark libraries in ANY of my other projects , but not in GDK... i'm getting strange linker errors all the time (MSVC multiple definitions and such). So the release of the SparkWrapper static library will be delayed. I will try to build a dll + import library instead. The problem is that i'm working 10+ h per day so i'm happy if i got home alive

Anyway , i will do my best

Stab in the Dark software :
Quote: "Hotline,
Lee should think about including your spark 3d wrapper in "FPSC Reloaded".
Then the FPSC community could take advantage of your "Hadron3d Particle Editor".
I already use your spark wrapper which works great in DBpro. I'm sold just waiting for the Editor.
Adding shaders looks great but "spark 3d" is already the best particle system for DBpro.
I would like to be your first customer."


Thanks ! it would be nice to see this library in FPSCR , but SPARK uses dx9 , doesn't FPSCR built around dx11 ?

[href=forum.thegamecreators.com/?m=forum_view&t=191567&b=5]Spark Particle engine[/href]
[href=forum.thegamecreators.com/?m=forum_view&t=199163&b=5]Transform gizmo plugin[/href]
s_i
15
Years of Service
User Offline
Joined: 23rd May 2009
Location: Russia
Posted: 12th Apr 2013 01:15 Edited at: 12th Apr 2013 01:20
Thanks, Hotline, for your work. For DarkGDK I do not know real alternative to SPARK. (I do not like "Magic Particles" from Astralax -- it worse and very, very expensive.) Spark particles will give a new impulse to DarkGDK and my game, because lack of good particle engine is the big problem now.

I will patiently wait for your wrapper. Good luck!
Hotline
16
Years of Service
User Offline
Joined: 22nd Aug 2008
Location:
Posted: 12th Apr 2013 01:48
Yeah i need to modify the whole wrapper , The dbp functions returning a float as DWORD while in gdk the function need to return a float.Also the string handling is completely different in dbpro and GDK. Thats why the recent dll cant be used in GDK.
Im working on a new macro system to avoid reimplement the whole engine twice .

[href=forum.thegamecreators.com/?m=forum_view&t=191567&b=5]Spark Particle engine[/href]
[href=forum.thegamecreators.com/?m=forum_view&t=199163&b=5]Transform gizmo plugin[/href]
Brendy boy
19
Years of Service
User Offline
Joined: 17th Jul 2005
Location: Croatia
Posted: 13th Apr 2013 16:31
Quote: "doesn't FPSCR built around dx11 ?"

no, it uses dx9. It's made in the same dbpro as fpsc x9

Clonkex
Forum Vice President
14
Years of Service
User Offline
Joined: 20th May 2010
Location: Northern Tablelands, NSW, Australia
Posted: 14th Apr 2013 13:30
I recently started work on a game that will be, to put it simply, a 3D Clonk. I will most certainly be using this system I love any 3rd-party plugin that makes development quicker and this will greatly simplify things

Thanks awfully for releasing this to us for free! If I succeed in my attempts at creating a seriously awesome game, you will likely receive a large donation

Clonkex

Hotline
16
Years of Service
User Offline
Joined: 22nd Aug 2008
Location:
Posted: 15th Apr 2013 00:29
Quote: "I recently started work on a game that will be, to put it simply, a 3D Clonk. I will most certainly be using this system I love any 3rd-party plugin that makes development quicker and this will greatly simplify things

Thanks awfully for releasing this to us for free! If I succeed in my attempts at creating a seriously awesome game, you will likely receive a large donation

Clonkex"


Hey Thank you very very much for the kind words Clonkex !
Just wait for the new version of the dll it finally implements the texture alpha blending ! which allows the user to create REALLY awesome realistic smoke effects ! The dll is ready for release i just want to release it along with the GDK version.
i also implemented some Zone objects (spark obstacles for collision detection can be created from dbp objects)

There is also a new "action" system implemented , so from now on you can create actions like "what happens if a particle hits an obstacle"
let's say you create a SpawnAction , which spawns a particle from a different group to the collision point (very useful for explosion hits , raindrop simulation etc)

Few new modifiers are added , for mushroom cloud , and tornado simulation

Cheers

[href=forum.thegamecreators.com/?m=forum_view&t=191567&b=5]Spark Particle engine[/href]
[href=forum.thegamecreators.com/?m=forum_view&t=199163&b=5]Transform gizmo plugin[/href]
Clonkex
Forum Vice President
14
Years of Service
User Offline
Joined: 20th May 2010
Location: Northern Tablelands, NSW, Australia
Posted: 15th Apr 2013 02:57
Quote: "Just wait for the new version of the dll it finally implements the texture alpha blending ! which allows the user to create REALLY awesome realistic smoke effects ! The dll is ready for release i just want to release it along with the GDK version.
i also implemented some Zone objects (spark obstacles for collision detection can be created from dbp objects)

There is also a new "action" system implemented , so from now on you can create actions like "what happens if a particle hits an obstacle"
let's say you create a SpawnAction , which spawns a particle from a different group to the collision point (very useful for explosion hits , raindrop simulation etc)

Few new modifiers are added , for mushroom cloud , and tornado simulation"


Awesome!! Can't wait!

Clonkex

Hotline
16
Years of Service
User Offline
Joined: 22nd Aug 2008
Location:
Posted: 21st Apr 2013 21:53
Hi Everyone !
New version available !!! See the very first post (see the 1.2.4 changelog for details)

Please test and let me know if you found a bug or missing command or missing help file ! i will try to fix it as fast as i can.

The GDK version will be released in few days.

Also this will be the last version i released. I will fix bugs and missing commands only and wait for new version of SPARK2 because :

SPARK2 is currently under active development and it's about to change deeply !(new serialization system , material system , Shader support and lots of NEXGEN features)

So it might be worth waiting for the new version

Regards

[href=forum.thegamecreators.com/?m=forum_view&t=191567&b=5]Spark Particle engine[/href]
[href=forum.thegamecreators.com/?m=forum_view&t=199163&b=5]Transform gizmo plugin[/href]
gwheycs62egydws
15
Years of Service
User Offline
Joined: 17th Aug 2009
Location: The World
Posted: 22nd Apr 2013 00:48 Edited at: 22nd Apr 2013 00:50
@Hotline

just few word were not high light
SP SET DEATH SPAWN ACTION
sp add modifier

other than it worked ;o)

and i am guessing because rgaa is already being used by one of the
other plugin I have it being disallowed or there still a bug in the dll
... It's only a guess at this point

"04_GraphDemo"
the error comes up as variable `rgra` is not valid at line 46

all example that I could build worked perfectly

I like the new demo of the Short Circuit

I was looking at "12_AnimatedBillboards"

it gave me a thought to add something to it to rile show case it

it should not take me long to do it and I will post tomorrow

thanks and please keep up the good work

to move side ways - is to move forward
Since a Strait line gets thin fast
Clonkex
Forum Vice President
14
Years of Service
User Offline
Joined: 20th May 2010
Location: Northern Tablelands, NSW, Australia
Posted: 22nd Apr 2013 03:16
Oh a new version I'll download it sometime soon and tell you if there's any bugs.

I agree that you should wait 'til the new version comes out before doing any more major work on the wrapper

Clonkex

ActionSaxon
22
Years of Service
User Offline
Joined: 3rd Nov 2002
Location: United Kingdom
Posted: 24th Apr 2013 11:42 Edited at: 24th Apr 2013 19:26
Hi Hotline,

This is a brilliant plugin, thanks.

I've noticed that in this new version (1.24) when you hide a dbpro object that you either glue or have glued to a particle system, then that particle system seems to no longer be glued to the object. If you subsequently re-show the object then the system behaves as though its still glued to the object.

Looking at the GlueDemo code, this may have been by design (changing 'show object l' at line 151 to 'hide object l' doesn't give a trail following an invisible rocket but an invisible rocket with a stationary trail). It does affect my current code. This didn't happen in version 1.23. Just thought I'd let you know in case it's a bug.

Also, the 'SP Set System Speed' command when set to a negative number, just seems to irrevocably freeze the system in the new version.

Thanks again.
Hotline
16
Years of Service
User Offline
Joined: 22nd Aug 2008
Location:
Posted: 28th Apr 2013 22:24 Edited at: 28th Apr 2013 22:36
Hi everyone ! FINALLY released the GDK Version of SPARK WRAPPER.
Let me know if you found some bugs or missing functions !
(Download : see the firs post)

Simple Example :



-Include globstruct.h and SparkWrapperGDK.h into your project
-Use the SPARK_Wrapper_GDK.lib import library to import SPARK WRAPPER functions
-You need to copy the SPARK_Wrapper_GDK.dll into you EXE directory !





Regards.

Quote: "ActionSaxon
Hi Hotline,

This is a brilliant plugin, thanks.

I've noticed that in this new version (1.24) when you hide a dbpro object that you either glue or have glued to a particle system, then that particle system seems to no longer be glued to the object. If you subsequently re-show the object then the system behaves as though its still glued to the object.

Looking at the GlueDemo code, this may have been by design (changing 'show object l' at line 151 to 'hide object l' doesn't give a trail following an invisible rocket but an invisible rocket with a stationary trail). It does affect my current code. This didn't happen in version 1.23. Just thought I'd let you know in case it's a bug.

Also, the 'SP Set System Speed' command when set to a negative number, just seems to irrevocably freeze the system in the new version.

Thanks again."


Thanks for the report . the glue bug is fixed . I will upload the new dll next week, however the set system speed works different in this new vesrsion (my fault i didn't change the description in the help file , sorry)
In the new version you don't need to use negative numbers.
I changed the speed to act as a ratio value.The deltaTime is multiplied with this factor ! So if you set the speed to 1 nothing will change (plugin uses it's own default delta step)
setting to 2 will double the system speed
setting to 0.5 wil halve the system speed
etc...

Resourceful:

Thanks for the report i will fix these in the next few days.

[href=forum.thegamecreators.com/?m=forum_view&t=191567&b=5]Spark Particle engine[/href]
[href=forum.thegamecreators.com/?m=forum_view&t=199163&b=5]Transform gizmo plugin[/href]
gwheycs62egydws
15
Years of Service
User Offline
Joined: 17th Aug 2009
Location: The World
Posted: 28th Apr 2013 23:45
@Hotline

glad to be of help

as for " GDK Version of SPARK WRAPPER."
that is way beyond what I know at this point

the one example I was hoping for is the nuke being detonated

I know that Spark 3d Particle Engine

it should run much fast give or take interaction with things around it

the only example found was built with Dark Physics
and if you did more than 3 it rile slowed thing down

the person who made it defiantly showed what could be dun
but I think the physics dll was not fully optimized as it still
runs slow on the computer I got now and on this it should have
dun way better

to move side ways - is to move forward
Since a Strait line gets thin fast
s_i
15
Years of Service
User Offline
Joined: 23rd May 2009
Location: Russia
Posted: 1st May 2013 12:54 Edited at: 1st May 2013 13:52
@ Hotline.
Please, help! I can not run the project with your example. It gives an "error C2664".

I started a new blank project in DarkGDK and VS2008.
I threw a "media/explosion.bmp" in the project.
I included SparkWrapperGDK.h in the project.
I included SPARK_Wrapper_GDK.lib in the project.
I threw SPARK_Wrapper_GDK.dll the project folder.
I included globstruct.h in the project, taking it from here:
http://code.google.com/p/darkbasicpro/source/browse/trunk/+darkbasicpro+--username+LeeBamberTGC/Dark+Basic+Pro+SDK/Shared/Core/globstruct.h?r=61

I am attaching the project completely. Please check it. What did I do wrong?
Thanks.

Edit.
I see a little bug in DBPro example "23_SmokerDemo.exe" -- written at the top of the screen "left mouse button", but works only right mouse button.

Attachments

Login to view attachments
ActionSaxon
22
Years of Service
User Offline
Joined: 3rd Nov 2002
Location: United Kingdom
Posted: 1st May 2013 20:03
@hotline

Smashing! Thanks for the update
Hotline
16
Years of Service
User Offline
Joined: 22nd Aug 2008
Location:
Posted: 1st May 2013 23:47
Quote: "Please, help! I can not run the project with your example. It gives an "error C2664".

I started a new blank project in DarkGDK and VS2008.
I threw a "media/explosion.bmp" in the project.
I included SparkWrapperGDK.h in the project.
I included SPARK_Wrapper_GDK.lib in the project.
I threw SPARK_Wrapper_GDK.dll the project folder.
I included globstruct.h in the project, taking it from here:
http://code.google.com/p/darkbasicpro/source/browse/trunk/+darkbasicpro+--username+LeeBamberTGC/Dark+Basic+Pro+SDK/Shared/Core/globstruct.h?r=61

I am attaching the project completely. Please check it. What did I do wrong?
Thanks.
"



Hi ! i downloaded the example you attached and it builds perfectly on my machine. With no errors or warnings at all. I even started the builded exe file and it runs perfectly.Can you please send the line number where the error C2664 occurs ? Or the complete error text in the output window ?
Thanks.

Quote: "Edit.
I see a little bug in DBPro example "23_SmokerDemo.exe" -- written at the top of the screen "left mouse button", but works only right mouse button. "


I'll fix that in the next release.


Quote: "ActionSaxon :
Smashing! Thanks for the update"


Thank YOU for using SPARK particle engine

[href=forum.thegamecreators.com/?m=forum_view&t=191567&b=5]Spark Particle engine[/href]
[href=forum.thegamecreators.com/?m=forum_view&t=199163&b=5]Transform gizmo plugin[/href]
s_i
15
Years of Service
User Offline
Joined: 23rd May 2009
Location: Russia
Posted: 2nd May 2013 19:21
[Russian original]

1>------ Построение начато: проект: Dark GDK - 2D Game1, Конфигурация: Debug Win32 ------
1>Компиляция...
1>Main.cpp
1>c:\downloads\spark particles 0\dark gdk - 2d game1\sparkwrappergdk.h(470) : error C2664: SP_InitSparkGDK: невозможно преобразовать параметр 7 из 'overloaded-function' в 'void *'
1> Контекст не позволяет устранить неоднозначность перегруженной функции
1>Журнал построения был сохранен в "file://c:\Downloads\Spark Particles 0\Dark GDK - 2D Game1\Debug\BuildLog.htm"
1>Dark GDK - 2D Game1 - ошибок 1, предупреждений 0
========== Построение: успешно: 0, с ошибками: 1, без изменений: 0, пропущено: 0 ==========

[English translation by Google]

1>c:\downloads\spark particles 0\dark gdk - 2d game1\sparkwrappergdk.h(470) : error C2664: SP_InitSparkGDK: cannot convert parameter 7 from 'overloaded-function' to 'void *'
1> The context does not resolve the ambiguity of overloaded function

I use Visual Studio 2008 (Debug & Release), DarkGDK, Windows 7 x64.
You can find it here: http://msdn.microsoft.com/en-us/library/s5b150wd(v=vs.90).aspx
Hotline
16
Years of Service
User Offline
Joined: 22nd Aug 2008
Location:
Posted: 3rd May 2013 00:41
did you downloaded the latest version of dark GDK ? the plugin is built around the latest GDK version , which is available from here :

http://files.thegamecreators.com/darkgdk/DarkGDK_Update_OCT10.zip

[href=forum.thegamecreators.com/?m=forum_view&t=191567&b=5]Spark Particle engine[/href]
[href=forum.thegamecreators.com/?m=forum_view&t=199163&b=5]Transform gizmo plugin[/href]
s_i
15
Years of Service
User Offline
Joined: 23rd May 2009
Location: Russia
Posted: 3rd May 2013 16:57
Yes, I have this latest DarkGDK version installed, and latest SP1 for VS2008, and all updates for Windows7 x64. I work with DarkGDK for 4 years without any problems.
Hotline
16
Years of Service
User Offline
Joined: 22nd Aug 2008
Location:
Posted: 3rd May 2013 18:57 Edited at: 3rd May 2013 18:58
hm..It works perfectly on my machine. I even tried on my friend's pc and it copiles fine How i see it complains about the dbObjectSizeX function as it is an overloaded function and the compiler cannot decide which function pointer to pass to the dll. The strange thing is that dbObjectSizeX IS NOT an overloaded function..at least not in my GDK version... Can you please check the function in your DarkSDKBasic3D.h . The function should be on line 345

float dbObjectSizeX ( int iID );

Do you have two versions of this function with different parameters?

[href=forum.thegamecreators.com/?m=forum_view&t=191567&b=5]Spark Particle engine[/href]
[href=forum.thegamecreators.com/?m=forum_view&t=199163&b=5]Transform gizmo plugin[/href]
s_i
15
Years of Service
User Offline
Joined: 23rd May 2009
Location: Russia
Posted: 3rd May 2013 19:16
No, Hotline, my version of DarkSDKBasic3D.h has
338 float dbObjectSizeX ( int iID );
341 float dbObjectSizeX ( int iID, int iUseScaling );

I have updated DarkGDK ("october 2010" version). Please, download & update YOU:
http://files.thegamecreators.com/darkgdk/DarkGDK_Update_OCT10.zip
Hotline
16
Years of Service
User Offline
Joined: 22nd Aug 2008
Location:
Posted: 3rd May 2013 19:59
Yes you are right ! I downloaded that update months ago , but never installed , so ut was my mistake , i will update the header file in few hours.

[href=forum.thegamecreators.com/?m=forum_view&t=191567&b=5]Spark Particle engine[/href]
[href=forum.thegamecreators.com/?m=forum_view&t=199163&b=5]Transform gizmo plugin[/href]
Hotline
16
Years of Service
User Offline
Joined: 22nd Aug 2008
Location:
Posted: 3rd May 2013 20:07
I attached the modified version of the SparkWrapperGDK.h. Just download overwrite the old one and it should work.

Regards

[href=forum.thegamecreators.com/?m=forum_view&t=191567&b=5]Spark Particle engine[/href]
[href=forum.thegamecreators.com/?m=forum_view&t=199163&b=5]Transform gizmo plugin[/href]

Attachments

Login to view attachments
s_i
15
Years of Service
User Offline
Joined: 23rd May 2009
Location: Russia
Posted: 3rd May 2013 21:08 Edited at: 3rd May 2013 22:43
Hmmm...
Now program works, but the flame is behind the camera, so it is visible only when I press "Down" key. And when I press "Esc" (or click red "X"-button on the top of the game window), the program does not end correctly -- I see message box (picture attached) "Unhandled exception in... Access Violation reading..."
Why? Why? Why?

Edit.
Also I can say this: including globstruct.h is not required for this program.

Attachments

Login to view attachments

Login to post a reply

Server time is: 2024-11-21 13:51:01
Your offset time is: 2024-11-21 13:51:01