Crystal Space
Welcome, Guest. Please login or register.
October 25, 2014, 02:46:38 am

Login with username, password and session length
Search:     Advanced search
9011 Posts in 2044 Topics by 8818 Members
Latest Member: Bobcooper
* Home Help Search Login Register
+  Crystal Space
|-+  Crystal Space Development
| |-+  Support
| | |-+  some question about portal in xml
« previous next »
Pages: [1] Print
Author Topic: some question about portal in xml  (Read 1739 times)
Jr. Member
**
Posts: 81


View Profile Email
« on: November 13, 2007, 09:06:09 am »

    I am new in CS.
    I used blender to build two sectors and portals and I used the portals to connect the two sectors. After I exported the model to XML file, I found some tags in the XML that I have never seen before, the code is followed:

<library>
<meshfact name='genCube.004'>
<plugin>genmeshfact</plugin>
<zuse/>
    <params>
     <material>misc_o023.jpg</material>
     <v x="1.95" y="-4.95" z="2.525" u="0.000000" v="-1.000000" nx="-2.38419e-007" ny="1" nz="4.59341e-014"/>
     <v x="1.95" y="-4.95" z="5" u="0.000000" v="0.000000" nx="-2.38419e-007" ny="1" nz="4.59341e-014"/>
     <v x="-0.0499992" y="-4.95" z="5" u="1.000000" v="0.000000" nx="-2.38419e-007" ny="1" nz="4.59341e-014"/>
     <v x="-0.0499997" y="-4.95" z="2.525" u="1.000000" v="-1.000000" nx="-2.38419e-007" ny="1" nz="4.59341e-014"/>
     <t v1="3" v2="2" v3="1"/>   
     <t v1="3" v2="1" v3="0"/>
……
    </params>
  </meshfact>
</library>

  What is the meaning of "u", "v", "nx", "ny", "nz" in the XML?
       Is any document that explain the particular meaning of tags in XML (except "Breakdown of an XML World File" which is provided in the site)?
Logged
jorrit
Administrator
Hero Member
*****
Posts: 1706


View Profile
« Reply #1 on: November 13, 2007, 09:15:30 am »

This has nothing to do with portals. The object that you are looking at in the xml is a genmesh with name genCube.004. The parameters u,v are for texture mapping. nx, ny, nz are normals.

Greetings,
Logged
Jr. Member
**
Posts: 81


View Profile Email
« Reply #2 on: November 13, 2007, 12:15:15 pm »

This has nothing to do with portals. The object that you are looking at in the xml is a genmesh with name genCube.004. The parameters u,v are for texture mapping. nx, ny, nz are normals.

Greetings,

    nx, ny, nz are normals. But what are the meaning of nx, ny, nz?  they are used for what purpose?
Logged
jorrit
Administrator
Hero Member
*****
Posts: 1706


View Profile
« Reply #3 on: November 13, 2007, 12:37:11 pm »

They represent the normal pointing away from the surface at that specific point. They are used for lighting.

Greetings,
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 4.259 seconds with 14 queries.