2008.02.28
I have no idea if you need to have Vizard installed for this to work but I have published my application as an EXE file.
Click here to download and play around with it.
Use the arrow keys to control the ball, press space once to drop the ball, press R to reset everything.
2008.02.27
Finally everything is almost completed for my presentation tomorrow. Actually I have really liked messing around in Vizard the past few days and it seems as though I’m getting the hang of it… all be it in a very clumsy way.
After many IF statements I have finallly managed to get the code to do what I want. Unable to use an ‘if position = x then play this’ line I used collisions and physics to make the ball drop onto the cubes and then use IF statements to change the properties of each cube from white to red and also play a sound.
It works pretty well and I have just about finished the reset function. Turns out I needed to create a function to position all the cubes and turn them white, call it during the script and then call it again when the ‘r’ button is pressed.
Coding was neither a weakness nor a strength but I’m learning, and learning the principles in one can help with aspects in another. So while I have been struggling with my PHP I think it may have inadvertently help me in Vizard.
Anyway, here are some screen shots of the (for lack of a better word) game.


2008.02.24
After not really concentrating on this project for the last month or so since the previous project deadline was set, I have not really progressed as far as I would have liked. There are many things I want to be able to do but I don’t have the time / desire / knowledge to execute them.
So far I have imported my model into Vizard I managed to control of the ball you use to move over the cubes. I followed the move tutorial on the WorldViz but had to change the ‘move’ instruction to ‘translate’ so that it adds a number to its position rather than move it to a specified point each time. So you have free roaming environment.
Next on the list of things to do is get some kind of collision detection going on between cube and ball, then once that has been achieved I can work out how to get the cube to change colour and play a sound.
A few options are available for navigation of this, what I want to do is have a fixed camera position and you control the ball from a bird’s eye position. All I have managed to do so far is create a ‘window’ that looks down on the environment. This is a small updating image located in the top right of the main window.
I wanted to have 3D sound so as you move through the environment playing sounds, they appear to go behind you. Problems with this include no adequate speakers in the 3D projector room and the facet that the control system with the ball would have to change so the camera is a fixed distance behind the ball and translates through the environment accordingly. The sound itself is not complicated as their is a specific tutorial addressing 3D sound.
One more problem I have just realised is that my model of many cubes is interpreted as a single model, so currently I am re-importing a single cube and placing instances of it around the environment.
I may end up just having one cube that does some stuff but not very well… which is not really what I want but lack of anything better may preclude the possibility of a good final presentation.