HomeHome  CalendarCalendar  FAQFAQ  SearchSearch  MemberlistMemberlist  UsergroupsUsergroups  RegisterRegister  Log inLog in  

Share | 
 

 DIRECTION_ALIGNED doesn't work in Irrlicht

View previous topic View next topic Go down 
AuthorMessage
isonil



Messages : 4
Date d'inscription : 2015-04-05

PostSubject: DIRECTION_ALIGNED doesn't work in Irrlicht   Sun Apr 05, 2015 8:38 am

Hey.

I'm using SPARK 1.5.5 and I tried to rewrite Explosion example to work with Irrlicht (basically just change Quad renderers), and it seems that DIRECTION_ALIGNED orientation doesn't work. This is how it looks:

(note the thin sparks, they should face their direction).

Is it a known issue? How can I fix it?
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: DIRECTION_ALIGNED doesn't work in Irrlicht   Sun Apr 05, 2015 10:42 am

Well, this is not a known issue, can you post the code ?

Also there is SPARK 2 out there for some years, there is no zip archive but a svn.

_________________
Back to top Go down
View user profile
isonil



Messages : 4
Date d'inscription : 2015-04-05

PostSubject: Re: DIRECTION_ALIGNED doesn't work in Irrlicht   Sun Apr 05, 2015 11:11 am

Thanks for your reply. Are there any good reasons to switch to SPARK 2?
I tried to write a simple code which would reproduce this bug, but it seems that outside of my project it works. Do you have any ideas what could cause this? Debugging it will take ages, since my project is ~60k LOC, so there are many things that could potentially cause it, different camera settings, different Irrlicht device settings... I don't know. It seems that particles have like 45 degrees offset.
Back to top Go down
View user profile
isonil



Messages : 4
Date d'inscription : 2015-04-05

PostSubject: Re: DIRECTION_ALIGNED doesn't work in Irrlicht   Sun Apr 05, 2015 12:19 pm

Ok, found the problem. I was setting flags incorrectly.

Btw. Is there any way to scale whole Group? So that zones and textures are scaled. I'd need it for small explosions and big explosions.
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: DIRECTION_ALIGNED doesn't work in Irrlicht   Mon Apr 06, 2015 1:20 pm

Good catch, yeah 60kLOC is a bit too much for this forum^^

Well, I will see more in details, but if you're using Irrlicht you could change the transformation of the node with a bigger scale (or similar concept if you're doing native OpenGL).

SPARK2 is more powerful on a number of points, and adds the ability to automate some parts of an effect. But if you have SPARK1.5 up and running in your project I think the simplest is just to continue using it.

_________________
Back to top Go down
View user profile
isonil



Messages : 4
Date d'inscription : 2015-04-05

PostSubject: Re: DIRECTION_ALIGNED doesn't work in Irrlicht   Mon Apr 06, 2015 2:11 pm

Ok, thanks.

I wish there was a function like ->setTransformScale() just as ->setTransformPoition() and ->setTransformRotation().

Is there any way to correctly rotate a Zone? Using ->setTransformRotation on a whole Group looks good as long as one uses symmetrical Zones (like spheres) - then whole 'Group' is rotated well. But if I use AABox Zone, then rotating whole group doesn't seem to affect the box itself (it always points at the same direction), am I doing something wrong?

Here is a complete example (rotation functions are marked as /////HERE, none of them seem to do anything):
https://ideone.com/TPlHUG
Back to top Go down
View user profile
Sponsored content




PostSubject: Re: DIRECTION_ALIGNED doesn't work in Irrlicht   Today at 9:27 am

Back to top Go down
 
DIRECTION_ALIGNED doesn't work in Irrlicht
View previous topic View next topic Back to top 
Page 1 of 1
 Similar topics
-
» Take a UFC fighter to work contest.
» It’s Your Work of Art Contest *read location restrictions*
» Has Anyone Gotten Chrome Driver to Work with Windows 7?
» How do we run 10 cases out of 100 in TestNG frame work
» Does Keppra work?

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