Difference between revisions of "Physics Cost test"

From Second Life Wiki
Jump to navigation Jump to search
(Created page with "Category:Test Plans Category:Mesh = Purpose = Test the Physics Cost of prims, meshes and linked sets. == Verify the mesh asset is valid == * '''Verify''' that a single…")
 
 
(8 intermediate revisions by the same user not shown)
Line 1: Line 1:
[[Category:Test Plans]]
[[Category:Test Plans]]
[[Category:Mesh]]
[[Category:Mesh]]
'''Test Plan Name:'''<br />
: Physics Cost test
'''Sources'''
: https://wiki.secondlife.com/wiki/Mesh/Mesh_physics


 
== Purpose ==
= Purpose =
Test the Physics Cost of prims, meshes and linked sets.
Test the Physics Cost of prims, meshes and linked sets.


== Verify the mesh asset is valid ==
== Setup ==
* '''Verify''' that a single convex hull is limited to 256 triangles.
* Open Advanced menu > Show Debug Settings and set ShowAdvancedBuilderOptions = TRUE
** <span style="background:#FFFF33">How do I attempt to upload a 257 triangle mesh?</span>
* When editing an object its Physics weight appears in the edit tools just above the tabs.
 
* '''Verify''' that a decomposition cannot have more than 256 hulls.
** <span style="background:#FFFF33">How do I attempt to create or upload a 267 hull decomposition?</span>


== Test Physics Representation for Rezzed Prims ==
== Tests ==
=== Boxes set to Convex Hull ===
* Create a linkset consisting of 10 boxes. Set one of them to have shape type Convex Hull (to trigger the new accounting)
* Arrange them and scale the linkset so that the overall linkset scale is 3m x 4m x 5m
* Verify the object is 2 prim equivalents.


* '''Verify''' newly uploaded Meshes rez with shape type "Convex Hull" as the Physics Shape Type.
=== Mesh model 1 ===
* '''Verify''' a mesh object uploaded without an explicit physics shape or decomposition cannot be changed to shape type Prim and will always be represented as a single convex hull bounding the mesh.
* Import/upload the duck model using a physics decomposition. Let's say the resulting decomposition has a physics cost of 13 prim equivalents (it did in my experiment)
* '''Verify''' no linkset or prim with a pure physics resource cost exceeding 32.0 may be set physical.  
* After setting the duck to "PRIM" so that it uses the decomposition, the cost is 13
** <span style="background:#FFFF33">How can we see the pure physics resource cost?</span>
* Scale the duck to 10m x 10m x 10m.  
* Verify its physics cost is still 13
* Set the duck Physical.  
* Verify its physics cost is 65 prim equivalents.

Latest revision as of 17:52, 13 July 2011

Test Plan Name:

Physics Cost test

Sources

https://wiki.secondlife.com/wiki/Mesh/Mesh_physics

Purpose

Test the Physics Cost of prims, meshes and linked sets.

Setup

  • Open Advanced menu > Show Debug Settings and set ShowAdvancedBuilderOptions = TRUE
  • When editing an object its Physics weight appears in the edit tools just above the tabs.

Tests

Boxes set to Convex Hull

  • Create a linkset consisting of 10 boxes. Set one of them to have shape type Convex Hull (to trigger the new accounting)
  • Arrange them and scale the linkset so that the overall linkset scale is 3m x 4m x 5m
  • Verify the object is 2 prim equivalents.

Mesh model 1

  • Import/upload the duck model using a physics decomposition. Let's say the resulting decomposition has a physics cost of 13 prim equivalents (it did in my experiment)
  • After setting the duck to "PRIM" so that it uses the decomposition, the cost is 13
  • Scale the duck to 10m x 10m x 10m.
  • Verify its physics cost is still 13
  • Set the duck Physical.
  • Verify its physics cost is 65 prim equivalents.