Crystal Space
Welcome, Guest. Please login or register.
July 25, 2014, 09:18:14 am

Login with username, password and session length
Search:     Advanced search
9005 Posts in 2043 Topics by 8230 Members
Latest Member: Eleneenri
* Home Help Search Login Register
+  Crystal Space
|-+  Crystal Space Development
| |-+  Support
| | |-+  How to get the picture every frame before rendering?
« previous next »
Pages: [1] Print
Author Topic: How to get the picture every frame before rendering?  (Read 1379 times)
Jr. Member
**
Posts: 81


View Profile Email
« on: November 24, 2008, 08:56:05 am »

     I am new in CS.
     In my programe I want to get the rendering picture before it is rendered on screen every frame, but i don't know how to get it! Please help me !!!
   
    Thank you very much!!!
Logged
Jr. Member
**
Posts: 81


View Profile Email
« Reply #1 on: November 24, 2008, 09:04:34 am »

  I finally found the way to get all the vertices of portal ,the code is followed:

 
   iMeshWrapper* portal_mesh = engine->FindMeshObject("_p_door01");
   csRef<iPortalContainer> portal_container = portal_mesh->GetPortalContainer();
   iPortal* portal = portal_container->GetPortal (0);
   
   int portalcount = portal->GetVertexIndicesCount();
   printf("the portal vertex is :%d\n",portalcount);
   const csVector3 *portalver = portal->GetVertices();

               for(int i=1; i<=portalcount;i++)
   {   
        printf("the portal's vertex is :%f,%f,%f\n",portalver->x,portalver->y,portalver->z);
        portalver ++;  // there we can make the pointer to the next vertex
   }

Logged
Pages: [1] Print 
« previous next »
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.2 | SMF © 2006-2007, Simple Machines LLC Valid XHTML 1.0! Valid CSS!
Page created in 3.227 seconds with 15 queries.