2014-10-01 01:53:47 +00:00
|
|
|
..
|
2013-09-26 19:04:57 +00:00
|
|
|
Copyright 2013 Pixar
|
2014-10-01 01:53:47 +00:00
|
|
|
|
2013-09-26 19:04:57 +00:00
|
|
|
Licensed under the Apache License, Version 2.0 (the "Apache License")
|
|
|
|
with the following modification; you may not use this file except in
|
|
|
|
compliance with the Apache License and the following modification to it:
|
|
|
|
Section 6. Trademarks. is deleted and replaced with:
|
2014-10-01 01:53:47 +00:00
|
|
|
|
2013-09-26 19:04:57 +00:00
|
|
|
6. Trademarks. This License does not grant permission to use the trade
|
|
|
|
names, trademarks, service marks, or product names of the Licensor
|
|
|
|
and its affiliates, except as required to comply with Section 4(c) of
|
|
|
|
the License and to reproduce the content of the NOTICE file.
|
2014-10-01 01:53:47 +00:00
|
|
|
|
2013-09-26 19:04:57 +00:00
|
|
|
You may obtain a copy of the Apache License at
|
2014-10-01 01:53:47 +00:00
|
|
|
|
2013-09-26 19:04:57 +00:00
|
|
|
http://www.apache.org/licenses/LICENSE-2.0
|
2014-10-01 01:53:47 +00:00
|
|
|
|
2013-09-26 19:04:57 +00:00
|
|
|
Unless required by applicable law or agreed to in writing, software
|
|
|
|
distributed under the Apache License with the above modification is
|
|
|
|
distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
|
|
|
|
KIND, either express or implied. See the Apache License for the specific
|
|
|
|
language governing permissions and limitations under the Apache License.
|
2014-10-01 01:53:47 +00:00
|
|
|
|
2013-07-06 01:41:04 +00:00
|
|
|
|
2014-09-05 22:07:46 +00:00
|
|
|
glEvalLimit
|
|
|
|
-----------
|
2013-07-06 01:41:04 +00:00
|
|
|
|
|
|
|
.. contents::
|
|
|
|
:local:
|
|
|
|
:backlinks: none
|
|
|
|
|
|
|
|
SYNOPSIS
|
|
|
|
========
|
|
|
|
|
2014-10-01 01:53:47 +00:00
|
|
|
.. parsed-literal::
|
2013-07-06 01:41:04 +00:00
|
|
|
:class: codefhead
|
|
|
|
|
|
|
|
**limitEval** [**-f**] *objfile(s)*
|
|
|
|
|
|
|
|
DESCRIPTION
|
|
|
|
===========
|
|
|
|
|
2014-09-05 22:07:46 +00:00
|
|
|
``glEvalLimit`` is a stand-alone application that showcases the limit surface
|
2014-10-01 01:53:47 +00:00
|
|
|
Eval module. On the given shape, random samples are generated in local s,t space.
|
2013-07-06 01:41:04 +00:00
|
|
|
Vertex, varying and face-varying data is then computed on the surface limit and
|
2014-10-01 01:53:47 +00:00
|
|
|
displayed as colors.
|
|
|
|
|
|
|
|
In order to emphasize the dynamic nature of the EvalLimit API, where the
|
|
|
|
locations can be arbitrarily updated before each evaluation, the glEvalLimit
|
|
|
|
example treats each sample as a 'ST particle'.
|
|
|
|
|
|
|
|
ST Particles are a simplified parametric-space particle dynamics simulation: each
|
|
|
|
particle is assigned a location on the subdivision surface limit that is
|
|
|
|
composed of a unique ptex face index, with a local (s,t) parametric pair.
|
|
|
|
|
2015-06-21 05:31:03 +00:00
|
|
|
The system also generates an array of parametric velocities (ds, dt) for each
|
2014-10-01 01:53:47 +00:00
|
|
|
particle. An Update() function then applies the velocities to the locations and
|
|
|
|
moves the points along the parametric space.
|
|
|
|
|
|
|
|
Face boundaries are managed using a ptex adjacency table obtained from the
|
|
|
|
Far::TopologyRefiner. Every time a particle moves outside of the [0.0f, 1.0f]
|
|
|
|
parametric range, a 'warp' function moves it to the neighboring face, or
|
|
|
|
bounces it, if the edge happens to be a boundary.
|
|
|
|
|
|
|
|
Note: currently the adjacency code does not handle 'diagonal' crossings, nor
|
2015-06-21 05:31:03 +00:00
|
|
|
crossings between quad and non-quad faces.
|
2014-10-01 01:53:47 +00:00
|
|
|
|
|
|
|
Multiple controls are available to experiment with the algorithms.
|
2013-07-06 01:41:04 +00:00
|
|
|
|
2014-10-01 01:53:47 +00:00
|
|
|
.. image:: images/glevallimit.jpg
|
2013-07-06 01:41:04 +00:00
|
|
|
:width: 400px
|
|
|
|
:align: center
|
2014-10-01 01:53:47 +00:00
|
|
|
:target: images/glevallimit.jpg
|
2013-07-06 01:41:04 +00:00
|
|
|
|
|
|
|
OPTIONS
|
|
|
|
=======
|
|
|
|
|
|
|
|
**-f**
|
|
|
|
Launches the application in full-screen mode (if is supported by GLFW on the
|
|
|
|
OS)
|
|
|
|
|
2014-09-05 22:07:46 +00:00
|
|
|
.. include:: examples_see_also.rst
|