Sublime syntax and completation. A bat file to compile and run without the need of XVR eclipse IDE for Windows.
Paste the files sublime/XVR.sublime-text and, sublime/XVR.sublime-completation on the following directory C:\Users<your user name>\AppData\Roaming\Sublime Text 3\Packages\User. The results will look like this:
You need to install the compiler and the XVRGlut, from here, in order to compile and run the *.s3d files.
On the compiler/make.bat and compiler/run.bat files check if the variables S3DC, S3D_DIR and, XVRGLUT are pointing:
- S3DC -> s3dc.exe
- S3D_DIR -> VRMedia/Include
- XVRGLUT -> XVRGlut.exe
If the installation was done by default no need to change anything.
copy make.bat and, run.bat into your XVR project directory
- Open make.bat and go to the line where you see:
set MAIN_S3D="<your_file.s3d>"
-
Change the <your_file.s3d> with your main *.s3d project file.
-
We are done with make.bat file
-
Open run.bat and go to the line where you see:
%XVRGLUT% <your_file.s3d.bin>
- Change <your_file.s3d.bin> with your main bin file, which has the same name as the main *.s3d file + .bin
- Open cmd and type:
cd path/to/your/xvr/project/directory
- to compile, type:
make
- to compile and then run, type:
make -r
- Open cmd and type:
cd path/to/your/xvr/project/directory
- to run, type:
run