ambiera logo

Ambiera Forum

Discussions, Help and Support.

folder icon Ambiera Forum > CopperLicht
forum topic indicator Dynamic ccbjs file loading example?
person icon
bagg
Registered User
Quote
2010-09-25 12:31:01

Hi niko i am vangelis with dragonfly project? I am trying to do it myshelf so i'm gonna need help.So to start questions can you give me a code example on how to load a ccbjs file in to coppelicht dynamically?
And if it's possible a phong with texture fragment vertex shader that copperlicht can read?

Thanks in advance

person icon
niko
Moderator
Quote
2010-09-26 08:59:21

All tutorials show how to load a .ccbjs file, the simplest way is to do
var engine = startCopperLichtFromFile('3darea', 'copperlichtdata/yourfile.ccbjs');


But you can also create the engine manually like

var engine = new CopperLicht('3darea');

if (!engine.initRenderer())
return; // this browser doesn't support WebGL


and then call engine.load('yourfile.ccbjs') to load it.
About shaders: Sure, see for example this tutorial http://www.ambiera.com/copperlic...


Create reply:










 

  

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


icon_holyicon_cryicon_devilicon_lookicon_grinicon_kissicon_monkeyicon_hmpf
icon_sadicon_happyicon_smileicon_uhicon_blink   






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