X3M's Forum Posts

  • matriax That is not possible since OBJ models come with their MTL files, and JS files have their texture images.

    I meant that I optimized the loading to make them spawn faster.

  • Stick with C2 and port Javascript UI frameworks to it. Anything that you would make with a code editing IDE will take you 3x the time and effort.

  • stefanos If the C3 editor layout is a WebGL canvas and Ashley will make it possible to render on it with the SDK then yes I will, otherwise there is no reason to make a 3D plugin for it if the layout editor is still limited like in C2.

  • justifun There is a function for that in the next update.

  • justifun You should use the System->Create object

  • Thanks mate.

    The next update is nearly finished, It is a more robust version of B3D which will make things a lot easier than it is already.

    Here are some of the features :

    • Better representation of the elements on the C2 layout. (Camera projection).
    • Better integration with C2.
    • Persisting scene mode which allows to save the state of the scene when moving from layout to another without losing the states of the elements of the previous scene.
    • WebGL 2.0
    • FPS friendly mode
    • And some new behaviors.
    • Easier BabylonJS javascript execution functions.
    • Better OBJ and JS models loading.
    • Bug free. ( Finally )
  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • blurymind Nah since I'm using the sandbox attribute without allow-script.

    Well if you wanna make a robust Web scrapper then Javascript and client side is not the best way. It's better to make it server-sided using NodeJS.

    Here is preview of my halted project, basically you get to pick whatever DOM element you want to scrap, I get the className first, if it does not exist then I get the tagName and scrap similiar elements:

    But I'm willing to complete this small project since there is no Web scrapping software out there that is based on NWJS.

  • I need to grab string values from elements inside the iframe, so this wouldnt do it for me

    Me too, I've tried your solution and it worked partially in NWJS but not in standard browsers.

    This is what I did:

    1- Created a second Iframe (Iframe2) next to the iframe which loads the website (Iframe1).

    2- Got the document innerHTML of the Iframe1

    3- Assigned the innerHTML to the Iframe 2

    4- Got the strings from Iframe2.

    It worked well for most of the websites, but not all of them allow this.

    Just give it a try.

  • blurymind Finally here is the solution :

    <object data="http://www.web-source.net" width="600" height="400">
        <embed src="http://www.web-source.net" width="600" height="400"> </embed>
        Error: Embedded data could not be displayed.
    </object>
    [/code:2pw4ve9q]
    I've never heard of <embed> tags before (Maybe it is an HTML5 addition ), but it does the job perfectly, and it looks more elegant than an Iframe. No more CORS !
    Well technically it won't work if the target has set 'X-Frame-Options' to 'SAMEORIGIN' (Such as google)[/u]
    
    Edit: That does not seem to be the ideal way for scraping, since the embed tag obfuscates the DOM elements of the frame.
    It must be the solution you proposed of loading the content into a blank.html.
  • Hi there,

    I've noticed that we can actually access other domains from an Iframe without getting blocked by the CORS if we use NWJS, but it does not work when testing in a browser.

    As far as I know, we can bypass CORS by disabling web security in Chrome, which is not a suitable solution.

    I'm wondering how do Web scraping services manage to bypass it, since they all use an Iframe to analyze the content of a website.

    And I'm also wondering how the Chromium browser of NWJS is doing it, does it have its web security tag disabled ?

    Thanks.

  • AmitGamingKing That error means that there is no scene in the layout, send me the capx dude ...

  • AmitGamingKing Please refer to the tutorials to learn how to use the plugin => https://www.youtube.com/playlist?list=P ... KSio7i5INm

    > There is no way C3 isn't going to be released this year. Do you really think that people will wait till 2019 to get it ?

    >

    I'm sorry to burst your bubble but that is so unlikely. The only reason for this announcement might just be a way for Scirra to calm us down. Imagine, there are few programmers making C3 and compare to Spark Engine with a big team that still hasn't been released, they should be able to release first before C3 ever does...

    Besides, the logo also looks like it was made not so long ago. I doubt the release date will be this year. We can only expect more sneak peaks this year..

    Don't get me wrong, i hope i am wrong though. I am just being realistic.

    Wait didn't they start working on C3 back in 2015 ? Besides, they wouldn't be posting screenshots of their work if it is supposed to be released after 1 or 2 years, its just doesn't make sense.

  • polygame The update of the plugin is not yet finished

    There is no way C3 isn't going to be released this year. Do you really think that people will wait till 2019 to get it ?