Crystal Space
Welcome, Guest. Please login or register.
November 24, 2014, 05:26:55 am

Login with username, password and session length
Search:     Advanced search
9018 Posts in 2046 Topics by 9099 Members
Latest Member: Basiahosa
* Home Help Search Login Register
+  Crystal Space
|-+  Crystal Space Development
| |-+  Support
| | |-+  what is the meaning of the tag "ww,wv" in portal?
« previous next »
Pages: [1] Print
Author Topic: what is the meaning of the tag "ww,wv" in portal?  (Read 1769 times)
Jr. Member
**
Posts: 81


View Profile Email
« on: January 08, 2008, 07:53:40 am »

   Hi, I am new in CS.
   I have a question about portal, please help me !
  In portal's tags there are two tags —— 'ww', 'wv' . What is the meaning of these two tags , when to use them and how to use them?   
Thank you very much for your help!
Logged
Vincent
Full Member
***
Posts: 191


View Profile WWW
« Reply #1 on: February 23, 2008, 06:46:42 pm »

Hello,

  <ww> and <wv> are used to define "space warping" portals. Few people know about those...
Since your question is interesting and deserves an answer, I asked on the IRC channel (#crystalspace @ chat.freenode.net)
Here's the discussion which I hope will help you using portals...
Hopefully Jorrit will reply in this thread, giving a definite answer smiley

<vknecht> anyone good with space warping portals ? smiley
<thebolt> no
<thebolt> thats an impossible combination Wink
<vknecht> perhaps you're not good, but know the basis ?
<Xordan> Nobody in the world undecided
<thebolt> vknecht: yea, i think i do at least
<vknecht> there are 2 vectors involved in warping ? "before" and "after" ?
<vknecht> http://rafb.net/p/whOtS540.html
<thebolt> yea, technically only one vector is needed, but two makes it a bit easier to specify "by hand"
<vknecht> I guess ww is the optional one ?
<thebolt> technically at least either is optional ,)
<vknecht> mmm, ok
<thebolt> but that before=after is a bit suspicious.. not 100% sure what its supposed to do
<vknecht> the x, y, and z given to ww and/or wv are absolute coords, the destination position in destination sector ?
<thebolt> no
<thebolt> say you have a point in sector A (which i think is the target sector)
<thebolt> call its coordinate P
<thebolt> then to get the position in another sector you offset it by before (ww), rotate by the matrix and then offset result with after (wv?)
<thebolt> so P' = wv + M*(P+ww)
<thebolt> or i think thats how its defined
<thebolt> internally its moved around so you only store one vector + matrix
<thebolt> (the expression above can be rewritten as P' = (wv + M*ww) + M*P ..)
<vknecht> I see in flarge that some portals don't have a matrix; what does it mean ? identity matrix or 0 is used ? (incidentally, it seems that those which have no matrix don't set wv)
<thebolt> identity
<thebolt> so no rotation
<thebolt> and if you ahve no rotation then there is no need to specify both ww and wv
<vknecht> ok
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 5.156 seconds with 15 queries.