Code Monkey home page Code Monkey logo

Comments (17)

jagenjo avatar jagenjo commented on May 23, 2024 1

Hi:

I did the Three.JS component long time ago so I hadnt check it with the latest updates.
I will try to fix it this week and add a tutorial of how to use it soon.

Cheers

from webglstudio.js.

tornadory avatar tornadory commented on May 23, 2024

@jagenjo wow, great, thanks very much!

from webglstudio.js.

johnnyz2017 avatar johnnyz2017 commented on May 23, 2024

it seems that use old version of three.js can make it work, such as r73.

the newest version can not.

from webglstudio.js.

jagenjo avatar jagenjo commented on May 23, 2024

yes, I was trying to fix the error but the new Three.JS has deprecated the function that reset its render engine, and without it it is hard to integrate both render engines because they change states.

As you say it should work with an older version that still has the Renderer.resetGL function

from webglstudio.js.

johnnyz2017 avatar johnnyz2017 commented on May 23, 2024

@jagenjo hope you can fix it soon. and I have a question in here that the 3D objects created via script (both litegl.js and three.js) can be access via the scene graph? or can they interact with each other?

many thanks for your help to understand it better.

from webglstudio.js.

jagenjo avatar jagenjo commented on May 23, 2024

No, because the editor doesnt know about them. But if you create the 3d objects using the LiteScene API then yes.

from webglstudio.js.

tornadory avatar tornadory commented on May 23, 2024

@jagenjo thanks for your update, hope you can fix it ASAP.

from webglstudio.js.

jagenjo avatar jagenjo commented on May 23, 2024

ok, I fixed it, here is an example of scene:

http://www.tamats.com/projects/webglstudio/editor/fileserver/files//guest/projects/features/threeJS.scene.json

from webglstudio.js.

tornadory avatar tornadory commented on May 23, 2024

@jagenjo cool! but I can not see anything from this scene, just a black screen, need the player do something else? I just use the load-scene example to load it.

from webglstudio.js.

jagenjo avatar jagenjo commented on May 23, 2024

Did you opened from the editor? you need to press play to see it.

from webglstudio.js.

tornadory avatar tornadory commented on May 23, 2024

@jagenjo I upload it into webglstudio but can not open it as a scene, editor shows error : "Insert not implemented for this resource type: Resource"

@jagenjo before that, I tried to use litescene (Player) directly to open it(have updated all of the current script)

from webglstudio.js.

jagenjo avatar jagenjo commented on May 23, 2024

go to webglstudio -> project -> load -> from URL
and paste the URL I gave you

from webglstudio.js.

tornadory avatar tornadory commented on May 23, 2024

@jagenjo sorry, too late to reply, but still not work, some error shows when I tried to run it:

three.min.js:539 Uncaught TypeError: Cannot assign to read only property 'getAttribute' of object '#'

Uncaught TypeError: THREE.Scene is not a constructor

seems that ThreeJS still not loaded normally.

from webglstudio.js.

jagenjo avatar jagenjo commented on May 23, 2024

Strange, I fixed that bug in LiteScene. Are you sure you are using the latest version from the repository?

from webglstudio.js.

tornadory avatar tornadory commented on May 23, 2024

I just used http://webglstudio.org/demo/, so you mean I need use litescene directly? oh...

from webglstudio.js.

jagenjo avatar jagenjo commented on May 23, 2024

Sorry, that version usually has the old version because is the stable one, if you want the new features always go to http://webglstudio.org/latest/

from webglstudio.js.

tornadory avatar tornadory commented on May 23, 2024

@jagenjo cool, I got it.

I downloaded the scene file and use load from file function and finally it works, I see the cube.

It's great!

from webglstudio.js.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.