Debugging YG Scenes

as with most types of computer programming, creating scenes in YG involves lots and lots of debugging. Fixing bugs is a little like being a detective and a little like conducting experiments. In any programming language, a program almost never works exactly right the first time, so being able to debug programs is really almost as important as being able to write them in the first place. In YG, a bug means that either (a) your scene doesn't work the way you thought it would, or (b), it doesn't work at all. Debugging requires a little bit of logic, a little luck, and most importantly, lots and lots of patience. This page lists some common pitfalls and problems, and a few helpful debugging techniques, but there's no way to compile all the possible problems you might encounter.

Debugging Tools & Techniques

The first step in debugging problems is often to look in the terminal window after you quit the scene. The YG interpreter prints out a variety of information in the terminal while it's running, and you'll often find helpful error messages there. To begin with, you should understand the normal messages that YG prints out, so you'll know what the printout should look like if everything's working correctly.

[1] 6312
snerd (bergen sound server) - Version 0.4.1evl - Compiled Jul 5 2003
Ygdrasil Version 0.1.10beta0 - compiled Jul 5 2003
PF ================================================
PF = OpenGL Performer 3.1.1 =
PF = DEMO EDITION =
PF ================================================
PF = For information about purchasing the full =
PF = OpenGL Performer product, visit =
PF = http://www.sgi.com/software/performer/ =
PF ================================================
CAVE Library Version 2.7.2_EVL (+Z-up coordinates) - Compiled Nov 30 2000
CAVE: Reading configuration file /usr/local/CAVE/etc/cave.config
CAVE: Reading configuration file ./.caverc
****************************************************************
CAVE Configuration (brief):
 Active walls ...................... 1
 simulator [-1x-1+0+0] "" left eye(s)
 Display mode ...................... mono
 Tracker type ...................... simulator
 Controller type .................... simulator
 Network ........................... none
 Distribution ...................... none
 App Distribution .................. none
 Scramnet .......................... n
 CAVELib License Number ............ 0
****************************************************************
CAVERNsoft G2 v1.3 (Mar 05 2002) [PTHREAD VERSION WITHOUT GLOBUS]
WARNING: bergenServer failed to connect to server (localhost)
Creating new root node
TOTAL TEXTURE SIZE: 0 bytes
PF Warning/Usage(2): pfReleaseDPool() NULL pfDataPool*.
[1] + Terminated /home/badzmaru/yg_dev/bin.linux/snerd
rm: No match.

YG will always print out something like this when it runs. It tells you what version of YG, Performer, and the CAVELib you're using, and the CAVE configuration options. For CAVE configuration, note the two lines that tell you what configuration files are being used. These files are used to configure projections, tracking, etc. in the CAVE, or set up the CAVE simulator on a desktop workstation. cave.config is the system-wide configuration file; .caverc is a file you can keep in your yg directory to apply your own custom CAVE settings. The printout of the CAVE configuration tells you how many projection walls are configured, what kind of tracking system is being used, whether you're using stereo or monoscopic display, etc. For more about configuring a CAVE, see the user's manual at http://www.vrco.com/CAVE_USER/index.html.

Problems with running the scene

Problems with loading objects, nodes, or parts of the scene

Problems with how objects are displayed

Problems with messages and interactivity

AltStyle によって変換されたページ (->オリジナル) /