------------------------------
Message: 14
Date: Tue, 22 Nov 2005 14:58:37 -0500
From: "Frank Klassner" <email@hidden>
Subject: Anchoring Sprites in Cubic VRs
To: email@hidden
Message-ID: <email@hidden>
Content-Type: text/plain; charset=us-ascii
I'm in the middle of designing a game with QTVR for a summer camp.
I'm using cubic QTVR nodes taken of various locations in the
camp, and the game involves doing a scavanger-hunt through the
virtual environment (about 100 nodes -- plenty of room to encourage
exploration).
One of the tricks I wanted to use in the game was to have the items
to be found randomly appear at random nodes in a defined cluster of
nodes (E.G. a squirrel could appear in a node near the inlet to a
lake, but also at any of the nodes immediately next to that node).
After I read Matthew Peterson's "Interactive QuickTime" book, I felt
that I could use his VRSprite behavior to have the items appear as
anchored sprites (they move with the background VR as it rotates,
and distort as the VR "wraps off" the side of the screen).
Unfortunately, it appears that the code he wrote on the CD only
works for panorama VRs and not cubic VRs. When I try using his
code in a cubic, the sprite is a lot flatter, and only slides back
and forth a little, and never moves off the screen. It also
doesn't move up and down as I move the cubic VR up and down.
SO, I now have 3 questions/possibilities to ask of this esteemed list:
1) Has Mr. Peterson published improved code for the cubic situation?
2) Has anyone else created a solution to this problem of properly
projecting sprites (not object VRs) into a cubic? Keep in
mind that I'd like to be able to use/import this solution in
Live Stage 4.1.4
3) Am I stuck with just creating copies of the nodes with and without
the scavanger-hunt items "pasted into" them, and adding scripts
to hotsposts that randomly determine whether when I walk into
the next location I will enter the version with the item? Each
of my nodes is about 3MB. (Yes, this is only being distrbuted
on a CD)
Thanks!
--Frank Klassner
--------------------------------
Associate Professor
Department of Computing Sciences
Villanova University
800 Lancaster Avenue
Villanova, PA 19085