PS2DEV
Programas
22-10-2008Ifcaro 3D
IFCARO 3D


Ifcaro3d es una librería que funciona sobre unofficial Llibplanar y que simplifica la programación utilizando unas funciones similares a las de Blitz3d.

Por ejemplo lo que en Llibplanar seria:

  1. #include <llibPlanar.h>
  2.  
  3. int main(void){
  4.  
  5.     Model3DM *modelo3DM;
  6.     Object3D *object;
  7.     ObjectLight *light;
  8.    
  9.     setGsPacketsize(16);   
  10.     gfxInitVideo(GFX_AUTO);
  11.  
  12.     ObjectCamera *cam = cameraCreateZ(-200);
  13.    
  14.     modelo3DM = LoadModel3DM("ps2dev.3dm");
  15.     object = ObjectCreate(modelo3DM);
  16.     objectSetRenderMode(object, RENDER_FLAT);
  17.     objectSetColor(object,0xFF,0xFF,0x00);
  18.     objectTranslate(object,0,0,0);
  19.    
  20.     light = lightCreate(0,-50,-50);
  21.     objectSetLight(object,0, light);
  22.  
  23.         while (1) {
  24.        
  25.                 gfxSyncV();
  26.                 gfxSwapBuffers();
  27.                 gfxClear();
  28.  
  29.                 objectTurnHex(object,0,1,0);
  30.                
  31.                 objectRender(object);
  32.                 camRender(cam);
  33.                 gfxRender();
  34.         }
  35. }
  36.  


En Ifcaro3d seria:

  1. #include "Ifcaro3D.h"
  2.  
  3. int main()
  4.         {
  5.         Graphics3d(GFX_AUTO);
  6.                
  7.         TEntity cam=CreateCamera();
  8.         PositionEntity(cam,0,0,-200);
  9.        
  10.         TEntity objeto1=LoadMesh("ps2dev.3dm");
  11.         PositionEntity (objeto1,0,0,0);
  12.         EntityColor(objeto1,255,255,0);
  13.  
  14.         TEntity light=CreateLight();
  15.         PositionEntity (light,0,-50,-50);
  16.  
  17.         while(1){
  18.                
  19.                 TurnEntity(objeto1,0,1,0);
  20.  
  21.                 RenderWorld();
  22.                 Flip();
  23.                 }   
  24.         }   
  25.  


DOCUMENTACIÓN:



VIDEOS:




DESCARGAS:

(C) 2008 Ifcaro Corporation