Ambiera Forum

Discussions, Help and Support.

Ambiera Forum > CopperCube > Programming and Scripting
"Big" problem ....

falcon12
Registered User
Quote
2015-12-26 20:00:30

Hi,


Imagine you visit a building. Each piece is dedicated to a pedagogic subject. You can enter a piece and click on 3D objects (books, TV, simulated objects etc.) for learning.

I created the building : Scene S1. this scene use about 80 % of CPU/GPU power.

I Created scene S1, wich use about the same power. And There will be many other scènes. S2,S3, ..., Sn that may use, as S1, big power .

I tried to call S2 when user click on a node. So I included S1 in S0.
Unfortunately, as Niko undestood, the browser try repeatedly to do garbage collection and that cause a jerky animation.

So the idea : "I can call heavy scenes when needed, S0 will not be impacted until I do that", wich was the base of my work (1.5 years), is false.

Hummm ....

I imagined other solutions :

Loading the scene S1 when needed and delete scene S0.
Ok. But does delete a scene is possible ? And : How can I force
active camera position to be in the place in S0 I left it before loading S1 ?

Does someone has an idea ?

PS: I must use WeGl, because I would the scene to run in a browser and scene S1 (I don't know why) is far slower with flash.


niko
Moderator
Quote
2015-12-27 10:05:38

I think a simple way would be to have separate .html files for this, and simply switching to those then, like if the user clicked a link in a HTML page. This would work then nicely.


falcon12
Registered User
Quote
2015-12-27 10:56:17

Can you explain more precisely niko?

if one considers only S0 (building) and S1 (a simulated object).

I understand S0 should be displayed in a window in a web page. S1 is it posted in the same web page but being hidden or reduced in the same page (but at that time are you sure it will not consume power anyway?) Or she appears S1 in a new page to another web address? (in this case other users can access this web page too, and are you certain that the sytem, since it will have to manage memory for S0 and S1 anyway, S1 will rotate as fast as if it was alone?)

Could you detail more your idea if you like me?


falcon12
Registered User
Quote
2015-12-27 10:58:52

Can you explain more precisely niko?

if one considers only S0 (building) and S1 (a simulated object).

I understand S0 should be displayed in a window in a web page. S1 is it posted in the same web page but being hidden or reduced in the same page (but at that time are you sure it will not consume power anyway?) Or she appears S1 in a new page to another web address? (in this case other users can access this web page too, and are you certain that the sytem, since it will have to manage memory for S0 and S1 anyway, S1 will rotate as fast as if it was alone?)

Could you detail more your idea if you like me?


falcon12
Registered User
Quote
2015-12-27 14:49:26

Could you detail more your idea ? (if you like me or not ... Niko ... )


falcon12
Registered User
Quote
2015-12-27 15:14:45

Could you detail more your idea ? (if you like me or not ... Niko ... )


Create reply:


Posted by: (you are not logged in)


Enter the missing letter in: "Internation?l" (you are not logged in)


Text:

 

  

Possible Codes


Feature Code
Link [url] www.example.com [/url]
Bold [b]bold text[/b]
Image [img]http://www.example.com/image.jpg[/img]
Quote [quote]quoted text[/quote]
Code [code]source code[/code]

Emoticons


   






Copyright© Ambiera e.U. all rights reserved.
Privacy Policy | Terms and Conditions | Imprint | Contact