X3M's Recent Forum Activity

  • matriax Some OBJ models have more than 1 texture image, and they do not follow a standard format, what would be the solution to this?

  • matriax It is not possible to set textures of Obj model inside the texture editor because we cannot tell the names of the textures and the extensions used in the obj models available online.

    In another note, I'm studying the possiblity to load the obj as data instead of importing files, as you suggested last month.

    Since loading OBJ models can cause a problem in certain websites that do not allow such extensions, (MIME types).

    And also, the idea itself is interesting, Imagine a website full of models in which we only have to copy/paste text in order to have them in our games. That would be awesome.

    I'm not experienced enough in these kind of stuff, but I'll try my best to implement it.

    I did it with the individual meshes effects, who know, maybe I can pull it of with the Objs.

  • That's exactly what it is.

  • 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.

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • 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 )
  • 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.
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