 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!
|
 niko Moderator |
Quote
|
2012-05-10 08:12:49 |
|
I haven't seen anybody doing something like this before, no :)
|
 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!
|
 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 :)
|