abakobo

Forum Replies Created

Viewing 15 posts - 46 through 60 (of 455 total)
  • Author
    Posts
  • in reply to: When will eventproblem be fixed #15377

    abakobo
    Participant

    This is quite interresting.
    I’d like to dive deeper into this but have no free time till mid october..

    in reply to: When will eventproblem be fixed #15355

    abakobo
    Participant

    Could you post some code with the sdl2 mouse? I would be very interested to see the difference!

    in reply to: When will eventproblem be fixed #15350

    abakobo
    Participant

    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..

    in reply to: Extending blendmodes #15346

    abakobo
    Participant

    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!

    in reply to: Extending blendmodes #15341

    abakobo
    Participant

    blendmode is related to mojo/opengl’s drawops. I don’t think you can just extend it.

    in reply to: Monkey2 & 3d modellers #15340

    abakobo
    Participant

    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.

    Premultiplied alpha

    in reply to: Monkey2 & 3d modellers #15336

    abakobo
    Participant

    Monkey2 works with premultiplied alpha for 2d so I suppose it’s the same for 3d.

    Mask shader alpha/blending issue

    in reply to: TumbleWeed #15287

    abakobo
    Participant

    you can get latest mx2 on github
    latest commit has been made yesterday

    in reply to: TumbleWeed #15277

    abakobo
    Participant

    Pathetic

    in reply to: Extracting AffineMatrixes #15276

    abakobo
    Participant

    On this topic I give an example of AffineMat3 extension using all of the matrix’s values.

    Matrix scale

    in reply to: Calculus #15264

    abakobo
    Participant

    Ads are working on my acer jade.

    in reply to: Question to App.RequestRender() #15084

    abakobo
    Participant

    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.

    in reply to: OnMeasure() called auto? #15083

    abakobo
    Participant

    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/

    in reply to: Question to App.RequestRender() #15067

    abakobo
    Participant

    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.

    in reply to: Android fullscreen-immersive #15064

    abakobo
    Participant

    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?

Viewing 15 posts - 46 through 60 (of 455 total)