Forum Replies Created
-
AuthorPosts
-
This is quite interresting.
I’d like to dive deeper into this but have no free time till mid october..Could you post some code with the sdl2 mouse? I would be very interested to see the difference!
I can “feel” it only when moving a mouse inside-outise of a window. It’s not a major issue to me but it would be great if it could be solved.
It would take someone that masters sdl2..Mark has taken a “Monkey2 holiday” of (at least) one month because he just got a new full time job. But he is answering some Qs on discord, and there is a shader section (with almost no discussion).
Some monkey2 users have already done some nice shaders stuff, it’s on github. If I have some time tomorrow, I’ll try to find the links to the repos.
But Mark can tell you if substractive blendmode is doable within mojo without too much hassle.
Have you seen canvas.monkey2 file? That’s where blendmode is. Monkey2 source files are easy to read and modify. If you add substractive blendmode (I’m supposing you know opengl here) you can then request a pull and it’s good for everybody!blendmode is related to mojo/opengl’s drawops. I don’t think you can just extend it.
you can reverse the alpha premult unless you have a zeroed color. You can store an original too.
It’s only premultiplied with alpha.
There is a link in the post.Monkey2 works with premultiplied alpha for 2d so I suppose it’s the same for 3d.
you can get latest mx2 on github
latest commit has been made yesterdayPathetic
On this topic I give an example of AffineMat3 extension using all of the matrix’s values.
Ads are working on my acer jade.
yes onupdate was user created and could have another name.
Drawings are always made in Onrender because it’s the only place where you receive the canvas.
Yes it’s automatic.
The layout type is defined using Layout="layouttype" in your Window constructor.
This topic discuss about virtual resolution and gives a nice example. http://monkeycoder.co.nz/forums/topic/layout-questions/
It doesn’t change anything if App.RequestRender() is at the beggining or at the end of OnRender(). It just means that OnRender must be called the next time.
But you can set SwapInterval=0 so there is no Vsync, it will redraw as fast as it can.To control the framerate (for screen with a vsync different from 60fps e.g.) you can use a timer and SwapInterval=0, calling App.RequestRender() thru the timer.
See spacechimps banana for an example. It uses a lot of OnBlah stuff but is readable.
onTouchEvent is definitely giving nothing, how can I get those events and hide the nav bar once it’s there? sdl2 must have this implemented, i’m missing something!?
EDIT: had to use SYSTEM_UI_FLAG_IMMERSIVE_STICKY !
I working fine now! Except when I call the keyboard, then the navbar will randomly disapear, or not. So I still need events or some jni magic to call my hide_ui() java method from mx2?
-
AuthorPosts