hmi.environment
Class ElckerlycDemo
java.lang.Object
hmi.environment.GraphicsDemoEnvironment
hmi.environment.PhysicalDemoEnvironment
hmi.environment.ElckerlycDemoEnvironment
hmi.environment.ElckerlycDemo
- All Implemented Interfaces:
- GLRenderObject, KeyListener, EventListener
public class ElckerlycDemo
- extends ElckerlycDemoEnvironment
Elckerlyc demo.
- Author:
- Dennis Reidsma, Herwin van Welbergen
| Fields inherited from class hmi.environment.ElckerlycDemoEnvironment |
animateavatars, playvoices, theAnimationPlayerManager, theVirtualWorld, vhUIs, vhUIToggleButtons, virtualHumanList, vjCameraTarget, vjCurrentMixedDynamicsRoot, vjMixedDynamicsAnimationRoot, vjNextMixedDynamicsRoot, vjPredictorMixedDynamicsRoot, vjPreviousMixedDynamicsRoot, vjXuukTarget, xuukReader, xuukTargetMover |
| Fields inherited from class hmi.environment.PhysicalDemoEnvironment |
collision, collisionEnabled, g, glueJointGroup, groundGeom, phsphere, phworld, physicsClock, physicsLoopFrequency, physicsRunners, prevTime, runphysics, space, sphereAnimationJoint, sphereRenderJoint, timeStep |
| Fields inherited from class hmi.environment.GraphicsDemoEnvironment |
background, color_buf_tex, debugJOGL, depth_buf_tex, dx, dy, dz, enableFSAA, fovyFar, fovyNear, frameTitle, FSAA_samples, fullscreen, glCanvas, glNavControl, glObjectControl, hiddenVisualisations, jframe, laptop, light0, light1, light2, light3, light4, lightPos0, lightPos1, lightPos2, lightPos3, lightPos4, numStencilBits, render, renderClock, renderDebugVisualisations, renderer, renderRunners, shutdownSync, toolBar, useVsync, vglSceneRenderRoot, visualisations, visualisationsUninitialized, vjNavigationNode, vjSceneRenderRoot, vjWorldAnimationRoot, vjWorldRenderRoot, wowTransformMatrix, wowvx, wowvx_header_data, wowvx_header_tex |
|
Method Summary |
protected void |
initGraphicScene()
Add the graphical representation for the phsphere to the graphical scene |
static void |
main(String[] arg)
Start the ElckerlycDemoEnvironment prog |
void |
physicsCopy()
After running physics, don't forget to copy info of cokecan to rendering joints |
protected void |
physicsRun(double currentTime)
|
void |
reset()
Reset: set clocks to 0 (also physics, because physicsclock also drives the animation!). |
| Methods inherited from class hmi.environment.ElckerlycDemoEnvironment |
addPhysicalHumanDebugVisualisations, addVJointDebugVisualisations, close, createVirtualHumanUI, disposeFrame, getVirtualWorld, init, initMixedAnimation, initQuickSettings, initUI, initVoiceSystem, initWorldPhysics, loadVirtualHuman, loadVirtualHuman, physicsTime, playAudio, playVoices, processAnimationResultForRender, setXuukReader, unloadVirtualHuman |
| Methods inherited from class hmi.environment.PhysicalDemoEnvironment |
addPhysicsRunner, glueFeetToFloor, initGraphicSphere, initGroundPhysics, initSpherePhysics, initThrowBallButton, initUI, physicsTick, prepareClose, prepareDispose, prepareReset, setCollisionEnabled, setPhysicsEnabled, startClocks, toggleCollision, togglePhysics |
| Methods inherited from class hmi.environment.GraphicsDemoEnvironment |
addDebugVisualisation, addRenderRunner, addVisualisation, convertBufferToWowVX, exit, getFrame, getGeneralImageIcon, getImageIcon, getWorldAnimationRoot, getWorldRenderRoot, glInit, glPreInit, glPreRender, glRender, hasVisualisation, initGraphics, initRender, initToolbar, initVisualGround, initVJointStructure, isVisualisationVisible, keyPressed, keyReleased, keyTyped, navigate, play, removeDebugVisualisation, removeVisualisation, renderTime, setFullScreen, setupMediaButton, setupMediaButton, setupUI, setupVJointStructure, setVisualisationVisible, startAll, toggleDebugViz |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
resource
private static String resource
specfile
private static String specfile
boxNode
private VGLNode boxNode
boxNode2
private VGLNode boxNode2
boxAni
private VJoint boxAni
boxAni2
private VJoint boxAni2
sphereNode
private VGLNode sphereNode
sphereAni
private VJoint sphereAni
boxDiffuse
private static final float[] boxDiffuse
boxSpecular
private static final float[] boxSpecular
boxAmbient
private static final float[] boxAmbient
boxEmission
private static final float[] boxEmission
sphereDiffuse
private static final float[] sphereDiffuse
sphereSpecular
private static final float[] sphereSpecular
sphereAmbient
private static final float[] sphereAmbient
sphereEmission
private static final float[] sphereEmission
box2Diffuse
private static final float[] box2Diffuse
box2Specular
private static final float[] box2Specular
box2Ambient
private static final float[] box2Ambient
box2Emission
private static final float[] box2Emission
ElckerlycDemo
public ElckerlycDemo(WorldObjectManager wo)
main
public static void main(String[] arg)
- Start the ElckerlycDemoEnvironment prog
initGraphicScene
protected void initGraphicScene()
- Description copied from class:
PhysicalDemoEnvironment
- Add the graphical representation for the phsphere to the graphical scene
- Overrides:
initGraphicScene in class ElckerlycDemoEnvironment
reset
public void reset()
- Description copied from class:
ElckerlycDemoEnvironment
- Reset: set clocks to 0 (also physics, because physicsclock also drives the animation!). Also,
call super.reset, and reset animationplayermanager Should not be called directly, use
prepareReset to set up a physicsRunner for that.
- Overrides:
reset in class ElckerlycDemoEnvironment
physicsRun
protected void physicsRun(double currentTime)
- Overrides:
physicsRun in class PhysicalDemoEnvironment
physicsCopy
public void physicsCopy()
- After running physics, don't forget to copy info of cokecan to rendering joints
- Overrides:
physicsCopy in class PhysicalDemoEnvironment