Hi jj,

thanks for the answer and sorry for the late reply.

Yes, 1) and 2) still happen for me with the latest incoming. You can try it 
for yourself, just go to https://visualgraphics.tv/apps/cornellbox/. and 
click on the "Render" button in the toolbar.

Any idea on 3) ?

I.e. creating a derived C++ class from JavaScript, passing it to emscripten 
and than when calling the class in C++ only the member functions of the 
base class are called, never of the derived class which I created in 
JavaScript.

Thanks

On Wednesday, June 1, 2016 at 6:33:29 PM UTC+7, jj wrote:
>
> Hi Markus,
>
> the problems 1) and 2) sound like Emscripten bugs. Does the issue 
> reproduce with latest Emscripten incoming branch?
>
> As for resizing the heap in shared memory, that will not be possible in 
> asm.js, but eventually in 64-bit browsers and WebAssembly it will be 
> possible to accommodate with virtual address space.
>
> To call to main thread is currently something you'll need to do manually. 
> We are in the process of designing how user code could do it via an 
> Emscripten API, but such a thing doesn't exist yet.
>
> And I forgot to mention one more question:
>
> 3) I have a VGTracerObject base C++ class which is for example inherited 
> by VGTracerMeshObject. This class is created and setup in JavaScript. When 
> I use it in C++ inheritance does not work for me. Always the base class 
> version of my functions are invoked, never the inherited functions. I use 
> Embind to set up the classes.
>
> My bindings look like this:
>
>     class_<VGTracerObject>("VGTracerObject")
>     .constructor<>()
>     .function("intersect", &VGTracerObject::intersect)
>     ;
>
>     class_<VGTracerMeshObject>("VGTracerMeshObject")
>     .constructor<uintptr_t, unsigned int>()
>     .function("intersect", &VGTracerMeshObject::intersect)
>     .function("setMaterial", &VGTracerMeshObject::setMaterial, 
> emscripten::allow_raw_pointers())
>     ;
>
> In C++ always intersect of VGTracerObject is invoked, never of 
> VGTracerMeshObject when the class is created in JavaScript and passed 
> onwards to the C++ based tracer.
>
> Thanks.
>
> -- 
> 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 [email protected] <javascript:>.
> For more options, visit https://groups.google.com/d/optout.
>

-- 
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 [email protected].
For more options, visit https://groups.google.com/d/optout.

Reply via email to