- azakai
1. Build bullet. Get .a files, which are llvm bitcode.
2. Build HelloWorld. Get .o file, which is llvm bitcode.
3. Link bullet dynamics and bullet collision with HelloWorld.
4. llvm-dis -show-annotations on that.
5. Run Emscripten on that.
- azakai
----- Original Message -----
> From: "madhav" <venu....@gmail.com>
> To: "emscripten-discuss" <emscripte...@googlegroups.com>
1. Run third_party/demangler.py on the source. It
will generate unmangled names for all the functions.
I think it needs . as a commandline parameter.
2. Run tools/namespacer.py on that. It will generate the
'_' thing, and fill it with some useful boilerplate,
that allows writing things like
Bullet._.btVector3
and so forth.
See comments in both of those files for more
details. Also the test_scriptaclass test (in
tests/runner.py) is a test for the process of
using both of these, so it's an example of their
use.
- azakai
----- Original Message -----
> From: "madhav" <venu....@gmail.com>
> To: "emscripten-discuss" <emscripte...@googlegroups.com>
I see that function in tests/bullet/bulletTest.ll. I
guess in the one you made it doesn't exist, the question
is where is it being referenced? Is it from compiled bullet,
or from some of the 'glue' code for the demo (if so, that
would need to be updated)?
If you want, put up all the relevant files and I'll
take a look.
>
> Also found "//Addition Demo stuff $" defined after the set of lines of
> namespaces Module['_'].
> Is that required?
That's just a placeholder comment, it's used in some
tests. You can ignore it or remove it.
- azakai
Thanks for figuring this out!
>
> There is small bug, few of the variables defined are using
> $variablename, but are while they were used it is _variablename,
> modifying this is needed.
Ah, this changed last month, that's why there is
a difference here in the older demo code.
> Finally, Bullet/WebGL works now.
Great!
>
> Few Queries:
> 1) How can we use WebWorkers for simulation using physics engine. Does
> emscripten(generated js) supporting workers?
Not yet. The main issue is that web workers do not
have shared state - they are like another process,
not another thread, in that sense. So we might want
to have a C++ API for multiprocessing, that is
implemented using web workers.
> 2) All demos in bulletphysics trunk can be transformed to JS version?
That should be possible, yes, just a matter of
doing the work I think.
- azakai
--
You received this message because you are subscribed to the Google Groups "emscripten-discuss" group.
To unsubscribe from this group and stop receiving emails from it, send an email to emscripten-disc...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.