Would you like to react to this message? Create an account in a few clicks or log in to continue.



 
HomeHome  Latest imagesLatest images  SearchSearch  RegisterRegister  Log inLog in  

 

 DIRECTION_ALIGNED doesn't work in Irrlicht

Go down 
2 posters
AuthorMessage
isonil




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

DIRECTION_ALIGNED doesn't work in Irrlicht Empty
PostSubject: DIRECTION_ALIGNED doesn't work in Irrlicht   DIRECTION_ALIGNED doesn't work in Irrlicht Icon_minitimeSun 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:
DIRECTION_ALIGNED doesn't work in Irrlicht 2dtyjbr
(note the thin sparks, they should face their direction).

Is it a known issue? How can I fix it?
Back to top Go down
Darktib
Committer
Darktib


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

DIRECTION_ALIGNED doesn't work in Irrlicht Empty
PostSubject: Re: DIRECTION_ALIGNED doesn't work in Irrlicht   DIRECTION_ALIGNED doesn't work in Irrlicht Icon_minitimeSun 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
isonil




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

DIRECTION_ALIGNED doesn't work in Irrlicht Empty
PostSubject: Re: DIRECTION_ALIGNED doesn't work in Irrlicht   DIRECTION_ALIGNED doesn't work in Irrlicht Icon_minitimeSun 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
isonil




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

DIRECTION_ALIGNED doesn't work in Irrlicht Empty
PostSubject: Re: DIRECTION_ALIGNED doesn't work in Irrlicht   DIRECTION_ALIGNED doesn't work in Irrlicht Icon_minitimeSun 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
Darktib
Committer
Darktib


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

DIRECTION_ALIGNED doesn't work in Irrlicht Empty
PostSubject: Re: DIRECTION_ALIGNED doesn't work in Irrlicht   DIRECTION_ALIGNED doesn't work in Irrlicht Icon_minitimeMon 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
isonil




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

DIRECTION_ALIGNED doesn't work in Irrlicht Empty
PostSubject: Re: DIRECTION_ALIGNED doesn't work in Irrlicht   DIRECTION_ALIGNED doesn't work in Irrlicht Icon_minitimeMon 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
Sponsored content





DIRECTION_ALIGNED doesn't work in Irrlicht Empty
PostSubject: Re: DIRECTION_ALIGNED doesn't work in Irrlicht   DIRECTION_ALIGNED doesn't work in Irrlicht Icon_minitime

Back to top Go down
 
DIRECTION_ALIGNED doesn't work in Irrlicht
Back to top 
Page 1 of 1
 Similar topics
-
» Does spark work with Irrlicht 1.8?
» 2D in irrlicht
» IRRSystem scale doesn't work?
» irrlicht and iPhone
» irrlicht and rain

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