coreLibraray_300 on the Mac

A place to discuss everything related to Newton Dynamics.

Moderators: Sascha Willems, walaber

coreLibraray_300 on the Mac

Postby Bird » Sun Dec 18, 2011 11:16 pm

Hi Julio,

Any idea when you'll have time to make a Mac XCode version of core 300? I tried compiling the "core" library with XCode but hit some compile errors in dgThread ... which looks like it's not ready for the Mac yet. I compiled using _USE_NEWTON_LIB and _MAC_VER macros. Are there any others that need to be defined?

Is there anything I can do to help you get a Mac version compiled? I'm going to be traveling for a couple of weeks and will be stuck using a Mac laptop and I need my Newton fix. :)

-Bird
Bird
 
Posts: 636
Joined: Tue Nov 22, 2011 1:27 am

Re: coreLibraray_300 on the Mac

Postby Julio Jerez » Mon Dec 19, 2011 12:41 am

well if you undestand the dThread you cna write the equevalent.
you can start by using the emulation mode of ThreadBee and dThrwadHive class, that is mostlly what I use for debugging

It is a litel more complicate to write threading code for Linxu and Max since they do no have knowledge of teh funtion waitforsingle oibject and waitFormutipleobjects.
Intsed ayou have to emulati teh funtionality with yields, and spin locks, or even worse with mutex.

anyway, I am completing the Convex decomposition now, thsi si swhy It is taking me soem time to compile the Mac and Linux version.
I belive I will have the final revision of teh convex decompistion tonight, so that I can move on wi the Max/Linux.
Julio Jerez
Moderator
Moderator
 
Posts: 12426
Joined: Sun Sep 14, 2003 2:18 pm
Location: Los Angeles

Re: coreLibraray_300 on the Mac

Postby Bird » Mon Dec 19, 2011 4:13 pm

well if you undestand the dThread you cna write the equevalent.
you can start by using the emulation mode of ThreadBee and dThrwadHive class, that is mostlly what I use for debugging

It is a litel more complicate to write threading code for Linxu and Max since they do no have knowledge of teh funtion waitforsingle oibject and waitFormutipleobjects.
Intsed ayou have to emulati teh funtionality with yields, and spin locks, or even worse with mutex.

I don't have much OS level knowledge of threads unfortunately. I've always relied on libraries like POCO, which has a lot of useful thread abstractions, to hide the gory details from me.

I belive I will have the final revision of teh convex decompistion tonight, so that I can move on wi the Max/Linux.

Cool, I'll test it out when you're finished. Are you going to have time to do the Hacd simplification step for hi-res meshes?

-Bird
Bird
 
Posts: 636
Joined: Tue Nov 22, 2011 1:27 am

Re: coreLibraray_300 on the Mac

Postby Julio Jerez » Tue Dec 20, 2011 12:10 pm

the mesh simplication is in teh mesh tool, It is wha thr terrain optimzation uses.
I do no think that a tool sould do more than one task.

for me it si better do do somethong liek

simpliedMesh = NetwonMeshSimplify (mesh, maxfaceCount)
NewtonMeshComvexApxoximation (simpliedMesh);

then having a comple funtion that do all at once.

of course you are right in questioning because I have not exposed the mesh simplication to the User interface yet.
I iwll do so with next check in.
Julio Jerez
Moderator
Moderator
 
Posts: 12426
Joined: Sun Sep 14, 2003 2:18 pm
Location: Los Angeles


Return to General Discussion

Who is online

Users browsing this forum: No registered users and 1 guest

cron