I recently checked in some improvements to the libRocket code.
For one, I noticed that text was a bit fuzzy around the edges, so I checked in a fix to make that crisper (by disabling linear texture filtering, which I don’t think is supposed to be on). If people prefer linear filtering, let me know, and I’ll make it configurable using a Config.prc variable.
There was also no way for people to access Panda’s compiled-in default font; Panda now loads this by default into libRocket, so you can use the font face “Perspective Sans” out of the box without having to load a custom .otf or .ttf file. It’s a fine general-purpose font, and this makes it easier for people to get started.
I’m not sure if I fully understand how to properly implement LibRocket into use. I’ve checked around its own tutorials and the code snippets I could find from here, but I’m still left a bit perplexed.
Then it disappears whenever the document is reloaded, like when it internally changes menus. So what actually is the right way to get events from LibRocket’s RML to my P3D app?
If you’re modifying the dom and rewriting the element, then it’s perfectly normal. Fairly certain the same thing would happen with javascript in an HTML document. Even if they have the same IDs, the elements will be new, so you’d still have to link to them.
Just in case anybodies been wondering - it seems librocket has a few new maintainers, and it looks like some of the pull requests sitting in github will hopefully start to be merged : github.com/libRocket/libRocket/issues/130
That’s odd. That would seem to suggest that the Panda build you installed was compiled with a different type of Python build than the libRocket bindings.
There’s a chance this could be something funky with my system. I was running a version of Panda I’d compiled from source for a while to test out Collada support, and my intent was to add libRocket to that, so I downloaded a copy of libRocket, compiled and installed that too. However when I came to run makepanda again, it didn’t find librocket, so I decided to go back to the debs which I’d gathered included it. Unfortunately with both makepanda and librocket not having uninstallers, I had to go through and rm them by hand. Pretty sure I got everything, and they both went into /usr/local prefix, whereas the debs seem to just go into /usr. Anyway, just thought I’d explain what I’ve done recently in case that could’ve messed something up.
I am having a similar issue. I have the last dev version of panda3d installed from the deb package, Ubuntu Trusty. I ran an example code and python complained that it could not find libboost_python-py27a.so
I tried to solve by installing the libboost-python package and now it complains that
I am not sure what went wrong. Interestingly, before the current version of panda3d, I installed the 1.8.1 version from sources, then removed it via rm, and installed this latest version. I never installed librocket though.
the error appears because the boost was compiled with a python interpreter that set Py_UNICODE_SIZE to 2,
while evidently the version installed in my computer (python2.7.6) has the above macro set to 4. I installed Ubuntu 14.04 less than a month ago, so this must be some recent settings.
I am wondering if there is a way to get around this problem.