NSPoint. The results. Look at that, Georg!
NSPoint. The results. Look at that, Georg!
- Subject: NSPoint. The results. Look at that, Georg!
- From: email@hidden
- Date: Mon, 3 Mar 2003 10:22:37 -0500
Pascal,
To give you an idea, let me tell you about the 3d animation hair system
we're working on.
I had in a coop student who wrote our initial system for us - all in
Cocoa and pure Objective-C - with classes for everything. The 3d hair
system could have millions of hairs, and the program would rapidly run
out of memory.
Now I'm working on the new version, which is an Objective-C / plain old
boring(POB) C hybrid, and uses OpenGL for a real time display of the
hair dynamics. I've also extended it so that the hair has multiple
segments, which the initial system did not.
The new version which uses Objective-C for the all the glue code and
GUI, but holds the hairs in a C array and uses C procedures and structs
for the data is much faster and runs on a smaller memory footprint, and
is much easier to memory manage.
Because the data for the hair is allready a C array, I can use OpenGl
vertex arrays to draw them really fast.
We're writing a full 3d animation in a similar way - Objective-C for
where it's best - talking to the OS, glue code, GUI, and POB-C for the
maths and arrays. And it's working very well and very fast - much
faster than doing it pure O-C.
Graeme
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.