HomeHome  CalendarCalendar  FAQFAQ  SearchSearch  MemberlistMemberlist  UsergroupsUsergroups  RegisterRegister  Log inLog in  

Share | 
 

 [SPARK 2] Bug Report

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



Messages : 81
Date d'inscription : 2011-01-28
Age : 34

PostSubject: Re: [SPARK 2] Bug Report   Thu Apr 11, 2013 5:43 pm

Hi ! Just an idea : A "switching" between renderers would be a useful feature in the serialization system.if you save a system with a GL renderer , you can't load it in an engine that uses the DX9 module... The save function should include some option to save with different renderers.
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: [SPARK 2] Bug Report   Thu Apr 11, 2013 6:06 pm

Actually, the renderers can be serialized with my code, but even though it works flawlessly, it is still "experimental", mainly for design reasons, like the one you mentionned. Also, Juff is modifying them to be more "next-gen" (shaders & co), so it might wait a bit Wink

_________________
Back to top Go down
View user profile
Charlie



Messages : 81
Date d'inscription : 2011-01-28
Age : 34

PostSubject: Re: [SPARK 2] Bug Report   Sat Apr 20, 2013 10:28 am

Hi ! Is collision detection implemented in the Box zone ? because its seems it's wrong...
no matter how i try to set the rotation of the Destroyer or the Box zone , the collision detection is always the same :

box->getTransform().setOrientation
box->getTransform().set((float*) meshTransform)
box->setAxis()

or

destroyer->getTransform().setOrientation
destroyer->getTransform().set((float*) meshTransform)


or whatever i try , the collision detection is always the same.. am i doing something wrong ?

Thanks


EDIT :
It works when i set the axes of the box zone, but not when set the transform...
So basically i want to create an obstacle from a visual object. The box zone will be attached to this mesh.Something like this

Code:
destroyer->getTransform().set((float*) myMesh->getTransform())


The orientation is correct when i use this zone for emitters but wrong for collision detection (the zone's transform not taken into account)

Back to top Go down
View user profile
Juff
Developer


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

PostSubject: Re: [SPARK 2] Bug Report   Sat Apr 20, 2013 12:55 pm

I ll take a look a that
Back to top Go down
View user profile http://spark.developpez.com
Charlie



Messages : 81
Date d'inscription : 2011-01-28
Age : 34

PostSubject: Re: [SPARK 2] Bug Report   Sat Apr 20, 2013 1:11 pm

Hi i found a workaround . if i set :

Code:
box->getTransform().set((float*) mesh->getTransform())

// and then :

box->setAxis(box->getTransform().getLocalLookLH() , box->getTransform().getLocalUp());

// The position also need to be set.. ?

box->setPosition(Vector3D(mesh->getWorldPos());

Then works fine
Back to top Go down
View user profile
Juff
Developer


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

PostSubject: Re: [SPARK 2] Bug Report   Sat Apr 20, 2013 1:47 pm

I took a look at the code, it should work...
Is your destroyer or box zone shared ?
If it is, when updating a system that holds it, their transform will not be updated automatically. So you must make a explicit call to myDestroyer->updateTransform() after having modified it.
Back to top Go down
View user profile http://spark.developpez.com
Charlie



Messages : 81
Date d'inscription : 2011-01-28
Age : 34

PostSubject: Re: [SPARK 2] Bug Report   Sun Apr 21, 2013 3:32 pm

Hi !
Yes both zone and destroyer are shared, Tried updateTransform() still no luck...
Back to top Go down
View user profile
Sponsored content




PostSubject: Re: [SPARK 2] Bug Report   Today at 9:31 am

Back to top Go down
 
[SPARK 2] Bug Report
View previous topic View next topic Back to top 
Page 3 of 3Go to page : Previous  1, 2, 3
 Similar topics
-
» That Rainbow Report
» Selenium and Report Viewer
» verify maximum length for a field using selenium IDE
» [Help] how to add multiple testcases in a TestSuite through Selenium IDE
» how to generate xslt reports in testng?

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