How To Write ARC Code
(Beta Release)



This tutorial is an introduction to some advanced ERC code variants for Curious Labs Poser 4.

Software Requirements: The code described in this tutorial works in documents and libraries version 4.01 and Poser 4 for Mac and PC. The code is not documented for Poser 4, and is maybe not supported in later versions of Poser.

Format: html.

Version: This beta release does not include implemented code examples (Poser files) nor any example models.

Download Archive: "arc1to4beta.zip" contains 4 html pages covering chapters 1 to 4 of Part I. Part II of the tutorial is not available.

arc1to4beta.zip (3.1 MB)


Contents:

Chapter 1

Introduction

1. Basics
1.1. The ERC Relation and the Term "Function"
1.2. The ERC Function Notation
1.3. The ERC Function Graph
1.4. Mathematical Notations & Symbols
1.5. Anatomy of the Slave Channel
1.6. Compiling ERC Function Code

2. The "valueOp" Operators
2.1. The "valueOpPlus" Operator
2.2. The "valueOpMinus" Operator
2.3. The "valueOpTimes" Operator
2.4. The "valueOpDivideBy" Operator
2.5. The "valueOpDivideInto" Operator
2.6. The "valueOpDeltaAdd" Operator

3. Writing ERC Functions
3.1. Definitions
3.2. Simple ERC Functions
3.3. Compound ERC Functions
3.4. Range Definitions
3.5. Scope of Variables

Chapter 2

4. A Collection of Elementary Functions
4.1. The "Inverse" Function
4.2. The "Sign" Function
4.3. The "Absolute" Function
4.4. "Floor", "Ceiling", "Round"
4.5. The "Modulo" Function
4.6. The "Power" Functions
4.7. The "Exponential" Function
4.8. The "Logarithmic" Functions
4.9. The Exponentiation Function "a^t"

5. Debugging and Optimizing Function Code
5.1. Comply with the Rules
5.2. Testing the Code with a Spreadsheet
5.3. Runtime Errors
5.4. Optimizing Function Code

Chapter 3

6. The "Square root" Function
6.1. The Formula "a/b = sqrt(t)"
6.2. The Newton Iteration for "sqrt()"
6.3. Square Root for Small Radicands

7. Trigonometric Functions
7.1. Degree and Radian
7.2. The "sin()" Function
7.3. The "cos()" Function
7.4. Other Trigonometric Functions
7.5. Expanding the Range of Trigonometric Functions
7.5.1. Creating the Full Period
7.5.2. Repeating Periodic Functions
7.5.3. Negative Angles
7.6. A Note on Notations

Chapter 4

8. Parametric Functions
8.1. The Parametric Circle
8.2. Variations of the Parametric Circle

9. Polar Coordinates and Polar Functions
9.1. Implementing a Polar Function
9.2. Creating a Variable Origin
9.3. Polar Functions and Cartesian Functions
9.4. Variable Origin and "Point At"


* * * * * * * * * *


For comments and questions please contact arc@atlantis23.com.


* * * * * * * * * *




8/2005 VK