Todo3ds

Articles Posted diciembre 2009

  • iphone

    Reproducir sonido en el iPhone con Objective-C

    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]; [...]

  • Dos ejemplos de cómo formatear fechas con Objective-C

    Dos ejemplos de cómo formatear fechas con Objective-C

    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 = [...]

  • Especificar código solo en el simulador

    Especificar código solo en el simulador

    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

  • Durian Project: Directorial Address 02

    Durian Project: Directorial Address 02

    Project Durian continues on! This is the second directorial address from Colin, reporting on the state of affairs at the Blender Institute.

  • Durian Project: Rigify Auto-Rigging System

    Durian Project: Rigify Auto-Rigging System

    Blender 3D rigging system in development for the durian open movie.

  • Durian Project: Fight school

    Durian Project: Fight school

    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, [...]

  • Tip16 Christmas Tree Preview in CINEMA 4D

    Tip16 Christmas Tree Preview in CINEMA 4D

    Open CINEMA 4D over the Christmas holidays and you might just find that Santa has hidden a pressie for previewing your materials.

  • DECC’s Architectural Renderings Using CINEMA 4D

    DECC’s Architectural Renderings Using CINEMA 4D

    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 [...]

  • Durian Project: Sintel Face Test 01

    Durian Project: Sintel Face Test 01

    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.

  • Customizing CINEMA 4D

    Customizing CINEMA 4D

    Create your own layouts and shortcuts in CINEMA 4D. The good news is that it’s really easy to do