Announcement

Collapse
No announcement yet.

Unreal.js

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    [PLUGIN] Unreal.js

    https://wiki.unrealengine.com/Unreal.JS

    Available on the Marketplace! (Sep 1 2016)

    Full access to UnrealEngine via reflection.

    https://github.com/ncsoft/Unreal.js

    Tutorial video: https://www.youtube.com/watch?v=XxPSLjBg7DU
    Last edited by nako_sung; 09-01-2016, 07:18 PM.

    #2
    This looks awesome

    Comment


      #3
      This looks great! I've got a few things which I implement at the moment using python and a socket interface with ue. I'd love to contain it all within the engine. At the moment I use python to load excel files into arrays and also act as an osc server which I use to trigger unreal events. Is it easy, do you think, to use unreal js to do these things internally? There are osc and excel libraries for js (I have zero experience with js).

      Nice work !

      Comment


        #4
        Unreal.js isn't compatible with node.js, but most of node.js features are not bound to its internal modules(process, net, fs, ...). I don't know how excel-parser is implemented, if the module can take binary buffer or array, you can do import *.xlsx and do the things what you want with Unreal.js.

        If you find missng functionality what you want to use, just implement a C++ function within your UBlueprintFunctionLibrary(https://wiki.unrealengine.com/Bluepr...re_With_Others). That function will be accessible immediately. (No needs to add glue code)

        Thank you!

        -- Just added some example, please check out updated README.md
        Last edited by nako_sung; 11-21-2015, 09:22 AM.

        Comment


          #5
          Wow! This is amazing! Thank you nako_sung!

          Comment


            #6
            Thanks - praise from the big man too!

            Looks like i've got some JS experimentation to get on with. I'll keep this thread informed on how I get on here. I feel like this is going to be a pretty long thread when people spot it!

            Comment


              #7
              I hope you enjoy hacking UnrealEngine with .js!

              Comment


                #8
                This is awesome !!! Really !!!
                I do not have the time to test it for now but I will for sure as soon as I can.

                How portable do you think it is ?
                I remember iOS builds could not embed jit based VMs such as v8.
                Is that old news ?

                Comment


                  #9
                  Thank you, AMIGrAve!

                  Mobile support is something I expected to be happened with the community. There is some working iOS build (https://github.com/frida/v8), but I don't know about Apple's policy about JIT VM. If Apple is forcing to use their JavascriptCore, Unreal.js needs to be redesigned to support several Javascript providers.

                  --(edit)--
                  http://www.iphonehacks.com/2014/06/i...fari-apps.html
                  Last edited by nako_sung; 11-23-2015, 11:58 AM.

                  Comment


                    #10
                    This is awesome. Not quite sure yet where I will use it, but that will come with familiarity!

                    Edit:
                    Does this load js at runtime? e.g. could this be used to enable people to script mini-games within games? Possibilities...
                    Last edited by getnamo; 11-23-2015, 04:46 PM.
                    Plugins: GES - Node.js - TensorFlow - Socket.io Client - ZipUtility - Leap Motion - Hydra - Myo

                    Comment


                      #11
                      Yes. Code is being loaded at runtime. Class declaration(and live reload) also takes in place while running. If you have a good package manager like npm, there will be lots of possibilities.

                      Comment


                        #12
                        I forgot to implement USTRUCT and updated to support it. Dynamic unreal engine is a real fun. By the way, we(ncsoft) are using this plugin for rapid-prototyping and editor extension.

                        Comment


                          #13
                          This is fantastic work, can't wait to see how this evolves.

                          Comment


                            #14
                            Hey Nako, thanks again for making this.

                            I'm still very new to Unreal so please bear with me.

                            What is the best way to pass information from JS to Unreal?

                            For example I have a ProceduralMesh like so:

                            Click image for larger version

Name:	procmesh.png
Views:	1
Size:	135.6 KB
ID:	1093958

                            It also has a UnrealJS component. With JS code here:

                            Click image for larger version

Name:	unrealjs.png
Views:	1
Size:	69.0 KB
ID:	1093959

                            My goal is to use JS to generate the mesh (with something like THREE.js) and then inject the vertices, faces, and UVs back into Unreal. Can anyone think of a good way to do this?

                            I'm thinking to create a custom Actor in JS that hold information about the generated vertices, and then from Blueprint I can somehow reference that actor and obtain that data. However this seems extremely naive, not even sure if I can get pins from a JS-generated class. I'm wondering if there are better ways to do this?

                            Comment


                              #15
                              That's so cool! Thanks, nako_sung!

                              I'm working on the android port, so far so good.
                              | twitter | github | #ue4tip

                              Comment

                              Working...
                              X