View Full Version : Examples?
June 16th, 2011, 22:17
I downloaded the dev edition of 3.1.1. The documentation seems very much reference only whereas in 3.0 there were a lot of examples and tutorials. Would it be possible to get a step-by-step tutorial for adding a trivial state handler/event handler/authorizer/whatever in 3.1.1? I'm particularly hoping for one on Windows, though I'm sure other people would like to see on other platforms.
This absence makes the product's learning curve fairly steep.
RealityServer 3.1.1 also provides with code examples: please start RS (realityserver_ws script) as it comes and access this URL afterwards:
within a browser.
You will see the attached UI, that has links to two example applications for JS and Flash and the RealityServer Code Playground. The playground provides a lot of examples for different use cases as well as the possibility to run (and debug) modifications in the same application.
Hope that helps.
June 17th, 2011, 16:54
Thanks for your reply. I have looked at these and they shed some light on building applications, but I'm looking for clarification on how to add custom server side authorization and state handlers and event handlers. The documentation around these is very reference-oriented, and the sample applications don't cover any of these (unless I'm missing something).
Any assistance would be greatly appreciated.
June 17th, 2011, 17:51
Hmm, perhaps this is an issue with the docs?
I used the text search functionality within the docs and got to several pages, sections and examples not linked to from documentation landing pages, e.g. http://127.0.0.1:8080/doc/index.html#/server_apis/api/neurayapi/reference/r_mi_neuray_example_user_defined_classes.html
Are these still valid for 3.1.1? Are they not linked to for some reason?
June 23rd, 2011, 12:59
You may find some examples on how to write custom c++ command and event handler plugins in the src directory of your realityserver installation.
The documentation page you mentioned in your last post can be accessed using the Document Center via Server APIs --> neuray API.
However you should have a close look at the Web Services API and neuray Services API sections in conjunction with the code examples mentioned above.
Powered by vBulletin® Version 4.2.0 Copyright © 2013 vBulletin Solutions, Inc. All rights reserved.