Ambiera Forum

Discussions, Help and Support.

Ambiera Forum > CopperCube > Help with CopperCube
Objects flash black when changing textures

Barry
Guest
Quote
2017-11-29 22:54:08

I have a number of objects that need to change textures in WebGL. The function works fine but the first time some textures are selected the object flashes black then applies the texture correctly. Each texture is loaded into cc and published with the setting wait until all textures are loaded. I noticed that 5 textures load without the flash but don't understand why the others flash first. I also noticed that the when loading the message says 7 textures loading where there are actually 12.

Any ideas on how to stop it?


erik
Registered User
Quote
2017-11-30 08:01:54

Maybe you are loading the texture manually or dynamically? Or maybe the browser decides not to load the texture yet because it is not used. You could try if it helps making an object in the scene using this texture, and see if it still happens then. Make that object be out of view or similar. Or maybe even invisible, just to try out.


Barry
Guest
Quote
2017-12-01 20:01:21

Thanks Eric, I tried that and it does resolve some colors but not all. Do you think it may be something the ccbjs is storing?


niko
Moderator
Quote
2017-12-02 05:55:30

Difficult to say, when you open the developer console of the browser (Menu -> More tools -> Developer Tools, and the click on the tab 'Console'), do you have any error messages there?


Barry
Guest
Quote
2017-12-02 14:45:51

Hi Niko, I don't see any errors. I did what Erik suggested and created a small part for each color and made it visible hidden under a plane. All the colors now work except for 1.


niko
Moderator
Quote
2017-12-04 09:05:08

Difficult to say. You could send me the .ccb file (see support -> contact), and I'll have a look at it.


Create reply:


Posted by: (you are not logged in)


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