About Store Forum Documentation Contact



Post Reply 
Background loading, progress bar, portal
Author Message
Harry Offline
Member

Post: #1
Background loading, progress bar, portal
Hello,

I tried to make a backround loader like in tutorial but instead of number result I want to show it by progress bar. So I load progress bar which I prepared in Gui Editor and then in customUpdate function I used set method for progress bar and as parametr i used updateProgress, but nothing happened. When I debuged it everything looked ok.

I have also a theoretical question about portals like in Portal or Prey games. Do you have any ideas how we can make it on Esenthel?
(This post was last modified: 06-18-2010 03:04 PM by Harry.)
06-18-2010 03:04 PM
Visit this user's website Find all posts by this user Quote this message in a reply
Ogniok Offline
Member

Post: #2
RE: Background loading, progress bar, portal
Do you have Gui.update() and Gui.draw() functions in loader's update and draw methods?
06-18-2010 06:07 PM
Find all posts by this user Quote this message in a reply
Harry Offline
Member

Post: #3
RE: Background loading, progress bar, portal
Yes I have.
06-18-2010 06:39 PM
Visit this user's website Find all posts by this user Quote this message in a reply
Ogniok Offline
Member

Post: #4
RE: Background loading, progress bar, portal
And you're adding guiObjs to Gui?
06-18-2010 08:01 PM
Find all posts by this user Quote this message in a reply
Harry Offline
Member

Post: #5
RE: Background loading, progress bar, portal
Yes. I see progress bar on the screen but it's progress value is still set on 0 but when I debug it I see that this value is changing.
(This post was last modified: 06-18-2010 08:32 PM by Harry.)
06-18-2010 08:32 PM
Visit this user's website Find all posts by this user Quote this message in a reply
Tottel Offline
Member

Post: #6
RE: Background loading, progress bar, portal
As for portals.. I guess it shouldn't be harder than simple updating the player's location coördinates.
06-18-2010 09:16 PM
Find all posts by this user Quote this message in a reply
Dynad Offline
Member

Post: #7
RE: Background loading, progress bar, portal
No i think he means the game Valve Portal, Portal source... in this game u have holes in walls after u shoot at it, when u shoot at another piece of wall the old hole closes and the new 1 opens.

http://www.youtube.com/watch?v=TluRVBhmf8w


But for making portals maybe u can use CSG wink

There is always evil somewhere, you just have to look for it properly.
(This post was last modified: 06-19-2010 01:56 AM by Dynad.)
06-18-2010 11:32 PM
Visit this user's website Find all posts by this user Quote this message in a reply
Dynad Offline
Member

Post: #8
RE: Background loading, progress bar, portal
Btw i have tested it, and when u load the same scene again the progress bar wont go up it stays on 0%... cause the world is already loaded.

Dunno if thats your problem.. if so then this should be the solution:
PHP Code:
Game::World.New("world/the world u wanna load.world"); 

PHP Code:
void customDraw() // you can modify this method and perform custom drawing of the loading screen
   
{
      
D.clear(TURQ);
      
Gui.draw();
      
progress.set(Game::World.updateProgress());
      
progress();
   } 

Even if the world is the same; it reloads and the progress bar works fine..


~Dynad

There is always evil somewhere, you just have to look for it properly.
(This post was last modified: 06-19-2010 02:51 AM by Dynad.)
06-19-2010 02:35 AM
Visit this user's website Find all posts by this user Quote this message in a reply
Harry Offline
Member

Post: #9
RE: Background loading, progress bar, portal
Ok thanks but it still doesn't work. The problem is even when I load my scene at the first time.

Edit: Ok. I found the problem. I drew two progress bars (one of them I use when the game will load) which has the same position and size grin
(This post was last modified: 06-19-2010 09:47 AM by Harry.)
06-19-2010 09:22 AM
Visit this user's website Find all posts by this user Quote this message in a reply
Harry Offline
Member

Post: #10
RE: Background loading, progress bar, portal
As for portals i thought about making markers on walls or floors and inside them put viewport which will show view from second portal. But is it possible to make viewport which we can put in 3d dimension?
06-19-2010 12:50 PM
Visit this user's website Find all posts by this user Quote this message in a reply
Esenthel Offline
Administrator

Post: #11
RE: Background loading, progress bar, portal
no
06-19-2010 01:11 PM
Find all posts by this user Quote this message in a reply
Post Reply