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.
Jorik
Posts: 44 Joined: Tue Dec 08, 2009 4:47 pm
Post
by Jorik » Fri Jan 22, 2010 11:34 pm
Hi,
i want to implement a loading screen when something is loaded from a webserver.
Unfortunatly this process stops the window of my game from running.
So the displaying of different frames is not possible.
Does anyone know a way to display a animation time and frame independent?
Would a Gif do this, and is a gif useable in irrlicht?
hybrid
Admin
Posts: 14143 Joined: Wed Apr 19, 2006 9:20 pm
Location: Oldenburg(Oldb), Germany
Contact:
Post
by hybrid » Sat Jan 23, 2010 11:02 am
I think you need to tell us how your render loops are build, otherwise it's hard to suggest anything. Do you have two different windows, do you render the load screen on top of your game scene, do you have a separate thread for your webserver communication, etc.
Jorik
Posts: 44 Joined: Tue Dec 08, 2009 4:47 pm
Post
by Jorik » Sat Jan 23, 2010 2:18 pm
I have a game scene and a gui that is rendered over the game scene.
My loading picture is rendered over the gui.
I thin there i no way to render an animated picture at the time i connect to the server...
Is it possible to draw a gif-like picture in irrlicht, and how?
Sylence
Posts: 725 Joined: Sat Mar 03, 2007 9:01 pm
Location: Germany
Contact:
Post
by Sylence » Sat Jan 23, 2010 4:30 pm
a gif won't help you there.
You have to put the connection into a separate thread.
Software documentation is like sex. If it's good you want more. If it's bad it's better than nothing.
hybrid
Admin
Posts: 14143 Joined: Wed Apr 19, 2006 9:20 pm
Location: Oldenburg(Oldb), Germany
Contact:
Post
by hybrid » Sat Jan 23, 2010 4:57 pm
You can also poll each time you rendered a frame. This might lag sometimes when too few data was available, etc., so it's usually best to put communication into a separate thread.
Jorik
Posts: 44 Joined: Tue Dec 08, 2009 4:47 pm
Post
by Jorik » Tue Jan 26, 2010 7:55 pm
Ok, this way i think i will use a non-moving picture.
Thanks for helping