Page 1 of 1

Autogeometry on Win / Android

Posted: Thu Jun 27, 2013 3:26 pm
by rrakkola
Hi,

I'm interested in getting Autogeometry related features (mainly basic sampler & tilecache) to work on windows & android. My main problems are the ChipmunkAutogeometry and ChipmunkTileCache classes (don't really need the pointcloud & imagesampler), as they are written in obj-c.

I was wondering if anyone else has any experience on trying to get these to work in win environment or if anyone has ported these classes to C or C++ code and has any good advice to offer?

Cheers,
Riku

Re: Autogeometry on Win / Android

Posted: Thu Jun 27, 2013 11:52 pm
by slembcke
Oof. So it's something I want to do, and something I plan to do, but I'm not sure when I'll have the time. :-\ There are always too many things to do and not enough time to do them.

Sorry if that is a vague answer.

Re: Autogeometry on Win / Android

Posted: Fri Jun 28, 2013 3:34 am
by rrakkola
Ok, thanks for a quick answer. I understand that you must be busy with the upcoming unity version. I'll just try to port the classes to C.

Btw. Will the unity version be c# port running on top of mono or will it use a static library? and if so, can it really run in html5 environment? We have been using chipmunk with unity for a long time now as a lib and it's been great, but it would certainly be nice to be able to build web builds with physics as well :)

Re: Autogeometry on Win / Android

Posted: Fri Jun 28, 2013 10:01 am
by slembcke
It's a native code plugin. Beyond the effort of porting Chipmunk to C#, it would require rewriting most of the C# code we made for the Unity version so it's way more work than we could afford to maintain. :( I think the performance would be up being very poor as well.

Re: Autogeometry on Win / Android

Posted: Mon Oct 07, 2013 10:50 am
by rrakkola
Hi,

Here's basic tilecache & simple sampler code converted to C if anyone needs them. I just quickly ported what I needed, so didn't port any image samplers etc... But at least the tilecache implementation could be of use to someone.

- Riku

Re: Autogeometry on Win / Android

Posted: Fri Apr 17, 2015 2:45 am
by Babblu0
What you could do is decompose each tile into concave polygons though. While you can't join loops from adjacent tiles together without potentially recomputing a huge area, you can output concave polygons for individual tiles. This doesn't have a lot of advantages though (I can think of several disadvantages).