fongka2's Forum Posts

  • QR CODE PLUGIN BUILD FAIL INTELXDK

    Error: Plugin failed to install: barcodescanner (https://github.com/phonegap-build/Barco ... 3b4955dce2)

    (I donated again(American Express Credit Card XXXX-XXXXXX-X5473),plz check)

  • fongka2

    Ran this example in chrome.

    But "recognition.onstart" event is not fired

    Only "recognition.onend" event is fired

    I have no mike.

    Is this normal?

    Oh...

    let me try later

  • one more thing!!

    Will you add this plugin too?(Voice to text)

    <html>
    <head><meta charset="utf-8" /></head>
    <body>
    <script type="text/javascript">
    var infoBox; // 訊息 label
    var textBox; // 最終的辨識訊息 text input
    var tempBox; // 中間的辨識訊息 text input
    var startStopButton; // 「辨識/停止」按鈕
    var final_transcript = ''; // 最終的辨識訊息的變數
    var recognizing = false; // 是否辨識中
    
    function startButton(event) {
      infoBox = document.getElementById("infoBox"); // 取得訊息控制項 infoBox
      textBox = document.getElementById("textBox"); // 取得最終的辨識訊息控制項 textBox
      tempBox = document.getElementById("tempBox"); // 取得中間的辨識訊息控制項 tempBox
      startStopButton = document.getElementById("startStopButton"); // 取得「辨識/停止」這個按鈕控制項
      langCombo = document.getElementById("langCombo"); // 取得「辨識語言」這個選擇控制項
      if (recognizing) { // 如果正在辨識,則停止。
        recognition.stop();
      } else { // 否則就開始辨識
        textBox.value = ''; // 清除最終的辨識訊息
        tempBox.value = ''; // 清除中間的辨識訊息
        final_transcript = ''; // 最終的辨識訊息變數
        recognition.lang = langCombo.value; // 設定辨識語言
        recognition.start(); // 開始辨識
      }
    }
    
    if (!('webkitSpeechRecognition' in window)) {  // 如果找不到 window.webkitSpeechRecognition 這個屬性
      // 就是不支援語音辨識,要求使用者更新瀏覽器。 
      infoBox.innerText = "本瀏覽器不支援語音辨識,請更換瀏覽器!(Chrome 25 版以上才支援語音辨識)";
    } else {
      var recognition = new webkitSpeechRecognition(); // 建立語音辨識物件 webkitSpeechRecognition
      recognition.continuous = true; // 設定連續辨識模式
      recognition.interimResults = true; // 設定輸出中先結果。
    
      recognition.onstart = function() { // 開始辨識
        recognizing = true; // 設定為辨識中
        startStopButton.value = "按此停止"; // 辨識中...按鈕改為「按此停止」。  
        infoBox.innerText = "辨識中...";  // 顯示訊息為「辨識中」...
      };
    
      recognition.onend = function() { // 辨識完成
        recognizing = false; // 設定為「非辨識中」
        startStopButton.value = "開始辨識";  // 辨識完成...按鈕改為「開始辨識」。
        infoBox.innerText = ""; // 不顯示訊息
      };
    
      recognition.onresult = function(event) { // 辨識有任何結果時
        var interim_transcript = ''; 
        for (var i = event.resultIndex; i < event.results.length; ++i) {
          if (event.results[i].isFinal) { 
            final_transcript += event.results[i][0].transcript; 
          } else { 
            interim_transcript += event.results[i][0].transcript; 
          }
        }
        if (final_transcript.trim().length > 0) 
            textBox.value = final_transcript; 
        if (interim_transcript.trim().length > 0) 
            tempBox.value = interim_transcript; 
      };
    }
    </script>   
    <BR/>
    last:<input id="textBox" type="text" size="60" value=""/><BR/>
    mid:<input id="tempBox" type="text" size="60" value=""/><BR/>
    Lan:
    <select id="langCombo">
      <option value="en-US">en-US</option>
      <option value="cmn-Hant-TW">中文(台灣)</option>
    </select>
    <input id="startStopButton" type="button" value="Start" onclick="startButton(event)"/><BR/>
    <label id="infoBox"></label>
    </body>
    </html>[/code:3c3cdllo]
  • fongka2 Him posting a .CAPX would not help you if you can't follow his instructions and math examples already. Unlike most 2D components, 3D will not be so easy to copy-and-paste and it would be a real waste of his time making an FPS example when the plugin itself can be enhanced even more instead.

    Unfortunately I don't have the time right now, but if you take a look at the Wolfenstein example for Construct Classic you'll see that it's entirely possible to do basic 3D collision using 2D objects and then rendering a 3D view.

    Yeah.but there are so many thing seems is impossiblenvi@using plugin

    I don't believe you can make Tiny Tank by this version

  • fongka2

    I'm working on this plugin whenever i have free time to do so, but as the tiny tank demo proves a lot can already be done with it. You could very much make a quake style fps as things are now, although you'll have to program simple 3D collision detection yourself. Tiny Tank has 3D physics/collisions which were made using events so an fps should be very easy in comparison. Animation will likely come in the future, but again I update at the pace that i can. Read up on 3D collision detection, sphere-sphere collisions are incredibly easy to implement:

    http://studiofreya.com/3d-math-and-phys ... -response/

    The plugin is taking a long time because it implements more complicated collision primitives and uses a spatial hashing scheme to accelerate things, but for simple 3D collisions like you'd need for DOOM sphere-sphere aswell as constructs collision system should be very useful

    Also, obtaining mouse coordinates in the 3D space is based on your camera position, field of view and your window size, as well as the plane you wish to project onto, it's not something that the plugin can't do, its something you must use math specific to your requirements to solve.

    What i think is Answer the questions = useless

    You should upload a 100% really FPS/TInyTank demo .CAPX here

    Then i think no one will ask you question anymore

  • Is the launcher was made with construct2?

    And made in native plugin?

    Yes construct2 html5 app & construct2 plugin & Android java

    l

    now I'm working on IME

    Will Launch Next weak

  • I own Launcher and keyboard app one Google Play by using Android webview

    If there are crosswalk plugin for me

    my app will have a better Performance

    Let me giveup that slow webview

  • Anybody done a fps demo yet? Maybe something based on quake? Or just original...really, anything would be neat to see.

    i'M TRYING

    But just feel this version/this plugin

    IS NOT FOR FPS GAME

    i guess this plugin is for you change your 2d game in 3d

    What is this plugin for?(now) = game system basic on 2D,and set 2d item invisible,then use 3D to show those 2D item

    But...QuaziGNRLnose Said next version will add more function like 3D collision detection

    when you get 3D collision detection you can start to do some really 3D game

    (Animation still a problem)

  • Try Construct 3

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

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

    and

    1.Phonegap Dialer => implemented, get it from premium member area

    2.said at upper comment

    3.I looked into the Launcher open source and I knew that it was made of over 20 native plugins.

    So if try to make the Launcher app, any developer needs to implement over 20 c2 plugins then make app with c2.

    As for this, more consideration is needed.

    4.Phonegap SoftKeyboard => implemented, get it from premium member area

    5.I worked on Phonegap File plugin with some time, give me some time for this plugin. Study on File API is needed for me.

    Thankyiu so much!!!!

    I like you

  • 2.Does Open browser(URL) exist in c2 standard Browser plugin?

    not working

  • Will you add:

    1:phone call

    2:Open browser(URL)

    3:Get app list,Open app by id(Launcher XD) [ http://stackoverflow.com/questions/1596 ... n-phonegap ]

    4:show and hide soft keyboard

    5:file read&write(Android)(not just photo)

  • fongka2

    I stated instruction on how to allow your textures transparency to work, you need to enable "Transparency" while keeping the opacity at 100%, this should allow your pngs transparenchy to work. This is necessary so that the renderer understands it needs to apply special treatment to that particular material/texture etc. Transparency is supported but tricky, as it requires the rasterizer to do extra work maintaining sort and draw orders. there are alpha test, depth test and depth write settings you can modify to play with how transparency is handled for particular materials.

    Well...problem solved thankyou!

    here is my forward list

    1:Animation support

    2:really 3D collision detection(Not 2D x,y)

    3:Screen mouse XY <> Q3D world XY

    4:faster update release

  • It just existed when I make new project.

    Maybe, You need update XDK tool.

    Missing API Emulation

    close

    App.overrideBackbutton

  • See this:

    XDK PORJECTS - your_xdk_project - CORDOVA 3.X HYBRID MOBILE APP SETTINGS - PLUGINS AND PERMISSIONS - Third Party Plugins - Add a Third Party Plugin - Get Plugin from the Web -

    Name: local-notification

    Plugin ID: de.appplant.cordova.plugin.local-notification

    Repo URL: https://github.com/katzer/cordova-plugin-local-notifications#c9633123fa315c69b4cb145aa3554d2b66932121

    I know....

    I know....

    but how can i show this up?

    [attachment=0:r73azr8i][/attachment:r73azr8i]

    i tried alot of time

    i still don't know how can i open this thing

    may you please....please take a YouTube or something...

    my project don't have any plugin setting

    HERE IS MY YOUTUBE:http://youtu.be/SoLprRqrl8s

    (Sorry...I'm making trouble for you..)

  • I'm running into the same issue. Have you figured out how to change this?

    No...only way is com a new nodewebkit by urself