En http://developer.apple.com hay un ejemplo (BubbleLevel) que tiene la siguiente clase para reproducir sonidos: Declaración de SoundEffect.h: #import #import @interface SoundEffect : NSObject { SystemSoundID _soundID; } + (id)soundEffectWithContentsOfFile:(NSString *)aPath; – (id)initWithContentsOfFile:(NSString *)path; – (void)play; @end Implementación de SoundEffect.m: #import “SoundEffect.h” @implementation SoundEffect + (id)soundEffectWithContentsOfFile:(NSString *)aPath { if (aPath) { return [[[SoundEffect alloc] initWithContentsOfFile:aPath] autorelease]; [...]
Dejo dos ejemplos simples para de cómo formatear fechas: // Date: 10/29/08 NSDate *today = [NSDate dateWithTimeIntervalSinceNow:0]; NSDateFormatter *dateFormat = [[[NSDateFormatter alloc] init] autorelease]; [dateFormat setDateStyle:NSDateFormatterShortStyle]; NSString *dateString = [dateFormat stringFromDate:today]; NSLog(@”Date: %@”, dateString); // Date: 10/29/2008 08:29PM NSDate *today = [NSDate date]; NSDateFormatter *dateFormat = [[NSDateFormatter alloc] init]; [dateFormat setDateFormat:@"MM/dd/yyyy hh:mma"]; NSString *dateString = [...]
Hay veces que necesitas escribir código que solo sea aplicable cuando estas trabajando con el simulador. La forma de decir al compilador que bloquee esa parte de código es añadiendo a la cabecera una directiva como se muestra a continuación: #if TARGET_IPHONE_SIMULATOR NSLog(@”Running on Simulator”); #else NSLog(@”Running on Device”); #endif
Project Durian continues on! This is the second directorial address from Colin, reporting on the state of affairs at the Blender Institute.
Blender 3D rigging system in development for the durian open movie.
Colin, Lee, Ton and I went to Man-Lung Tang’s school on friday (12-12-09), mainly to improve some of the fighting sequences. The afternoon was very productive and the resulting fight choreographies will certainly add a lot to the movie. Further the students of Man-lung were nice enough to provide the team with some spectacular acrobatics, [...]
Open CINEMA 4D over the Christmas holidays and you might just find that Santa has hidden a pressie for previewing your materials.
With 15 years of experience in the field of architectural rendering, Mexico-based DECC works with top architects and developers, and has accomplished over 1000 large-scale projects all over the world. DECC uses CINEMA 4D as its main modeling, animation and rendering software. “CINEMA 4D is an incredible help to us at DECC; its speed, quality [...]
Just a quick test to see how far I can get with a bone-only deformation setup for the mouth area. The final rig will use a mix of this and shape keys.
Create your own layouts and shortcuts in CINEMA 4D. The good news is that it’s really easy to do