Ambiera Forum

Discussions, Help and Support.

Ambiera Forum > CopperCube > Feature requests and bug reports
javascript command ccbCleanMemory(0 doesn't work.

just_in_case
Moderator
Quote
2018-09-20 11:26:23

I have attached an action to a object to load a texture dynamically via scripting.
and a javascript command of cleaning memory to remove unused texture.
even when i deleted the original texture file from my pc...
and even after executing the command Clean memory.. the texture still shows up... while it should have been cleaned up..

is this bug or what?

or isn't there a command to reload texture via javascript.


niko
Moderator
Quote
2018-09-21 08:25:09

Hm, no, sorry there is no way to do that using JavaScript. Textures are assumed to be static and cached for that. A workaround would be to rename the texture on disk (or copy it), so that it has a new name, but that's probably not feasible.


just_in_case
Moderator
Quote
2018-09-24 08:48:07

then i will add this as a feature request to have javascript command like

ccbReloadTexture9"texturefillename")
this can be usefull if a person wants to change texture of a scenenode dynamically,,, deleting and renaming the texture isn't working in my case....


niko
Moderator
Quote
2018-09-25 08:12:50

Noted. I'll see if this can be done.


Create reply:


Posted by: (you are not logged in)


Enter the missing letter in: "Inte?national" (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