Crystal Space
Welcome, Guest. Please login or register.
October 01, 2014, 09:31:42 am

Login with username, password and session length
Search:     Advanced search
9020 Posts in 2053 Topics by 8564 Members
Latest Member: Gwennparks5
* Home Help Search Login Register
+  Crystal Space
|-+  Crystal Space Development
| |-+  Support
| | |-+  some questions about "portal "
« previous next »
Pages: [1] Print
Author Topic: some questions about "portal "  (Read 1413 times)
Jr. Member
**
Posts: 81


View Profile Email
« on: November 18, 2008, 04:17:54 am »

   I am new in CEL and CS.
   When i use cel and cs, i met some questions.
    I have created two entities to describe the world and the Actor. "LevelEntity" is used to describe the world and "ActorEntity" is used to describe the actor.The questions is following:
   
   1. In  cel, it provides a property class -- "iPcPortal", I want to use this property class to get the portal's vertex  in world space, but i am not sure which entity i can add the "iPcPortal" property class to, ActorEntity or levelEntity? 
   2. In CS of "iPortal" interface, it provides a function of "virtual const csPlane3 &  GetObjectPlane ()=0 " , the description of it is "Get the object space plane of this portal", what does it mean of "object space plane "? Does it mean "object space"?
   3. I want to get the vertex coordinate in world space of a portal which is in the game world, but i don't know which function to use in "iPortal" to get the portal's vertex coordinate?
   4. In CS, the portal is rendering the contents of that other sector as seen through this portal, so if i want to get this content how can I do, or which function can i use to get it?  And Is the content which i get a picture or anything else?    

   Please help me!!!  Thank you!!
Logged
res
Develazyoper
CS Developer
Full Member
*****
Posts: 206


View Profile Email
« Reply #1 on: November 18, 2008, 03:26:46 pm »

Quote from:  link=topic=1772.msg7915#msg7915 date=1226978274
   2. In CS of "iPortal" interface, it provides a function of "virtual const csPlane3 &  GetObjectPlane ()=0 " , the description of it is "Get the object space plane of this portal", what does it mean of "object space plane "? Does it mean "object space"?

A portal is a polygon. The vertices of this polygon lie on a plane,  the portal plane. And yes, "object space" means that plane is in object space. (Portals have, like mesh objects, an object-to-world transform).

Quote from:  link=topic=1772.msg7915#msg7915 date=1226978274
   3. I want to get the vertex coordinate in world space of a portal which is in the game world, but i don't know which function to use in "iPortal" to get the portal's vertex coordinate?

The is no "the" vertex coordinate, there are more than one vertex in a portal. iPortal has GetVertex*() and GetVertices*() methods you can use to access the vertices of a portal.

Quote from:  link=topic=1772.msg7915#msg7915 date=1226978274
   4. In CS, the portal is rendering the contents of that other sector as seen through this portal, so if i want to get this content how can I do, or which function can i use to get it?  And Is the content which i get a picture or anything else?    

What do you mean? The contents of the portal are rendered to the screen.

If you want these contents on a texture or so you need to use some rendering to a texture.

-f.r.
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 9.219 seconds with 17 queries.