[SGL Library]

SGL Engine (Ãʱ⠿£Áø)

SGLÀº Structural GL Library¸¦ ÀǹÌÇϸç, OpenInventoró·³ °³Ã¼ÁöÇâ ÇÁ·Î±×·¡¹ÖÀ» Áö¿øÇÔ.

ÀÌ°ÍÀº »ó´ÜÀÇ realWorld¶ó´Â ¶óÀ̺귯¸®¸¦ ´Ü¼øÈ÷ È®ÀåÇÑ °ÍÀÌ ¾Æ´Ï¶ó, ¿ÏÀüÈ÷ óÀ½ºÎÅÍ Àç¼³°èÇÑ ¶óÀ̺귯¸®ÀÌ´Ù. ¿ì¸®´Â ¾Æ·¡Ã³·³ ´Ü ¸îÁÙ¸¸À¸·Î VC++ÀÇ MFCȯ°æÇÏ¿¡¼­ OpenGLÀ» ÀÀ¿ëÇÒ ¼ö ÀÖ´Ù.

 

 

1. SGL ObjectµéÀÇ ¼±¾ð.

 

sglIntegration  sgl;

// Modeling List
sglGroup                scene;

sglCamera              cam(0, 0, 200, 0, 0, 0);
sglObjSphere          obj(30);
sglColor                 col(1., 1., 0., 1.);
sglTranslate            trans(0, 0, 0);
sglGroup                 grp;

 

2. SGL ÃʱâÈ­ ¼³Á¤.

        // SGL ÃʱâÈ­
        sgl.Init(m_hWnd);

        // Ä«¸Þ¶ó ¼³Á¤.  ¾ÈÇصµ »ó°ü¾ø´Ù.
        sgl.sys.SetActiveCamera(&cam);

        grp.Add(&col);     // Ä÷¯ ¼Ó¼º Ãß°¡
        grp.Add(&trans);  //
À̵¿ ¼Ó¼º Ãß°¡
        obj.SetAttrib(&grp);  //
¹°Ã¼¿¡ ¼Ó¼º ¼³Á¤
        scene.Add(&obj);    // scene graph
¿¡ ¹°Ã¼ µî·Ï

        // register the scene
        sgl.mod.SetModel(&scene);  //
·»´õ·¯¿¡ scene graph ¼³Á¤

 

3. ·»´õ¸µ

        sgl.sys.Process();
        sgl.sys.Swap();

 

 

À§ ÄÚµå´Â ¾Æ·¡¿Í °°Àº °á°ú¸¦ ¸¸µç´Ù.

 

 

¹°Ã¼°¡ À§¿¡¼­ º¸´Ù º¹ÀâÇÏ´õ¶óµµ ÄÚµå´Â º°¹Ý ´Ù¸£Áö ¾Ê´Ù. OpenInventor¸¦ »ó»óÇÏ½Ã¸é µÈ´Ù.

SGLÀº È®Àå°¡´ÉÇÑ OOP°³³äÀ¸·Î ÀÛ¼ºµÇ¾î, »ç¿ëÀÚ°¡ ±âº» SGL¿¡ ±× ±â´ÉÀ» È®ÀåÇÒ ¼ö ÀÖ´Ù.

¾Æ·¡ Interactive Model ¶ÇÇÑ ÀÌ SGLÀ» SGLIModelÀ̶ó´Â ¶óÀ̺귯¸®·Î È®ÀåÇÑ ApplicationÀÌ´Ù.

SGLIModelÀº 3D-Studio MAXÀÇ ASEÃâ·ÂÆÄÀÏÀ» ÀÚü°³¹ßÇÑ ASECF¶ó´Â ÄÁ¹öÅÍ·Î ¹ÙÀ̳ʸ®·Î

ÀüȯÇÏ¸ç ±×°ÍÀ» ºÒ·¯µé¿© SGLÀÌ È­¸é¿¡ ·»´õ¸µÇÒ ¼ö ÀÖµµ·Ï ÇØÁØ´Ù. µ¿½Ã¿¡ Event °³³äÀ» Áö¿øÇÏ¿©,

»ç¿ëÀÚ¿Í Interactive ÇÒ ¼ö ÀÖ´Ù.

 

[Interactive Model]

SGLÀ» SGLIModelÀ̶ó´Â ¶óÀ̺귯¸®·Î È®ÀåÇÏ¿© ±¸ÇöÇÑ ¾ÖÇø®ÄÉÀ̼ÇÀÌ´Ù.

º¸½Ã´Â °Íó·³ ÄÄÇ»Å͸¦ »ç¿ëÀÚ°¡ Á÷Á¢ ¶â¾îº¼ ¼ö ÀÖ´Ù. ¿À¸¥ÂÊÀÇ ÆгÎÀº ¸¶¿ì½º·Î ºÎÇ°À» ¼±ÅÃÇÒ ¶§ ±× ºÎÇ°¿¡ ´ëÇÑ ¼³¸íÀ» º¸¿©ÁÖ´Â ¹ÝÅõ¸í ÆгÎÀÌ´Ù. [½ÇÇà]

 

ÄÄÇ»ÅÍ ÀüüÀÇ ¸ð½ÀÀÌ´Ù. CD-ROMµå¶óÀ̺긦 ¿­¾îº¸¾Ò´Ù. [½ÇÇà]

 

ÄÄÇ»ÅÍ Àüü ¸ð½ÀÀ» º¸¸é¼­ ¸¶±¸(?) ¶â¾îº¸¾Ò´Ù.

 

»ïº¸»çÀÇ ³ëÆ®ºÏÀÌ´Ù.   ¸ðµ¨ÀÌ ´õ ÀÖÁö¸¸ À§¿Í ºñ½ÁÇÏ´Ù.

* For not adequate web-space, I linked two models among them. Contact if you want the others.

* The models above are designed with ActiveX technology and run in Internet Explorer readily. It's similar with blaxxun.

* The SGL needs an OpenGL accelerator. If you have not, it works very slowly.