I have an application written in Python and I want to distribute it using a P3D file. In this application I am using a C++ library that comes as a PYD which should also be included in the P3D file. One problem is that the library needs to load an XML file which is also contained in the P3D file.
My first question now is, how can I make the library aware of Panda3Ds virtual file system to access the XML file inside the C++ library? I would like to avoid reading the data with Python and open() and passing it to the library.
The second problem I encountered concerns the custom shaders I am using. I load *.sha files which are including other Cg shaders and this doesn’t seem to be working. I checked the content of my P3D file and the shaders are definitely there, but the Cg compiler is as far as I understand it also not aware of the virtual file system and thus #include should not work. Is there a way around it besides manually doing the including?
Thanks in advance