X3M's Recent Forum Activity

  • X3M

    If you think it's a big improvement, you should consider creating your own separate div plug.

    No it doesn't affect the performance, the plugin is great, I just criticized the method used to include the canvas .

  • Pode created a DIV outside the DIV that contains the c2canvas, He called it "divSVG" , check his demo : https://dl.dropboxusercontent.com/u/141 ... index.html

    In my opinion, I don't think it should be like that, He made a looping JQuery function that adjusts the size and position of the div at each tick. I believe this can be done in a better way if you simply put your canvas on top of the c2canvas.

    This is what I mean:

    If you can, send me your code by PM and I'll try to set it up for you

    2) How do I create a div and fill colour exactly on top of the physical bounds of a plugin? I tried using the bbox and the quad properties and it seems that they all gives 0s for all the values in onCreate. When I console.log(this) for the plugin, I see bbox has left, top etc. values, but when I try to log (this.bbox) it gives all zeros. Also, when I use these values to set the values for the new div, it is setting all zeroes.

    Those are Edittime functions, they do not work at Runtime. Are you talking about drawing on the Construct 2 Editor layout or the Browser canvas ?

  • Thanks you very much X3M, that was superfast!!. Let me try this out.

    By the way, I checked our the BabylonJS. Pretty cool! Will you be publishing it in the store? When?

    Yep , At the end of November, by the time I've verified each function.

  • Thats because the c2canvas (Construct 2 canvas ) overlays yours.

    Try this :

    		
    instanceProto.onCreate = function()
    {
    var svgcanvas = document.createElement('svgcanvas');
    var c2canvas = document.getElementById('c2canvas');
    var maindiv = this.runtime.canvas.parentNode;
    svgcanvas.id = "svgCanvas";
    svgcanvas.style.position = "absolute";
    c2canvas.style.position = "absolute";
    maindiv.style.position = "relative";
    svgcanvas.style.width = 100 + "%";
    svgcanvas.style.height = 100 + "%";
    svgcanvas.style.left = 0 + "px";
    svgcanvas.style.top = 0 + "px";
    svgcanvas.style.zIndex = 1;
    c2canvas.style.zIndex = 0;
    
    this.svg = document.createElement('svg');
    svgcanvas.appendChild(this.svg);
    this.svg.width=this.width;
    this.svg.height=this.height;
    var viewBox = "0 0 "+ this.width+ " " + this.height;
    this.svg.setAttribute("viewBox",viewBox);
    this.SNAP = Snap(this.svg);
    
    // Create big blue circle in the middle:
    var bigCircle = this.SNAP.circle(40, 40, 80);
    bigCircle.attr({
    fill: "#0000FF",
    stroke: "#000",
    strokeWidth: 5
    });
    // Create another small black circle:
    var smallCircle = this.SNAP.circle(40, 40, 35);	
    };
    [/code:2f6lmmgk]
    
    It should work, i made it for my upcoming babylonJS plugin.
  • Yep there seems to be a delay before your avatar changes ( a couple of minutes I guess ), clean your cache just to make sure its not your browser's fault.

  • I need a 3D artist who is capable of creating scenes with animations on either 3DS max or Blender for a future project.

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • I've got a question that has been boggling me, addons that get sold in the scirra store are used by the buyers in their games, so let's say someone who bought the addon decides to put his game's capx for sale, he is required then to include the addon, that he bought, with the capx, and this is where the problem lies. I mean I couldn't figure out a solution for this. Any suggestions ? I wanna put an addon for sale in the store but I don't want it to be published by the buyers with their capx.

  • Clones are source codes sold by the original authors of the game, there are some marketplaces where you can sell your full source code for a decent price.

  • Check also : chrome://gpu

    I'm not using Chrome, imho its overrated and uses an unjustifiable high amount of CPU, Firefox is the way to go for testing your projects since its the most WebGL compatible browser at this time.

    Also if you check this article: https://www.khronos.org/webgl/wiki/Blac ... Whitelists

    You'll notice that Google Chrome has some compatibilty issues with a lot of graphic cards. So mayb your GPU and Chrome don't go well together.

  • Disable hardware acceleration in Chrome settings and restart the browser, See if it fixes the lag.

    Tip: enter this url => chrome://flags

  • Oh I see, thanks

  • I know, what I meant to say is that the getproperty by name method is better than to get it by ID, for one reason: If you make changes in the properties table, the ids gets regenerated, this is bad because you have to edit all the lines containing this.properties[x] and reassign the ids ...

X3M's avatar

X3M

Member since 8 Jul, 2016

Twitter
X3M has 1 followers

Trophy Case

  • 8-Year Club
  • Coach One of your tutorials has over 1,000 readers

Progress

9/44
How to earn trophies