ambiera logo

Ambiera Forum

Discussions, Help and Support.

folder icon Ambiera Forum > CopperLicht
forum topic indicator Lines primitive type wanted
person icon
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?

person icon
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.

person icon
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?

person icon
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.

person icon
k.l.
Registered User
Quote
2011-02-02 08:36:17

Thanks, that's helpful. :)


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 |