abakobo

Forum Replies Created

Viewing 15 posts - 1 through 15 (of 416 total)
  • Author
    Posts
  • in reply to: how to start a project #15512

    abakobo
    Participant

    I’m not really into 3D but…

    You can find samples in the “banana” folder. There you have “toy-plane” sample which is the only 3d banana.
    You can also go to Files>Templates>simple mojo3D App to see a simplest 3D App code
    The other samples are in the “test” folder of each module. For example in modules/mojo3d/test or module/mojo3d-loader/test

    There are also .mojo3d scene files in the root directory but I never tried to open or create one so I can’t really help here.

    Someone has made a small game called “BUST” this should be in the projects section of this forum.

    in reply to: "Window.SwapAsync" what is it? #15508

    abakobo
    Participant

    Thanks for the info. I should read VERSION!

    Having finer grained timers would be awesome, especially for sound treatment as it has a much higher refresh rate than video. Too bad Apple is making things so complex with their constant new system surprises.

    in reply to: help to install Monkey2 on Linux Mint 19 Tara #15401

    abakobo
    Participant

    This post is the most recent about linux installs

    Compiling on Ubuntu 14.04 LTS (fresh install)

    in reply to: Setting CString in a Struct #15392

    abakobo
    Participant

    Here is a running example with c++ code included. I’m not using any const stuff here, which could bring (a lot of?) trouble.

    !!! the C++ code is awful and WILL leak. Do not use it for serious work.

    It shows the use of CString thru the C++ constructor and also a direct modification of the char* field

    .monkey2

    .h

    .cpp

    in reply to: trying to compile pyro app #15391

    abakobo
    Participant

    When installing mx2 on linux I chmod the mx2 folder before rebuildall2go.sh to avoid that kind of problem.

    in reply to: Setting CString in a Struct #15390

    abakobo
    Participant

    CString is a convenience type to be used for external funcs/methods arguments. It will convert your string to a valid external CString automaticaly while passing it!

    If you really need to manipulate a CString inside Monkey2, you can do it with libc.char_t Ptr, and String.ToCString or String.FromCString. But you’ll be playing with a pure C style Ptr and can crash your app if you are not managing your memory correctly.

    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

Viewing 15 posts - 1 through 15 (of 416 total)