Mikal's Recent Forum Activity

  • Thanks for the details and the example, I will review.

  • Try Construct 3

    Develop games in your browser. Powerful, performant & highly capable.

    Try Now Construct 3 users don't see these ads
  • Update:

    github.com/gritsenko/c3_spine_plugin/releases/tag/2.8.2

    Fix C3 324 compat and set region ACE for 4.1

  • Which version of the addon are you using? Later versions have optimizations around this case when animation is paused.

  • It is available on the itch.io page.

  • Hi, regarding 3D light, the effect addon is just a simple light projected from the viewer toward the scene. Since we don't have the right information or effect process from C3, we can't do much more than that right now.

    Think of it as the camera having a flashlight or torch pointed at the scene.

    When using the addon don't forget to set the light diameter to 1-3 (can be used to make it more like a spotlight or a flood light.)

    Here's one of the examples that is on the itch site: FighterPerfLayerLight3D.c3p

    Let me know if you need any more info.

    Thank you for the update and the nice process to support both WebGL 1 and WebGL 2 in the same addon, nice work.

  • You can't really pull bone position, you can only 'force' their values.

    Instead if you want to use a Spine position to reference in C3, you should add a bounding box to the spine project attached to a bone where you want it (e.g. at the tip of a sword) and use the bounding box expressions to read the value of the bounding box (either the points of the box or the center.) The github site has a little more information on that (you also need to use the update bounding box ACE to get the latest values.)

  • Thanks, I replied on the Aha site.

  • I've added the request to aha here: construct3-21h2.ideas.aha.io/ideas/C321H2-I-504

    In the meantime, I've been using the scripting SDK version to test (though I would rather use the plug-in API version) and it is very effective for 3DObject with higher polygon models with animation. See below for the flame chart with a number of different models each with their own worker for animation processing and a big increase in possible performance with multiple models.

    On initialization of each instance, I transfer the model and animation data once to the worker and then each tick() use postMessage from the C3 runtime thread (via plug-in) to request for animation update with a certain animation type and time stamp. When the worker is finished, I transfer the new vertex data back to the C3 runtime worker thread using an ArrayBuffer transferable, which I can read as a float array using a DataView. Using a transferable makes the transfer quick, even though a lot of data is sent. The CreateWorker API has been really handy for all of this, thanks for the nice tooling that is already there. In the C3 runtime, the plug-in uses the latest data available to do the model rendering. I am also examining ways to consider doing sync gates between worker and C3 worker runtime.

    For more complex models, I also change the animation update rate to 30 fps and this works well to allow for more latency between worker animation processing and rendering (which always runs at 60 fps using the latest available vertex data.)

    This has been inspired by the C3 RTS blog and how Ashley is doing the RTS server using a worker.

  • You could create a new thread to request and also add a link to a request here:

    construct3-21h2.ideas.aha.io

  • As a quick hack test, try this (set project to not use worker mode):

    Add a usermedia element to your layout.

    In scripting use:

    // Get the video element (assuming only 1 video element present)

    globalThis.myV = C3UserMedia_GetVideoElement(0)

    globalThis.myV should point to the usermedia object, which you use for your tensorflow pose.

    If it works, request to Ashley to add an official scripting SDK for Usermedia to get access to the usermedia element to import to other APIs. I recommended only using official scripting/SDK API calls.

  • Is there a CreateWorker plug-in API similar to the one in the scripting SDK? I do not see it in the docs. I am testing workers in my plug-in and want to use the official method to create more workers from the C3 runtime running in a worker.

    If there is not now and you need me to make a aha request, I can do that.

Mikal's avatar

Mikal

Early Adopter

Member since 22 Apr, 2016

Twitter
Mikal has 103 followers

Trophy Case

  • 8-Year Club
  • Entrepreneur Sold something in the asset store
  • Forum Contributor Made 100 posts in the forums
  • Forum Patron Made 500 posts in the forums
  • Forum Hero Made 1,000 posts in the forums
  • Popular Game One of your games has over 1,000 players
  • Regular Visitor Visited Construct.net 7 days in a row
  • Steady Visitor Visited Construct.net 30 days in a row
  • RTFM Read the fabulous manual
  • x10
    Great Comment One of your comments gets 3 upvotes
  • Delicious Comment One of your comments gets 10 upvotes
  • Email Verified

Progress

19/44
How to earn trophies