Natano's Recent Forum Activity

  • Natano

    Why have you reported Newt for a Warez violation twice?

    Please stop doing this.

    Sorry... Accidentally))

  • You don't need to do it every tick.

    Add a button.

    https://www.dropbox.com/s/oz49k379l34xu ... .capx?dl=0

    The problem is – I need it every tick, realtime. Look here:

    https://www.dropbox.com/s/3k8qlassokux5 ... 9.jpg?dl=0

    There is a UserMedia object on screen, showing stream from device's cam. But, as you see, it's 90° rotated, as it is by default, probably defined by camera driver. Other applications, like "Camera" or Skype, do the rotation themselves. But, as far as I found, Construct doesn't. The correct picture is needed realtime, because user is expected to aim camera at QR-code. Trying to do it with picture rotated 90° is quite a pain.

    (a bit later)

    However, playing now format and quality options, I found out that a sprite object can be updated with camera jpeg snapshot quite fast! Actually, 10 fps on pad is not a problem, and that's more than enough. Rotating it 90° makes what I want – realtime vertical stream from camera, so the problem is solved! Thank you for a good idea!

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • Load the url into a sprite, set its angle, and paste it into the Paster object.

    Thank you for your reply!

    Just tried it. "Sprite -> Load image from UserMedia.SnapshotURL" every tick. Yes, this works, but at 2 FPS on my 4GHz i7. And on the pad there is 1533MHz "intel atom"... Any other ideas?

  • Hi.

    Trying to implement QR-code scanner (using pode_qrdecode plugin). Planning to run it on windows pads via NW.js (as a part of QR-based electronic guide solution for our little museum). The pads are 8'' so they have portrait layout, and this is good for design. But it looks like built-in camera is by default lanscape-orientated, making the picture in UserMedia object look 90 degrees rotated and impossible to aim. Found the UserMedia object doesn't have "angle" property. Tried to rotate it starting the "Rotate" behavior and then stopping it at the right moment, but, besides it's funny, it's not always as accurate. Found a walkoround using "ManyCam" utility (it creates a virtual camera based on a real one with any user effects applied, incl. rotation), but free version has its limitations and, anyway, it's a perfomance hit. Is there any simpler solution I missed?

  • Damn.. It works!

    Cheap windows pad + Construct2 + your plugin = effective QR-based e-guide for our little museum in minutes and for free!

    Man, you're awesome. Thank you so much...

  • To 99Instances2Go:

    Thanks a lot! Honestly, was too tired to do the research!)) Didn't even notice the rex_bnickname behavior 'till tried to load your sample project, and it seems impossible to make things work without it. The thing is when I assign a nickname inside the "for each" loop via family (assigning, say, UID as a nickname), it is probably somehow associated with family object, so when I try to create a member by nickname, it is created randomly, as if it was created via family. However, assigning behaviour with "mode" set to "SID" solves the problem! Thank you!

    To Brandon12hummer:

    Thank you too for your reply. I thought of using this "animation" trick, however, it wouldn't fit for some reasons. Not even because there will be several hundreds frames of animation (taken as miniatures they are quite small and quick to load). But at some point (when user touches a miniature) a larger version of picture has to be loaded, end even a larger one if user decides to zoom it. And as far as i know there's no way to replace one particular frame at runtime, especially when sizes of frames differ so much (some hi-res versions are 5000+ pixels wide). However, the idea is good for a fixed number of comparable images, so i may use it for something else, thank you anyway!

  • To 99Instances2Go:

    Seems like it does the same thing... What did I do:

    1. During initialization process: "For each <myFamilyName> -> Rex_nickname | Assign nickname <someUniqueString> to <myFamilyName>"

    2. When certain object is needed: "Rex_nickname | Create <sertainUniqueString> at (X,Y) on layer N"

    And it creates a random object from family, like if I used standard "System | CreateObject" approach.

    Did I do something wrong?

  • Hi.

    It it possible to create a copy of a certain object from family at runtime, say, by UID?

    Trying to make a kind of "gallery" application for intera?tive kiosk. All paintings are stored as Sprite objects, picked together in family "Paintings", with their properties (author, genre, material, physical size, etc...) saved as family local variables. Pictures are quite small (the larger versions are loaded dynamically at runtime as the are needed), so they are all loaded at startup as global objects, forming a kind of database. The problem is, when it comes to showing some of them, I have to operate on source objects, so it's not possible to have, say, a pair of same pictures on-screen at the same time (to have a row of miniatures, showing one of them at full size, for example), and when they are not needed I have to hide them again. It would be nice to make copies, operate on them and then dispose of them, but when I use "Create oblect "Paintings" it creates a random member, and looks like there is no way to control that.

    Is there any solution or walkaround? Creating a long list of conditions and writing a uniqe "create" action for each member won't work, 'cause there are 300+ objects in family and number tends to grow.

Natano's avatar

Natano

Member since 23 Jun, 2016

None one is following Natano yet!

Trophy Case

  • 8-Year Club
  • Email Verified

Progress

9/44
How to earn trophies