HomeHome  CalendarCalendar  FAQFAQ  SearchSearch  MemberlistMemberlist  UsergroupsUsergroups  RegisterRegister  Log inLog in  

Share | 
 

 Spark2 Irrlicht integration

View previous topic View next topic Go down 
Go to page : Previous  1, 2, 3  Next
AuthorMessage
granyte



Messages : 53
Date d'inscription : 2012-06-23

PostSubject: Re: Spark2 Irrlicht integration   Sun Aug 26, 2012 12:56 pm

so if i understand well i have to move the system inside the particle scene node that's very unnatural for irrlicht user and in my case it makes the use of spark impossible because i need the system to auto-update from the parent scene node
Back to top Go down
View user profile
Darktib
Committer


Messages : 389
Date d'inscription : 2009-07-20
Localisation : A coté de Paris

PostSubject: Re: Spark2 Irrlicht integration   Sun Aug 26, 2012 1:33 pm

That's weird, because the absolute transformation of scene node is propagated, and the irr system will update the spk system with it.

I'll test this behavior tomorrow.

_________________
Back to top Go down
View user profile
granyte



Messages : 53
Date d'inscription : 2012-06-23

PostSubject: Re: Spark2 Irrlicht integration   Mon Oct 01, 2012 5:15 pm

Have you had time to cheq this or maybe i should leave a a particle trail behind the moving object an other way?
Back to top Go down
View user profile
Darktib
Committer


Messages : 389
Date d'inscription : 2009-07-20
Localisation : A coté de Paris

PostSubject: Re: Spark2 Irrlicht integration   Thu Oct 04, 2012 12:30 pm

For the moment, I've not reproduced the bug.

Maybe if you have a testcase I can search further.

_________________
Back to top Go down
View user profile
granyte



Messages : 53
Date d'inscription : 2012-06-23

PostSubject: Re: Spark2 Irrlicht integration   Thu Oct 04, 2012 4:09 pm

Alright ill put a quick test together later today
Back to top Go down
View user profile
granyte



Messages : 53
Date d'inscription : 2012-06-23

PostSubject: Re: Spark2 Irrlicht integration   Mon Oct 22, 2012 9:15 am

sorry for the long delay but here is the demo of the bug i'm facing

http://www.mediafire.com/?gsb3gnv3x8kqx2u
Back to top Go down
View user profile
Juff
Developer


Messages : 539
Date d'inscription : 2009-07-14
Age : 34

PostSubject: Re: Spark2 Irrlicht integration   Mon Oct 22, 2012 10:16 am

It is because you havent specified a zone for your emitter. And when a zone is not specified, the default zone is used with your emitter which is a shared point. And a shared zone can never be transformed when in a hierarchy.

