Home › Forums › General Questions › Reloading the project
- This topic has 8 replies, 3 voices, and was last updated 3 years, 6 months ago by xeon.
-
AuthorPosts
-
2021-05-26 at 4:03 pm #41441gf3dCustomer
Hi there,
in my project i want to reload the scene after some idle time
I created a puzzle which should do it, see attachment.
i does unload the scene but does not reload it again…
the screen stays blank…..any ideas?Greets
Ger
Attachments:
You must be logged in to view attached files.2021-05-26 at 5:31 pm #41446xeonCustomerWe do this for a number of tradeshow installations where this type of interaction is required. If you have to do it this way you are better off handling it through a script in the parent window that just reloads the page.
We typically create an InitialState procedure….this has all the variables, positions, animations, etc….settings.
This procedure is then called on an idle time and the entire project is reset. This allows you to keep some stored data such as high scores, survey data, etc if desired.Alternatively…you could have two scenes. The first scene is what you could call and inactive scene… upon interaction it would load the second scene…your main project. On inactivity…you load your inactive scene and the process repeats.
There are many solutions to this general question so without more information I hope one of these will be helpful.
Xeon
Route 66 Digital
Interactive Solutions - https://www.r66d.com
Tutorials - https://www.xeons3dlab.com2021-05-27 at 6:12 am #41477visualizerCustomerHey
This is interesting feature actually. Should be made easy to use.
Xeon or some expert developer people are achieving it but for common user like me its tough job.The smart amendment, update, refresh OR LOD ( level of detailing) should be soon included with easy set of tools really. Hope next verge comes up with such utilities.
Regards
2021-05-27 at 6:43 am #41482gf3dCustomerHi there, thanks for the answer.
Since i´m not a programmer i don´t really know what you mean,
I just want the whole project to be reloaded after some defined idle time. nothing to be saved or anything. Its meant for a point of information, where the initial state should be restored.Greets
Ger
2021-05-28 at 11:09 am #41555gf3dCustomerHi there you guys from verge3d…..
Can you help with my problem….still isn´t solved yet..
Greets
Ger
2021-05-29 at 9:46 am #41568gf3dCustomerHi there, problem isn´t solved yet.
to your understanding……
My project runs fine sofar…it is meant to be running in a public place. People can play with it….if they don´t wanna play with it anymore…they normally leave app as it is at that moment…
after some predefined idle time I want it to be restored to its initial state again…so probably to be reloaded.
I created this puzzle as seen in the attachment….
The scene unloads fine but it doesn´t reload…the screen stays blank.
any ideas how this can be done by puzzles without any programming?
Greets
Ger
2021-05-29 at 5:57 pm #41570xeonCustomerOk…I have attached reload scene using simple puzzles.
Basicaly its a ball and a cube. The cube is animated over 30 frames.
The ball is a button…that will allow you to manually reset the scene.
The puzzles set up a scenario testing for an idle event. For simplicity, I have chosen if the animation is playing or not. The test will run every 5 seconds to determine if it’s playing. If it’s not playing the scene will re-initialize. You can interrupt the timer by pressing the sphere before the 5 seconds.This process just requires you move all your code into procedures and then call the procedures as needed based on the condition of inactivity you set.
This is just one option but eliminates reloading of the scene.
Xeon
Route 66 Digital
Interactive Solutions - https://www.r66d.com
Tutorials - https://www.xeons3dlab.com2021-05-30 at 10:28 am #41591gf3dCustomerThank you for the reply….but this doesn´t help me realy….
My whole scene is very complex….you can switch between 3 cameraviews
load and unload objects and materials…switch materials…
more than 50 animated objects etc etc…..i just need something to restart the whole project when after some predefined time no mouse action occurs….so that the next viewer can start from scratch…as i said it is meant to running at a public place where people should be motivated by what they see and get curious to play with it…
But thanks….this might be helpfull for futere projects
anyone can have a look at my page http://www.gf3d.de and see the VR section.
there you see the space scene….it takes a bit to load…but once loaded it runs fine on my PC…i have a 8GB graphicboard which is sufficiant….just to give you an idea of the complexibility..Greets
Ger
2021-05-31 at 5:28 am #41601xeonCustomerSorry, this did not get you going in a favorable direction. The concept is that no matter how complex your scene is it can be reset based on how you initialize it. All your initial settings of the camera, location, animation, frames, etc…can all be stored in variables and thus in procedures. Once you have an initialize procedure…regardless of what you do you can call that initializing procedure and the entire scene would “reset”…even reloading the initial models if necessary.
But if that is not a technique you prefer there are many others. The easiest way is to have the parent window via javascript monitor event listeners on the mouse and keyboard and after a set time…just reload the page. That would be the easiest.
Xeon
Route 66 Digital
Interactive Solutions - https://www.r66d.com
Tutorials - https://www.xeons3dlab.com -
AuthorPosts
- You must be logged in to reply to this topic.