k.l. Registered User |
Quote
|
2011-01-29 17:44:28 |
|
Hi.
CopperLicht is a great work! That's just what I searched for recently. After learning of tutorial, I think I need a new feature, to draw lines.
I think that's easy to implement. Just add a new parameter in class 'MeshBuffer', which stand for primitive type(draw mode for gl.drawElements), and change function 'CL3D.Renderer.prototype.drawWebGlStaticGeometry' to replace the 1st parameter for gl.drawElements. So I'd like to submit a patch for you developers. However, I have to work with the compressed js code, luckily it's fine for this simple task. What do you think about this?
|
niko Moderator |
Quote
|
2011-01-30 16:39:22 |
|
Hi,
yes, that feature is on the list. For now, you need to emulate this by drawing lines created triangles.
|
k.l. Registered User |
Quote
|
2011-01-31 08:55:13 |
|
And what about user defined shader parameters? I found there is no topic about lighting in tutorials, can lights be set in some way or is it in your next plan?
|
niko Moderator |
Quote
|
2011-01-31 15:56:04 |
|
By using the 'Material' callback of the Renderer class (see it in the documentation, there is example code in there: http://www.ambiera.com/copperlic...), you can set your own shader parameters. Currently, you have to do your own dynamic lights, but there are plans to support this in a near release.
|
k.l. Registered User |
Quote
|
2011-02-02 08:36:17 |
|
Thanks, that's helpful. :)
|