Robert

Did the aspect ratio change? The Scaler class has a mouse-coord conversion function to help you out.

posted in Kha read more
Robert

That's not true: https://github.com/Kode/Kha/blob/master/Backends/Kore/kha/Image.hx#L296
But you have to make sure the image is readable. By default Kha holds image data only in GPU mem (as you have noticed that's still a todo for the HTML5 target) - project.addAssets('Assets/someimage.png', {readable: true}) does the job for images coming from files.

posted in Kha read more
Robert

Fix in progress (turns out it's a bit complicated)...

posted in Kha read more
Robert

Ah, now I see what you mean. Why did nobody tell me?

posted in Kha read more
Robert

What exactly does that mean you can't see anything you're writing? The text editor is not working? See any errors in the browser's debugger?

posted in Kha read more
Robert

I don't know - please upload a complete sample (ideally to kodegarden.org) and I'll have a look.

posted in Kha read more
Robert

Here it is: https://github.com/Kha-Samples/SubProjects
The trick used here to replicate loading assets per room is to prepend some string to the asset names in the khafile and then use that in loadEverything's filter function argument.

posted in Kha read more
Robert

Didn't get to it this week, but this is on my todo list for next week: https://github.com/Kode/Kha/issues/712

posted in Kha read more
Robert

Fixed some things in the matrix. There has been full audio support for iOS from the beginning.

posted in Kha read more
Robert

Oho, that's unexpected, didn't think project.kha files would still be around. khafiles still miss proper subproject functionality - I was waiting for async/await support in node.js so I can make that non-ugly looking. But that's here now so I can add that. Apart from that the most complicated aspect would be the room functionality in project.kha - do you use that?

posted in Kha read more
Robert

Wow, it's awesome!

posted in Kha read more
Robert

Ya, Kore supports that, just have to wire it up to Kha. Please create a GitHub issue.

posted in Kha read more
Robert

main.c shouldn't be created from Main.hx, that usually doesn't make a lot of sense. main.c should instead call kore() - the actual C/C++ main function isi always in the backend (in System.cpp for most backends).

posted in Kha read more
Robert

Kha will add none of that, it is fully focused on being a low level platform abstraction layer. I see no value in forcing/standardizing a single approach for any of it, I'd much rather see an ecosystem of libraries implementing different approaches. Currently there's a nice textfield lib (https://github.com/tienery/KhaTextBox), two gui libs (haxeui and zui), a big ass 3D engine (Armory3D) plus another one on my todo list (heaps).

posted in Kha read more
Robert

Ah, was a bug, it's fixed.

posted in Kha read more
Robert

Hey, no worries, that's the life of every graphics programmer.

posted in Kha read more
Robert

Extension downloads were not working in open source vscode builds for me last time I tried, that's why I deactivated the ui for that - but you can use them by manually putting them in the extension dir.

posted in Kha read more
Robert

Is there anything but the extensions ui which is not working in Kode for you? Because that would likely be an accident.

posted in Kha read more
Robert

Oh, that's nice. There was a video stream where I added the Pi target, it's on youtube: https://www.youtube.com/watch?v=U6pKy0IWN6c and https://www.youtube.com/watch?v=MkCsyq5gycU
3DS should implement the Graphics3 interface. I'll help with any problems you run into.

posted in Kha read more
Robert

That already happens automatically, all shaders and assets are always listed but actual export is skipped depending on the change date. Maybe the date check fails for some reason. What is your actual build time? What OS are you on?

posted in Kha read more