Try to add a zone to you emitter with :
Code:
particleEmitter->setZone(SPK::Point::create(SPK::Vector3D(0.0f,0.0f,0.0f));

It should work better.
I will remove the default zone in the future and create a point on the fly instead so that if no zone is specified the point can be transformed anyway.
Back to top Go down
View user profile http://spark.developpez.com
granyte



Messages : 53
Date d'inscription : 2012-06-23

PostSubject: Re: Spark2 Irrlicht integration   Mon Oct 22, 2012 4:00 pm

thanks that was it all along
Back to top Go down
View user profile
granyte



Messages : 53
Date d'inscription : 2012-06-23

PostSubject: Re: Spark2 Irrlicht integration   Fri Oct 26, 2012 11:23 am

I was wondering does 1 spark system = 1 draw calll in irrlicht or does spark batche them and render them diferently internaly?
Back to top Go down
View user profile
Darktib
Committer


Messages : 389
Date d'inscription : 2009-07-20
Localisation : A coté de Paris

PostSubject: Re: Spark2 Irrlicht integration   Fri Oct 26, 2012 1:06 pm

If I remember right, its one draw call per group. But the mesh is (obviously) generated on the fly.

_________________
Back to top Go down
View user profile
granyte



Messages : 53
Date d'inscription : 2012-06-23

PostSubject: Re: Spark2 Irrlicht integration   Fri Oct 26, 2012 6:06 pm

and i guess it's impossible to have diferent emiters following diferent nodes but linked in the same system
Back to top Go down
View user profile
Juff
Developer


Messages : 539
Date d'inscription : 2009-07-14
Age : 34

PostSubject: Re: Spark2 Irrlicht integration   Fri Oct 26, 2012 7:28 pm

It is possible... but you ll have to code it.

What you can do is a wrapper deriving from irrlich node and encapsulating a SPARK emitter. Just like the system wrapper. The transform of the emitter set every frame by the wrapper. It should not be too difficult to implement.

If you have a lot of identical particle systems running and all being on screen at the same time, it may be worth doing it.


Back to top Go down
View user profile http://spark.developpez.com
granyte



Messages : 53
Date d'inscription : 2012-06-23

PostSubject: Re: Spark2 Irrlicht integration   Sun Oct 28, 2012 8:18 pm

I implemented instancing in irrlicht to be able to suport several thousand of nodes on screen and if these happen to be a couple missile voley or a couple space ship i would need it.


would this have any chance of this getting implemented to spark if i code a wrapper?

Back to top Go down
View user profile
Juff
Developer


Messages : 539
Date d'inscription : 2009-07-14
Age : 34

PostSubject: Re: Spark2 Irrlicht integration   Mon Oct 29, 2012 11:10 am

I dont really see the link between instancing and positionning emitters using irrlicht scene graph.
But yes a wrapper that allows to transform emitters using irrlich nodes would be useful.
Back to top Go down
View user profile http://spark.developpez.com
granyte



Messages : 53
Date d'inscription : 2012-06-23

PostSubject: Re: Spark2 Irrlicht integration   Mon Oct 29, 2012 12:53 pm

because if i have a couple thousand scene nodes on screen rendered with instancing and each has it's own particle system the simple amount of diferent systems would cause so many draw calls that they would cause the whole system to slow down to a crawl breaking the point of having implemented instancing
Back to top Go down
View user profile
Juff
Developer


Messages : 539
Date d'inscription : 2009-07-14
Age : 34

PostSubject: Re: Spark2 Irrlicht integration   Mon Nov 05, 2012 7:19 am

Ok, that makes sense.
I ll upload a wrapper that ll allows to transform any Spark object using an Irrlicht Hierarchy soon.
Back to top Go down
View user profile http://spark.developpez.com
granyte



Messages : 53
Date d'inscription : 2012-06-23

PostSubject: Re: Spark2 Irrlicht integration   Wed Nov 07, 2012 9:18 pm

An other Questioni tryed porting my project to x64 today but some dark lib won''t properly recompile or convert to x64 causing spark to fail compiling at spark_io_buffer.obj and because the compiler won't tell me wich lib is not recompiling properly i was wondering if any one could tell me wich lib spark is using that could cause an issue in a such case?
Back to top Go down
View user profile
Darktib
Committer


Messages : 389
Date d'inscription : 2009-07-20
Localisation : A coté de Paris

PostSubject: Re: Spark2 Irrlicht integration   Thu Nov 08, 2012 10:36 am

SPARK2 is using glew and pugixml as external libs included in the repository. Can you post the error ? The SPK::IO::Buffer class does not use any external function...

_________________
Back to top Go down
View user profile
granyte



Messages : 53
Date d'inscription : 2012-06-23

PostSubject: Re: Spark2 Irrlicht integration   Thu Nov 08, 2012 12:08 pm

Code:
1>------ Build started: Project: ZERO_CHECK, Configuration: Release x64 ------
1>Build started 11/8/2012 11:05:12 AM.
1>InitializeBuildStatus:
1>  Creating "x64\Release\ZERO_CHECK\ZERO_CHECK.unsuccessfulbuild" because "AlwaysCreate" was specified.
1>FinalizeBuildStatus:
1>  Deleting file "x64\Release\ZERO_CHECK\ZERO_CHECK.unsuccessfulbuild".
1>  Touching "x64\Release\ZERO_CHECK\ZERO_CHECK.lastbuildstate".
1>
1>Build succeeded.
1>
1>Time Elapsed 00:00:00.19
2>------ Build started: Project: PugiXML, Configuration: Release x64 ------
2>Build started 11/8/2012 11:05:13 AM.
2>InitializeBuildStatus:
2>  Creating "PugiXML.dir\Release\PugiXML.unsuccessfulbuild" because "AlwaysCreate" was specified.
2>CustomBuild:
2>  All outputs are up-to-date.
2>ClCompile:
2>  All outputs are up-to-date.
2>  pugixml.cpp
2>Lib:
2>  PugiXML.vcxproj -> E:\Users\David\Documents\Visual Studio 2010\Projects\sparkengine\spark2\lib\(Windows@Visual Studio 10)\external\pugixml\pugixml.lib
2>FinalizeBuildStatus:
2>  Deleting file "PugiXML.dir\Release\PugiXML.unsuccessfulbuild".
2>  Touching "PugiXML.dir\Release\PugiXML.lastbuildstate".
2>
2>Build succeeded.
2>
2>Time Elapsed 00:00:03.66
3>------ Build started: Project: SPARK_Core, Configuration: Release x64 ------
3>Build started 11/8/2012 11:05:16 AM.
3>InitializeBuildStatus:
3>  Creating "SPARK_Core.dir\Release\SPARK_Core.unsuccessfulbuild" because "AlwaysCreate" was specified.
3>CustomBuild:
3>  All outputs are up-to-date.
3>ClCompile:
3>  All outputs are up-to-date.
3>  SPK_IO_Buffer.cpp
3>e:\users\david\documents\visual studio 2010\projects\sparkengine\spark2\include\Core/SPK_Emitter.h(342): warning C4267: '-=' : conversion from 'size_t' to 'int', possible loss of data
3>e:\users\david\documents\visual studio 2010\projects\sparkengine\spark2\include\Core/SPK_Emitter.h(358): warning C4267: '-=' : conversion from 'size_t' to 'int', possible loss of data
3>  SPK_IO_Descriptor.cpp
3>e:\users\david\documents\visual studio 2010\projects\sparkengine\spark2\include\Core/SPK_Emitter.h(342): warning C4267: '-=' : conversion from 'size_t' to 'int', possible loss of data
3>e:\users\david\documents\visual studio 2010\projects\sparkengine\spark2\include\Core/SPK_Emitter.h(358): warning C4267: '-=' : conversion from 'size_t' to 'int', possible loss of data
3>  SPK_IO_Loader.cpp
3>e:\users\david\documents\visual studio 2010\projects\sparkengine\spark2\include\Core/SPK_Emitter.h(342): warning C4267: '-=' : conversion from 'size_t' to 'int', possible loss of data
3>e:\users\david\documents\visual studio 2010\projects\sparkengine\spark2\include\Core/SPK_Emitter.h(358): warning C4267: '-=' : conversion from 'size_t' to 'int', possible loss of data
3>  SPK_IO_Manager.cpp
3>e:\users\david\documents\visual studio 2010\projects\sparkengine\spark2\include\Core/SPK_Emitter.h(342): warning C4267: '-=' : conversion from 'size_t' to 'int', possible loss of data
3>e:\users\david\documents\visual studio 2010\projects\sparkengine\spark2\include\Core/SPK_Emitter.h(358): warning C4267: '-=' : conversion from 'size_t' to 'int', possible loss of data
3>  SPK_IO_Saver.cpp
3>e:\users\david\documents\visual studio 2010\projects\sparkengine\spark2\include\Core/SPK_Emitter.h(342): warning C4267: '-=' : conversion from 'size_t' to 'int', possible loss of data
3>e:\users\david\documents\visual studio 2010\projects\sparkengine\spark2\include\Core/SPK_Emitter.h(358): warning C4267: '-=' : conversion from 'size_t' to 'int', possible loss of data
3>  SPK_DataSet.cpp
3>e:\users\david\documents\visual studio 2010\projects\sparkengine\spark2\include\Core/SPK_Emitter.h(342): warning C4267: '-=' : conversion from 'size_t' to 'int', possible loss of data
3>e:\users\david\documents\visual studio 2010\projects\sparkengine\spark2\include\Core/SPK_Emitter.h(358): warning C4267: '-=' : conversion from 'size_t' to 'int', possible loss of data
3>  SPK_DEF.cpp
3>e:\users\david\documents\visual studio 2010\projects\sparkengine\spark2\include\Core/SPK_Emitter.h(342): warning C4267: '-=' : conversion from 'size_t' to 'int', possible loss of data
3>e:\users\david\documents\visual studio 2010\projects\sparkengine\spark2\include\Core/SPK_Emitter.h(358): warning C4267: '-=' : conversion from 'size_t' to 'int', possible loss of data
3>  SPK_Emitter.cpp
3>e:\users\david\documents\visual studio 2010\projects\sparkengine\spark2\include\Core/SPK_Emitter.h(342): warning C4267: '-=' : conversion from 'size_t' to 'int', possible loss of data
3>e:\users\david\documents\visual studio 2010\projects\sparkengine\spark2\include\Core/SPK_Emitter.h(358): warning C4267: '-=' : conversion from 'size_t' to 'int', possible loss of data
3>  SPK_Group.cpp
3>e:\users\david\documents\visual studio 2010\projects\sparkengine\spark2\include\Core/SPK_Emitter.h(342): warning C4267: '-=' : conversion from 'size_t' to 'int', possible loss of data
3>e:\users\david\documents\visual studio 2010\projects\sparkengine\spark2\include\Core/SPK_Emitter.h(358): warning C4267: '-=' : conversion from 'size_t' to 'int', possible loss of data
3>..\..\..\..\src\Core\SPK_Group.cpp(167): warning C4267: 'initializing' : conversion from 'size_t' to 'int', possible loss of data
3>..\..\..\..\src\Core\SPK_Group.cpp(607): warning C4267: 'argument' : conversion from 'size_t' to 'int', possible loss of data
3>..\..\..\..\src\Core\SPK_Group.cpp(668): warning C4267: 'argument' : conversion from 'size_t' to 'unsigned int', possible loss of data
3>..\..\..\..\src\Core\SPK_Group.cpp(680): warning C4267: 'argument' : conversion from 'size_t' to 'unsigned int', possible loss of data
3>..\..\..\..\src\Core\SPK_Group.cpp(686): warning C4267: 'argument' : conversion from 'size_t' to 'unsigned int', possible loss of data
3>..\..\..\..\src\Core\SPK_Group.cpp(693): warning C4267: 'argument' : conversion from 'size_t' to 'unsigned int', possible loss of data
3>..\..\..\..\src\Core\SPK_Group.cpp(699): warning C4267: 'argument' : conversion from 'size_t' to 'unsigned int', possible loss of data
3>..\..\..\..\src\Core\SPK_Group.cpp(705): warning C4267: 'argument' : conversion from 'size_t' to 'unsigned int', possible loss of data
3>..\..\..\..\src\Core\SPK_Group.cpp(1010): warning C4267: 'argument' : conversion from 'size_t' to 'const SPK::uint32', possible loss of data
3>  SPK_Logger.cpp
3>e:\users\david\documents\visual studio 2010\projects\sparkengine\spark2\include\Core/SPK_Emitter.h(342): warning C4267: '-=' : conversion from 'size_t' to 'int', possible loss of data
3>e:\users\david\documents\visual studio 2010\projects\sparkengine\spark2\include\Core/SPK_Emitter.h(358): warning C4267: '-=' : conversion from 'size_t' to 'int', possible loss of data
3>  SPK_Object.cpp
3>e:\users\david\documents\visual studio 2010\projects\sparkengine\spark2\include\Core/SPK_Emitter.h(342): warning C4267: '-=' : conversion from 'size_t' to 'int', possible loss of data
3>e:\users\david\documents\visual studio 2010\projects\sparkengine\spark2\include\Core/SPK_Emitter.h(358): warning C4267: '-=' : conversion from 'size_t' to 'int', possible loss of data
3>  SPK_Octree.cpp
3>e:\users\david\documents\visual studio 2010\projects\sparkengine\spark2\include\Core/SPK_Emitter.h(342): warning C4267: '-=' : conversion from 'size_t' to 'int', possible loss of data
3>e:\users\david\documents\visual studio 2010\projects\sparkengine\spark2\include\Core/SPK_Emitter.h(358): warning C4267: '-=' : conversion from 'size_t' to 'int', possible loss of data
3>..\..\..\..\src\Core\SPK_Octree.cpp(199): warning C4267: 'initializing' : conversion from 'size_t' to 'int', possible loss of data
3>..\..\..\..\src\Core\SPK_Octree.cpp(200): warning C4267: 'initializing' : conversion from 'size_t' to 'int', possible loss of data
3>..\..\..\..\src\Core\SPK_Octree.cpp(201): warning C4267: 'initializing' : conversion from 'size_t' to 'int', possible loss of data
3>  SPK_Renderer.cpp
3>e:\users\david\documents\visual studio 2010\projects\sparkengine\spark2\include\Core/SPK_Emitter.h(342): warning C4267: '-=' : conversion from 'size_t' to 'int', possible loss of data
3>e:\users\david\documents\visual studio 2010\projects\sparkengine\spark2\include\Core/SPK_Emitter.h(358): warning C4267: '-=' : conversion from 'size_t' to 'int', possible loss of data
3>  SPK_System.cpp
3>e:\users\david\documents\visual studio 2010\projects\sparkengine\spark2\include\Core/SPK_Emitter.h(342): warning C4267: '-=' : conversion from 'size_t' to 'int', possible loss of data
3>e:\users\david\documents\visual studio 2010\projects\sparkengine\spark2\include\Core/SPK_Emitter.h(358): warning C4267: '-=' : conversion from 'size_t' to 'int', possible loss of data
3>  SPK_Transform.cpp
3>e:\users\david\documents\visual studio 2010\projects\sparkengine\spark2\include\Core/SPK_Emitter.h(342): warning C4267: '-=' : conversion from 'size_t' to 'int', possible loss of data
3>e:\users\david\documents\visual studio 2010\projects\sparkengine\spark2\include\Core/SPK_Emitter.h(358): warning C4267: '-=' : conversion from 'size_t' to 'int', possible loss of data
3>  SPK_Zone.cpp
3>e:\users\david\documents\visual studio 2010\projects\sparkengine\spark2\include\Core/SPK_Emitter.h(342): warning C4267: '-=' : conversion from 'size_t' to 'int', possible loss of data
3>e:\users\david\documents\visual studio 2010\projects\sparkengine\spark2\include\Core/SPK_Emitter.h(358): warning C4267: '-=' : conversion from 'size_t' to 'int', possible loss of data
3>  SPK_ZonedModifier.cpp
3>e:\users\david\documents\visual studio 2010\projects\sparkengine\spark2\include\Core/SPK_Emitter.h(342): warning C4267: '-=' : conversion from 'size_t' to 'int', possible loss of data
3>e:\users\david\documents\visual studio 2010\projects\sparkengine\spark2\include\Core/SPK_Emitter.h(358): warning C4267: '-=' : conversion from 'size_t' to 'int', possible loss of data
3>  SPK_ActionSet.cpp
3>e:\users\david\documents\visual studio 2010\projects\sparkengine\spark2\include\Core/SPK_Emitter.h(342): warning C4267: '-=' : conversion from 'size_t' to 'int', possible loss of data
3>e:\users\david\documents\visual studio 2010\projects\sparkengine\spark2\include\Core/SPK_Emitter.h(358): warning C4267: '-=' : conversion from 'size_t' to 'int', possible loss of data
3>  SPK_SpawnParticlesAction.cpp
3>e:\users\david\documents\visual studio 2010\projects\sparkengine\spark2\include\Core/SPK_Emitter.h(342): warning C4267: '-=' : conversion from 'size_t' to 'int', possible loss of data
3>e:\users\david\documents\visual studio 2010\projects\sparkengine\spark2\include\Core/SPK_Emitter.h(358): warning C4267: '-=' : conversion from 'size_t' to 'int', possible loss of data
3>  SPK_NormalEmitter.cpp
3>e:\users\david\documents\visual studio 2010\projects\sparkengine\spark2\include\Core/SPK_Emitter.h(342): warning C4267: '-=' : conversion from 'size_t' to 'int', possible loss of data
3>e:\users\david\documents\visual studio 2010\projects\sparkengine\spark2\include\Core/SPK_Emitter.h(358): warning C4267: '-=' : conversion from 'size_t' to 'int', possible loss of data
3>  Generating Code...
3>  Compiling...
3>  SPK_RandomEmitter.cpp
3>e:\users\david\documents\visual studio 2010\projects\sparkengine\spark2\include\Core/SPK_Emitter.h(342): warning C4267: '-=' : conversion from 'size_t' to 'int', possible loss of data
3>e:\users\david\documents\visual studio 2010\projects\sparkengine\spark2\include\Core/SPK_Emitter.h(358): warning C4267: '-=' : conversion from 'size_t' to 'int', possible loss of data
3>  SPK_SphericEmitter.cpp
3>e:\users\david\documents\visual studio 2010\projects\sparkengine\spark2\include\Core/SPK_Emitter.h(342): warning C4267: '-=' : conversion from 'size_t' to 'int', possible loss of data
3>e:\users\david\documents\visual studio 2010\projects\sparkengine\spark2\include\Core/SPK_Emitter.h(358): warning C4267: '-=' : conversion from 'size_t' to 'int', possible loss of data
3>  SPK_StraightEmitter.cpp
3>e:\users\david\documents\visual studio 2010\projects\sparkengine\spark2\include\Core/SPK_Emitter.h(342): warning C4267: '-=' : conversion from 'size_t' to 'int', possible loss of data
3>e:\users\david\documents\visual studio 2010\projects\sparkengine\spark2\include\Core/SPK_Emitter.h(358): warning C4267: '-=' : conversion from 'size_t' to 'int', possible loss of data
3>  SPK_IO_SPKLoader.cpp
3>e:\users\david\documents\visual studio 2010\projects\sparkengine\spark2\include\Core/SPK_Emitter.h(342): warning C4267: '-=' : conversion from 'size_t' to 'int', possible loss of data
3>e:\users\david\documents\visual studio 2010\projects\sparkengine\spark2\include\Core/SPK_Emitter.h(358): warning C4267: '-=' : conversion from 'size_t' to 'int', possible loss of data
3>  SPK_IO_SPKSaver.cpp
3>e:\users\david\documents\visual studio 2010\projects\sparkengine\spark2\include\Core/SPK_Emitter.h(342): warning C4267: '-=' : conversion from 'size_t' to 'int', possible loss of data
3>e:\users\david\documents\visual studio 2010\projects\sparkengine\spark2\include\Core/SPK_Emitter.h(358): warning C4267: '-=' : conversion from 'size_t' to 'int', possible loss of data
3>  SPK_IO_XMLLoader.cpp
3>e:\users\david\documents\visual studio 2010\projects\sparkengine\spark2\include\Core/SPK_Emitter.h(342): warning C4267: '-=' : conversion from 'size_t' to 'int', possible loss of data
3>e:\users\david\documents\visual studio 2010\projects\sparkengine\spark2\include\Core/SPK_Emitter.h(358): warning C4267: '-=' : conversion from 'size_t' to 'int', possible loss of data
3>  SPK_IO_XMLSaver.cpp
3>e:\users\david\documents\visual studio 2010\projects\sparkengine\spark2\include\Core/SPK_Emitter.h(342): warning C4267: '-=' : conversion from 'size_t' to 'int', possible loss of data
3>e:\users\david\documents\visual studio 2010\projects\sparkengine\spark2\include\Core/SPK_Emitter.h(358): warning C4267: '-=' : conversion from 'size_t' to 'int', possible loss of data
3>  SPK_BasicModifiers.cpp
3>e:\users\david\documents\visual studio 2010\projects\sparkengine\spark2\include\Core/SPK_Emitter.h(342): warning C4267: '-=' : conversion from 'size_t' to 'int', possible loss of data
3>e:\users\david\documents\visual studio 2010\projects\sparkengine\spark2\include\Core/SPK_Emitter.h(358): warning C4267: '-=' : conversion from 'size_t' to 'int', possible loss of data
3>  SPK_Collider.cpp
3>e:\users\david\documents\visual studio 2010\projects\sparkengine\spark2\include\Core/SPK_Emitter.h(342): warning C4267: '-=' : conversion from 'size_t' to 'int', possible loss of data
3>e:\users\david\documents\visual studio 2010\projects\sparkengine\spark2\include\Core/SPK_Emitter.h(358): warning C4267: '-=' : conversion from 'size_t' to 'int', possible loss of data
3>  SPK_EmitterAttacher.cpp
3>e:\users\david\documents\visual studio 2010\projects\sparkengine\spark2\include\Core/SPK_Emitter.h(342): warning C4267: '-=' : conversion from 'size_t' to 'int', possible loss of data
3>e:\users\david\documents\visual studio 2010\projects\sparkengine\spark2\include\Core/SPK_Emitter.h(358): warning C4267: '-=' : conversion from 'size_t' to 'int', possible loss of data
3>  SPK_LinearForce.cpp
3>e:\users\david\documents\visual studio 2010\projects\sparkengine\spark2\include\Core/SPK_Emitter.h(342): warning C4267: '-=' : conversion from 'size_t' to 'int', possible loss of data
3>e:\users\david\documents\visual studio 2010\projects\sparkengine\spark2\include\Core/SPK_Emitter.h(358): warning C4267: '-=' : conversion from 'size_t' to 'int', possible loss of data
3>  SPK_Obstacle.cpp
3>e:\users\david\documents\visual studio 2010\projects\sparkengine\spark2\include\Core/SPK_Emitter.h(342): warning C4267: '-=' : conversion from 'size_t' to 'int', possible loss of data
3>e:\users\david\documents\visual studio 2010\projects\sparkengine\spark2\include\Core/SPK_Emitter.h(358): warning C4267: '-=' : conversion from 'size_t' to 'int', possible loss of data
3>  SPK_PointMass.cpp
3>e:\users\david\documents\visual studio 2010\projects\sparkengine\spark2\include\Core/SPK_Emitter.h(342): warning C4267: '-=' : conversion from 'size_t' to 'int', possible loss of data
3>e:\users\david\documents\visual studio 2010\projects\sparkengine\spark2\include\Core/SPK_Emitter.h(358): warning C4267: '-=' : conversion from 'size_t' to 'int', possible loss of data
3>  SPK_RandomForce.cpp
3>e:\users\david\documents\visual studio 2010\projects\sparkengine\spark2\include\Core/SPK_Emitter.h(342): warning C4267: '-=' : conversion from 'size_t' to 'int', possible loss of data
3>e:\users\david\documents\visual studio 2010\projects\sparkengine\spark2\include\Core/SPK_Emitter.h(358): warning C4267: '-=' : conversion from 'size_t' to 'int', possible loss of data
3>  SPK_Rotator.cpp
3>e:\users\david\documents\visual studio 2010\projects\sparkengine\spark2\include\Core/SPK_Emitter.h(342): warning C4267: '-=' : conversion from 'size_t' to 'int', possible loss of data
3>e:\users\david\documents\visual studio 2010\projects\sparkengine\spark2\include\Core/SPK_Emitter.h(358): warning C4267: '-=' : conversion from 'size_t' to 'int', possible loss of data
3>  SPK_Vortex.cpp
3>e:\users\david\documents\visual studio 2010\projects\sparkengine\spark2\include\Core/SPK_Emitter.h(342): warning C4267: '-=' : conversion from 'size_t' to 'int', possible loss of data
3>e:\users\david\documents\visual studio 2010\projects\sparkengine\spark2\include\Core/SPK_Emitter.h(358): warning C4267: '-=' : conversion from 'size_t' to 'int', possible loss of data
3>  SPK_Oriented3DRenderBehavior.cpp
3>e:\users\david\documents\visual studio 2010\projects\sparkengine\spark2\include\Core/SPK_Emitter.h(342): warning C4267: '-=' : conversion from 'size_t' to 'int', possible loss of data
3>e:\users\david\documents\visual studio 2010\projects\sparkengine\spark2\include\Core/SPK_Emitter.h(358): warning C4267: '-=' : conversion from 'size_t' to 'int', possible loss of data
3>  SPK_QuadRenderBehavior.cpp
3>e:\users\david\documents\visual studio 2010\projects\sparkengine\spark2\include\Core/SPK_Emitter.h(342): warning C4267: '-=' : conversion from 'size_t' to 'int', possible loss of data
3>e:\users\david\documents\visual studio 2010\projects\sparkengine\spark2\include\Core/SPK_Emitter.h(358): warning C4267: '-=' : conversion from 'size_t' to 'int', possible loss of data
3>  SPK_Box.cpp
3>e:\users\david\documents\visual studio 2010\projects\sparkengine\spark2\include\Core/SPK_Emitter.h(342): warning C4267: '-=' : conversion from 'size_t' to 'int', possible loss of data
3>e:\users\david\documents\visual studio 2010\projects\sparkengine\spark2\include\Core/SPK_Emitter.h(358): warning C4267: '-=' : conversion from 'size_t' to 'int', possible loss of data
3>  SPK_Cylinder.cpp
3>e:\users\david\documents\visual studio 2010\projects\sparkengine\spark2\include\Core/SPK_Emitter.h(342): warning C4267: '-=' : conversion from 'size_t' to 'int', possible loss of data
3>e:\users\david\documents\visual studio 2010\projects\sparkengine\spark2\include\Core/SPK_Emitter.h(358): warning C4267: '-=' : conversion from 'size_t' to 'int', possible loss of data
3>  Generating Code...
3>  Compiling...
3>  SPK_Plane.cpp
3>e:\users\david\documents\visual studio 2010\projects\sparkengine\spark2\include\Core/SPK_Emitter.h(342): warning C4267: '-=' : conversion from 'size_t' to 'int', possible loss of data
3>e:\users\david\documents\visual studio 2010\projects\sparkengine\spark2\include\Core/SPK_Emitter.h(358): warning C4267: '-=' : conversion from 'size_t' to 'int', possible loss of data
3>  SPK_Ring.cpp
3>e:\users\david\documents\visual studio 2010\projects\sparkengine\spark2\include\Core/SPK_Emitter.h(342): warning C4267: '-=' : conversion from 'size_t' to 'int', possible loss of data
3>e:\users\david\documents\visual studio 2010\projects\sparkengine\spark2\include\Core/SPK_Emitter.h(358): warning C4267: '-=' : conversion from 'size_t' to 'int', possible loss of data
3>  SPK_Sphere.cpp
3>e:\users\david\documents\visual studio 2010\projects\sparkengine\spark2\include\Core/SPK_Emitter.h(342): warning C4267: '-=' : conversion from 'size_t' to 'int', possible loss of data
3>e:\users\david\documents\visual studio 2010\projects\sparkengine\spark2\include\Core/SPK_Emitter.h(358): warning C4267: '-=' : conversion from 'size_t' to 'int', possible loss of data
3>  Generating Code...
3>SPARK_Core.dir\Release\SPK_IO_Buffer.obj : fatal error LNK1112: module machine type 'x64' conflicts with target machine type 'X86'
3>
3>Build FAILED.
3>
3>Time Elapsed 00:01:20.98
========== Build: 2 succeeded, 1 failed, 0 up-to-date, 0 skipped ==========

this is the entire content of my output window when i recompil to a x64 platform

and you can see that at then end the only error reported is

Code:
3>SPARK_Core.dir\Release\SPK_IO_Buffer.obj : fatal error LNK1112: module machine type 'x64' conflicts with target machine type 'X86'

nothing more nothing about what actualy failed

and as both glew and plugiXML are icluded in the solution they should be recompiled to x64 as i set the target of the solution to it and they both seem to compile fine
Back to top Go down
View user profile
granyte



Messages : 53
Date d'inscription : 2012-06-23

PostSubject: Re: Spark2 Irrlicht integration   Fri Nov 09, 2012 2:47 pm

I encountered the same issue with bullet physics and it would seem this is caused by Cmake because it does not include x64 and x86 configurations when it build a project
Back to top Go down
View user profile
Darktib
Committer


Messages : 389
Date d'inscription : 2009-07-20
Localisation : A coté de Paris

PostSubject: Re: Spark2 Irrlicht integration   Fri Nov 09, 2012 5:28 pm

It might be this cmake bug: http://public.kitware.com/Bug/view.php?id=11240

_________________
Back to top Go down
View user profile
granyte



Messages : 53
Date d'inscription : 2012-06-23

PostSubject: Re: Spark2 Irrlicht integration   Fri Nov 09, 2012 8:27 pm

well it's jsut that i dinot rebuild the project through cmake befor trying to use x64 and because the way cmake work it force tie the project to x86 configuration meaning some one will need to reload cmake to swich to an other cofiguration
Back to top Go down
View user profile
Juff
Developer


Messages : 539
Date d'inscription : 2009-07-14
Age : 34

PostSubject: Re: Spark2 Irrlicht integration   Sun Nov 11, 2012 8:37 am

Granyte, I ve added a wrapper to be able to transform emitters using irrlicht nodes.
The class used to do that is a generic wrapper CSPKObjectNode<T> with aliases (for emitter its CSPKEmitterNode)
Check out the SPKTestIrrlicht code for an example.
Back to top Go down
View user profile http://spark.developpez.com
granyte



Messages : 53
Date d'inscription : 2012-06-23

PostSubject: Re: Spark2 Irrlicht integration   Sun Nov 11, 2012 4:37 pm

thanks alot. it's great i know i'm gonna abuse this interphase.

I have been abusing you guys time latly but i still have two other questions

first i noticed the SPK::vortex only attact particle on the same plane is there an attactor that attract particle in 3d to a point?

second is there an exemple on how to use the SPK::action interphase? let's say i would like to spawn a specific type of particle when a particle die?
Back to top Go down
View user profile
Juff
Developer


Messages : 539
Date d'inscription : 2009-07-14
Age : 34

PostSubject: Re: Spark2 Irrlicht integration   Sun Nov 11, 2012 4:58 pm

You're welcome.

Yes vortex make particles rotate around a line. If you want particles to rotate around a point, you ll need another class.

There is no example about how to use actions yet.
But for what you want to do everything already exists : Check out SpawnParticleAction and Group::setDeathAction
Back to top Go down
View user profile http://spark.developpez.com
Sponsored content




PostSubject: Re: Spark2 Irrlicht integration   Today at 3:43 am

Back to top Go down
 
Spark2 Irrlicht integration
View previous topic View next topic Back to top 
Page 2 of 3Go to page : Previous  1, 2, 3  Next
 Similar topics
-
» Selenium web driver with QC integration
» how to integrate Jira with Selenium
» [ANSWERED] Integrate drivers tutorial
» [ANSWERED] Integrate Language Pack
» [SOLVED] June tuesday patch integration

Permissions in this forum:You cannot reply to topics in this forum
 :: English Forum :: Questions (en)-
Jump to: