Compiling and Testing the Dummy Node

'dummynode' is an empty template node that you can use to build new nodes. To make sure that everything is working properly, let's trying compiling it and testing it out before we move on to writing actual nodes.

Compiling

open the terminal, go into your yg/modules directory, and type make dummynode.so. This should compile the node:
badzmaru@redsnapper:~> cd yg/modules badzmaru@redsnapper:~/yg/modules> make dummynode.so g++ -I. -I/usr/local/yg/modules -I/usr/local/yg/src -I/usr/local/CAVE/include -DOPENGL -I/usr/local/yg/bergen/include -I/usr/local/CAVERN/cavernG2_1.3/include/CAVERN -DCAVERN_USE_PTHREADS -DCAVERN_DO_NOT_USE_GLOBUS -DCAVERN_THREAD_SAFE -g -fno-operator-names -fPIC -c dummynode.cxx g++ -shared -ldl -lm --export-dynamic -o dummynode.so dummynode.o rm dummynode.o cp dummynode.so ../dso.linux
all the stuff that prints out after 'make dummynode.so' is the compiling commands in the Makefile. Note that the command you run is not 'Makefile', it's 'make'. Make is the actual compiler program, Makefile is just a configuration file that it reads.

Using the Node

Now create a new scene file, and add the dummynode to it:
#include "User0.scene" light(position(0 0 10 1)) dummynode()
When you run the scene, you won't see anything - the dummynode doesn't do anything yet. But, make sure that there aren't any big errors in the terminal, either.
(c) Ben Chang