Menu
  • HOME
  • TAGS

clang++ Error when compiling the Minko engine SDK for HTML 5

html5,compilation,minko

This is a known problem with Emscripten 1.30, it should be resolved in future versions. For the moment, stick to Emscripten 1.29.

minko / lua issue : premake5.lua:3: attempt to index global 'minko' (a nil value)

linux,lua,solution,premake,minko

PROJECT_NAME = path.getname(os.getcwd()) minko.project.application("minko-tutorial-" .. PROJECT_NAME) files { "src/**.cpp", "src/**.hpp", "asset/**" } includedirs { "src" } -- plugins minko.plugin.enable("sdl") minko.plugin.enable("assimp") minko.plugin.enable("jpeg") minko.plugin.enable("bullet") minko.plugin.enable("png") --html overlay minko.plugin.enable("html-overlay") Assuming that's indeed your project premake5.lua file (please us the code tags next time), you should have include "script" at the beginning of the...

is it possible to trigger c++ code, intiated by html events in minko?

html,c++,overlay,minko

Yes. HTML DOM events are wrapped and made available as C++ signals. So you can do something like: dom->getElementById("my-element-id")->onclick()->connect( [](dom::AbstractDOMMouseEvent::Ptr event) { // do something... } ); It's actually done in the same example: https://github.com/aerys/minko/blob/master/example/html-overlay/src/Main.cpp#L110 You can also send and receive "messages" both ways using the AbstractDOM::sendMessage() method in C++...

How to load .dae object with texture, and material

minko

This won't work and what about .mtl file? How to attach it to my object? Your question is about loading a Collada (*.dae) file. Collada files don't have *.mtl files, *.obj files do. Still, it works the same for any dependency of any file: they are automatically loaded if...