Ambiera ForumDiscussions, Help and Support. |
|
|
|||||
|
Good day. I am testing various frameworks of WebGL to further choose one for my project, and CopperLicht just caught my eye. However, I need help in some questions, if possible :).. here goes: 1 - I'm trying to publish a simple scene I made on Blender with CopperCube, to WebGL. I can import the models, but the only models that load correctly are the models with textures on them, the others with a simple material (for example, a blue sphere), are not displayed correctly, presenting a white color, and no specular light on them.The file format for importing I am using is Collada (.dae). Am I missing something? 2 - Does CopperLicht support assignment of a material to a mesh, dynamically? And setting the light properties of it, like specular, ambient and diffuse color (perhaps Phong or Lambert material type too?)? 3 - Is it possible to convert the other formats (like .dae), to the .ccb, without the CopperCube? 4 - Does CopperLicht support ray tracing / radiosity? Thanks in advance ;) |
||||
|
Hi, 1) Copperlicht doesn't support vertex colors, so only objects with textures on them will be shown correctly. If you want a solid color on parts of your models, use a colored image texture for this. 2) Yes, you can change any aspect of the material at runtime. See here: http://www.ambiera.com/copperlic... 3) Currently, you have to use CopperCube for this. There is also the possibility to use CopperCube via the command line to convert any mesh to a .ccb or .ccbjs file on the fly. 4) You can calculate the light mapping (using radiosity if you like) inside CopperCube (click the lightmapping tab and hit 'calculate'), it will then be shown in CopperLicht just as in the editor. |
||||
|
Understood. Thanks. |
|