Crystal Space
Welcome,
Guest
. Please
login
or
register
.
May 26, 2013, 12:26:50 am
1 Hour
1 Day
1 Week
1 Month
Forever
Login with username, password and session length
Search:
Advanced search
9224
Posts in
2230
Topics by
5390
Members
Latest Member:
Okvepkke6
Crystal Space
Crystal Space Development
Support
How to get the picture every frame before rendering?
« previous
next »
Pages:
[
1
]
Author
Topic: How to get the picture every frame before rendering? (Read 1300 times)
Jr. Member
Posts: 81
How to get the picture every frame before rendering?
«
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
Re: How to get the picture every frame before rendering?
«
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
]
« previous
next »
Jump to:
Please select a destination:
-----------------------------
Crystal Space Development
-----------------------------
=> General Crystal Space Discussion
=> Support
-----------------------------
Crystal Space Project Development
-----------------------------
=> Feature Requests
=> Plugins
=> Bug Reports
-----------------------------
Crystal Space Development
-----------------------------
=> Game Content Creation
-----------------------------
Miscellaneous
-----------------------------
=> Article/Tutorial Requests
=> Article/Tutorial Discussion
-----------------------------
Crystal Space Project Development
-----------------------------
=> Development Discussion
-----------------------------
Crystal Space Projects
-----------------------------
=> Project Discussion
=> WIP Projects
=> Finished Projects
-----------------------------
Associate Projects
-----------------------------
=> CEL Discussion
=> Crystal Core Discussion
=> CrystalBlend Discussion
-----------------------------
Crystal Space Project Development
-----------------------------
=> Google Summer of Code
-----------------------------
Associate Projects
-----------------------------
=> Apricot (Open Game)
=> Ares Project
Loading...