Ambiera Forum

Discussions, Help and Support.

Ambiera Forum > CopperLicht
Error: Could not load file

nev
Guest
Quote
2010-04-11 11:37:35

running through hello world, startCopperLichtFromFile can't find the ccbjs -- it's in both copperlichtdata and (manually copied to) the dir with the test .html.

tried prepending ./ to the path:

<script type="text/javascript">
<!--
startCopperLichtFromFile('3darea', './copperlichtdata/solarTest.ccbjs');
-->
</script>

and still doesn't see it when test publishing through coppercube. .
would troubleshoot copperlicht.js but it's minified. any ideas?


erik
Registered User
Quote
2010-04-11 14:46:28

Usually, you don't need / or ./ at the beginning. What operating system and browser are you using?


nev
Guest
Quote
2010-04-11 23:37:29

win7 32, seems to be a problem with the chromium nightly build (apr10) -- firefox/minefield nightly does find and load, but everything's black.

checked out your demos, quake loads on both chrome and minefield, but it's black with grey terrain, no textures.

most other webGL demos around the net seem to work OK (a few haven't), so I'm not sure what the hangup is.
any recommended alpha browser versions that should work with copperlicht?


nev
Guest
Quote
2010-04-11 23:49:37

aside from chrome not finding the ccbjs, it may be a driver issue on my end:
http://learningwebgl.com/blog/?p=1569

once I'm updated I'll report back.


nev
Guest
Quote
2010-04-12 02:37:59

driver update sorted textures. chromium still doesn't find the ccbjs though.


erik
Registered User
Quote
2010-04-12 06:53:48

The latest build of Chromium changed the security policy. It doesn't allow loading local files anymore.
the bug entry for Chromium for this is http://code.google.com/p/chromiu..., blog entry: http://blog.chromium.org/2008/12..., looks like lots of developers now suffer from this.

You can disable this by adding the parameter
--allow-file-access-from-files
when starting chrome


Carnage_O4
Guest
Quote
2010-06-01 22:56:59

I can't get local files to work either. When starting Chrome I added '--enable-webgl' and '--allow-file-access-from-files' but this still doesn't fix the problem. I know the 'enable-webgl' parameter is working because I'm able to load the WebGL demos, but when I load my project it errors out on the .ccbj file.


Carnage_O4
Guest
Quote
2010-06-01 23:17:46

The --allow-file-access-to-files is working now (don't ask me why), however all I'm getting now is a black box. The panoramic worked fine in all other export settings. Any help here?

Thanks!


niko
Moderator
Quote
2010-06-02 13:52:11

So what is the exact error message you get then?


CARNAGE_O4
Guest
Quote
2010-06-02 16:51:08

I'm not getting any error messages. The project appears to be running fine, except that my .jpg files are not loading to build the panorama. I get a black box instead. Maybe these .jpg files need to be .png files?


CARNAGE_O4
Guest
Quote
2010-06-02 16:51:08

I'm not getting any error messages. The project appears to be running fine, except that my .jpg files are not loading to build the panorama. I get a black box instead. Maybe these .jpg files need to be .png files?


CARNAGE_O4
Guest
Quote
2010-06-02 18:41:10

This is working now, but I'm having an issue with the skyBox. When I add my own textures the screen is black, but the default skyBox works fine. I'll try and find a different post for this.


CARNAGE_O4
Guest
Quote
2010-06-02 19:06:41

Solved. My textures were too large. Maybe there is a maximum size?


niko
Moderator
Quote
2010-06-03 07:51:25

Interesting. Maybe there is, but I haven't heard of this before. How big was your texture?


CARNAGE_O4
Guest
Quote
2010-06-04 17:00:58

It appears your textures need to be either 64x64, 128x128, 256x256, 512x512, and 1024x1024. My original textures were 584x584 and they would not render, but when I dropped them down to 512x512 they rendered fine.


Create reply:


Posted by: (you are not logged in)


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