ambiera logo

Ambiera Forum

Discussions, Help and Support.

folder icon Ambiera Forum > CopperLicht
forum topic indicator Constructive Solid Geometry
person icon
juantar
Registered User
Quote
2012-05-09 15:45:09

I was just wondering if somebody has been able to implement Constructive Solid Geometry in Copperlicht. I know there is a Javascript webgl library for it (http://evanw.github.com/csg.js/) and I can try to see if I can integrate it with coppelicht, but before doing that I wanted to know if somebody has work on this before.

Thanks!

person icon
niko
Moderator
Quote
2012-05-10 08:12:49

I haven't seen anybody doing something like this before, no :)

person icon
juantar
Registered User
Quote
2012-05-24 00:06:55

I tried converting a script from Three.js that uses the Constructive Solid Geometry library touse copperlicht instead. My work so far can be downloaded at https://sites.google.com/site/jp.... A live demo is in http://mathbattlegame.appspot.co.... The sample just subtracts one cube from another and then move the resulting mesh up.

The problem is that the resulting mesh does not have the texture correctly mapped to it, and I don't know how to do that. Right now the resulting mesh just shows a flat color. The vertices are being modified correclty as long as I can tell. Any help from someone who knows more about 3D than I do is greatly appreciated.

Thanks!

person icon
niko
Moderator
Quote
2012-05-24 17:14:12

Nice :) Probably, if you are splitting the polys somehow, you also need to split and interpolate the texture coordinates, I guess. But this probably depends on the details of algorithm you are using :)


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 |