Space Flight Demo

If you are a new Irrlicht Engine user, and have a newbie-question, this is the forum for you. You may also post general programming questions here.
arras
Posts: 1622
Joined: Mon Apr 05, 2004 8:35 am
Location: Slovakia
Contact:

Post by arras »

jox, you saved me finaly, it is as you sad, old function is the problem and your code is solving that...

I also found source of my trouble, dll was compiled right, it was one matrix4.h file lost in my include dir so DevC++ used that one instead one from Irrlicht dir.

Now I can move further in my project ...I owe you that ;)
jox
Bug Slayer
Posts: 726
Joined: Thu Apr 22, 2004 6:55 pm
Location: Germany

Post by jox »

Pew, that was a "heavy birth" as we say in german... But finally the baby is born and healthy :)

Next time better trust my first post 8) ;)
arras
Posts: 1622
Joined: Mon Apr 05, 2004 8:35 am
Location: Slovakia
Contact:

Post by arras »

well we call it "hard birth" in slovak ;)

...nex time I will :roll:
DarkWhoppy
Posts: 386
Joined: Thu Sep 25, 2003 12:43 pm
Contact:

Post by DarkWhoppy »

arras wrote:DarkWhoppy>> It is included, you just have to download it separately in SFd_dlls.zip ;)
It's not included if its seperate...
Programmer of the Irrlicht Scene Editor:
Homepage - Forum Thread
Version 2 on its way!!
PWAUVAN
Posts: 8
Joined: Thu Mar 01, 2007 7:19 pm
Location: Milwaukee

Post by PWAUVAN »

is this demo open source?
PWAUVAN (Programmer With An Unnecessarily Verbose Acronym Name
AlexL
Posts: 184
Joined: Tue Mar 02, 2004 6:06 pm
Location: Washington State

Post by AlexL »

Sorry to say, but this topic is three years old :? I doubt your going to be getting much of an answer at all.
arras
Posts: 1622
Joined: Mon Apr 05, 2004 8:35 am
Location: Slovakia
Contact:

Post by arras »

PWAUVAN >> No I was newer releasing source. Some usefull functions can be found at http://irrlicht.sourceforge.net/phpBB2/ ... php?t=4680

If you are interested I may try to dig it up from old hardisk and send it to you. However it is quit old and it will not compile correctly with newer versions of Irrlicht.
PWAUVAN
Posts: 8
Joined: Thu Mar 01, 2007 7:19 pm
Location: Milwaukee

Post by PWAUVAN »

If you wanted to go through the effort to find the source for me I would greatly appreciate it, however, if it is any trouble then I won't be heartbroken at all if you don't want to. mainly I am having issues getting the ship to respond to more than one command at a time (i.e banking left and moving up at the same time if the left and up buttons are pressed together) as well as getting the camera, set as a child to the player node, to rotate like the ship (cockpit cam) I put an invisible node about 500 units in front of each ship I create which I can use to determine the direction of the ship and use when firing projectiles (this also allows the ship to fire in different directions that straight forward, I just move the child invisible node relative the the parent ship) but even though I set the child invisible node's position as the target of the child camera, it doesn't seem to respond nor does it rotate with the ship when it rolls or pitches. really the only thing it does right is update its position to be the ship's position. Your demo seemed to handle multiple keys much better than my current project and the cockpit cam does exactly what I am looking for.
PWAUVAN (Programmer With An Unnecessarily Verbose Acronym Name
arras
Posts: 1622
Joined: Mon Apr 05, 2004 8:35 am
Location: Slovakia
Contact:

Post by arras »

Link I was posting contain makeCockpit function which control camera and move function which move ship in direction it faces. Can be used also for firing bullet.
If you go to the second page of that post you can find small demo under EXAMPLE CODE. Just replace node1 with your ship and adjust distances if yur model is much bigger than cube scene node used in example.
Example also contain event reciever which can handle more than one keyinput at the time, so ship will respond to several key commands.

All those functions can be easily built in to classes so you may create ship class and then use for example function shipnode->turn(angle).

If this is not enough just ask once more and Ill try to search for sourcecode.
PWAUVAN
Posts: 8
Joined: Thu Mar 01, 2007 7:19 pm
Location: Milwaukee

Post by PWAUVAN »

Thank you, the cockpit code worked out rather nicely. I do have a ship class which contains the node as well as information such as the firing rate of its lasers, the "target convergance node" (that invisible node I talked about earlier) enemies, friends, etc, whihc is then inheritable to different kinds of ships. I modified the cockpit cam functionality to allow the cockpit view to me moved independant of the ship (within specific boundaries). this is cool because the lasers also fire in the direction of the cam giving some targeting freedom other than straight forward.
PWAUVAN (Programmer With An Unnecessarily Verbose Acronym Name
Post Reply