Panda3D Manual: Advanced object tagsWhen you embed a Panda3D application in a web page, either with the <object> tag or with P3D_RunContent, you specify certain key pieces of information such as window size and p3d URL. You can specify more exotic things too:
In addition to the above list, you may specify any of numerous splash image URL's, or any of the plugin notify callbacks; these are described on the following pages. Furthermore, you can specify tokens that have particular meaning to your own application. Any additional tokens you specify are passed to the application and can be queried by Python code via base.appRunner.getToken('keyword'), so any application is free to define its own custom tokens. To use any of the above, specify the token and the value as a pair in the embedding HTML syntax. In the Internet Explorer syntax, this means you use the <param> element, e.g.: <object width="640" height="480" In the non-Internet Explorer syntax, you can use the <param> element as above, or you can insert the token directly within the <object> tag, e.g.: <object width="640" height="480" When using RunPanda3D, you just add the token and value as a pair of strings to the P3D_RunContent() call: P3D_RunContent('data', 'myapp.p3d', 'id', 'myapp_id', © Carnegie Mellon University 2010 |