"No one can be told what GeeXLab is, you have to see it for yourself!"

"Stop Playing Games and Start Making Them! With GeeXLab, your are on your way!"


Quick Links
What is GeeXLab
Download GeeXLab
GeeXLab Requirements
Online Help
Articles and Tutorials
Samples Screenshots
Videos

GeeXLab Changelog

XML Ref. Guide
Scripting Ref. Guide
Code Samples

Purchase GeeXLab
GeeXLab SDK

Shader Library

Follow GeeXLab's News
GeeXLab news, articles, tutorials and demos @ Geeks3D.com
GeeXLab @ Twitter GeeXLab RSS Feed

Subscribe to GeeXLab news by email

[ Back to Geeks3D.com ]

GeeXLab

GeeXLab

Laboratory for Real Time 3D Programming (prototyping and demos)
OpenGL, Lua, Python, GLSL,
PhysX and more...

Reference Guide
Host-API Lua / Python



Back to Homepage
Back to Developer's Guide Index

HYP_MotionPath Library


Description
Motion Path library

Number of functions: 11

HYP_MotionPath.Create

Description
Creates a motion path object.

Languages: Lua - Python

Parameters
  • numSegments [INTEGER]: Number of motion path segments (default = 1000).

    Return Values
  • mpId [INTEGER]: motion path id

    Code sample :

    mpId = HYP_MotionPath.Create(1000)


    HYP_MotionPath.Destroy

    Description
    Destroys a motion path object.

    Languages: Lua - Python

    Parameters
  • mpId [INTEGER]: motion path id

    Code sample :

    HYP_MotionPath.Destroy(mpId)


    HYP_MotionPath.AddKeyframe

    Description
    Adds a keyframe to a motion path object.

    Languages: Lua - Python

    Parameters
  • mpId [INTEGER]: motion path id
  • x, y, z [REAL]: 3D position of the key.

    Return Values
  • index [INTEGER]: keyframe index (zero-based)

    Code sample :

    index = HYP_MotionPath.AddKeyframe(mpId, x, y, z)


    HYP_MotionPath.SetKeyframe

    Description
    Sets the position of a keyframe.

    Languages: Lua - Python

    Parameters
  • mpId [INTEGER]: motion path id
  • index [INTEGER]: keyframe index (zero-based)
  • x, y, z [REAL]: 3D position of the keyframe.

    Code sample :

    HYP_MotionPath.SetKeyframe(mpId, index, x, y, z)


    HYP_MotionPath.GetKeyframe

    Description
    Gets the position of a keyframe.

    Languages: Lua - Python

    Parameters
  • mpId [INTEGER]: motion path id
  • index [INTEGER]: keyframe index (zero-based)

    Return Values
  • x, y, z [REAL]: 3D position of the keyframe.

    Code sample :

    x, y, z = HYP_MotionPath.GetKeyframe(mpId, index)


    HYP_MotionPath.SetKeyframeTangent

    Description
    Sets the tangent of a keyframe.

    Languages: Lua - Python

    Parameters
  • mpId [INTEGER]: motion path id
  • index [INTEGER]: keyframe index (zero-based)
  • x, y, z [REAL]: tangent vector.

    Code sample :

    HYP_MotionPath.SetKeyframeTangent(mpId, index, x, y, z)


    HYP_MotionPath.GetKeyframeTangent

    Description
    Gets the tangent of a keyframe.

    Languages: Lua - Python

    Parameters
  • mpId [INTEGER]: motion path id
  • index [INTEGER]: keyframe index (zero-based)

    Return Values
  • x, y, z [REAL]: tangent of the keyframe.

    Code sample :

    x, y, z = HYP_MotionPath.GetKeyframeTangent(mpId, index)


    HYP_MotionPath.RemoveKeyframe

    Description
    Removes a keyframe.

    Languages: Lua - Python

    Parameters
  • mpId [INTEGER]: motion path id
  • index [INTEGER]: keyframe index (zero-based)

    Code sample :

    HYP_MotionPath.RemoveKeyframe(mpId, index)


    HYP_MotionPath.ComputeCurve

    Description
    Computes (or evaluates) a motion path. Must be call after functions such as AddKeyframe(), SetKeyframeTangent() or RemoveKeyframe().

    Languages: Lua - Python

    Parameters
  • mpId [INTEGER]: motion path id

    Code sample :

    HYP_MotionPath.ComputeCurve(mpId)


    HYP_MotionPath.Render

    Description
    Render the motion path curve. Useful in post direct rendering scripts.

    Languages: Lua - Python

    Parameters
  • mpId [INTEGER]: motion path id
  • r, g, b [REAL]: motion path color
  • renderTangents [INTEGER]: enables (1) or disables (0) tangents rendering
  • tr, tg, tb [REAL]: tangents color

    Code sample :

    HYP_MotionPath.Render(mpId, r, g, b, renderTangents, tr, tg, tb)


    HYP_MotionPath.GetValueByTime

    Description
    Gets the 3D position of a point on the motion-path for a given normalized time (ranging between 0.0 and 1.0).

    Languages: Lua - Python

    Parameters
  • mpId [INTEGER]: Motion Path numeric identifier
  • time [REAL]: time value. 0.0 is the beginning of the motion-path and 1.0 is the end.

    Return Values
  • x, y, z [REAL]: 3D coordinates of the position

    Code sample :

    x, y, z = HYP_MotionPath.GetValueByTime(mpId, time)




  • Random Projects

    Phong Lighting Multiple Lights
    Phong Lighting Multiple Lights

    Chromatic Aberration
    Chromatic Aberration

    Posterization Effect
    Posterization Effect


    Random Code Samples

    Skybox
    Skybox

    Simple Bump Mapping
    Simple Bump Mapping

    Shadow Volume
    Shadow Volume



    (C)2009-2010 Geeks3D.com