Feuermelder
October 29th, 2007, 17:55
I have been playing around with RealityServer for a coupla days and came upon a few difficulties where I simply could not find any solutions for...
Especially when dynamically adding image files for textures I cannot find a solution why the realityserver.exe is always dying on me.
I e.g. tried to change a file property (based on reality server tutorial cube 4) with the help of the JavaScript API:
db["file2:tex"].image.file = "myFile.jpg"
And realityserver died...
Further by creating a new element and trying to add a file, it simply dies:
db.create("Image", "myImage");
db["myImage"].file = "myFile.jpg"
and realityserver died again...
I obviously must have missed something...
Can anybody, who knows more about the Server or the .mi Syntax help me, how I can change the texture with a dynamically added picture. Or why those statements written above kill the realityserver...
Help is very much appreciated...
Feuermelder
Especially when dynamically adding image files for textures I cannot find a solution why the realityserver.exe is always dying on me.
I e.g. tried to change a file property (based on reality server tutorial cube 4) with the help of the JavaScript API:
db["file2:tex"].image.file = "myFile.jpg"
And realityserver died...
Further by creating a new element and trying to add a file, it simply dies:
db.create("Image", "myImage");
db["myImage"].file = "myFile.jpg"
and realityserver died again...
I obviously must have missed something...
Can anybody, who knows more about the Server or the .mi Syntax help me, how I can change the texture with a dynamically added picture. Or why those statements written above kill the realityserver...
Help is very much appreciated...
Feuermelder