Jump to content

BabylonJS EditControl


satguru
 Share

Recommended Posts

Je suis sur Chrome. Si tu décoche la case "local" et que tu déplace le cube sur l'axe X (bleu), il est largement plus lent que tu tu coche "local" et que tu déplace sur l'axe X (bleu). j'ai vider les caches du navigateur et c’est visuellement flagrant. J'avais peut être mal expliquer en anglais.

http://ssatguru.appspot.com/babylonjs/EditControl/webapp/index.html

Link to comment
Share on other sites

4 hours ago, Dad72 said:

Je suis sur Chrome. Si tu décoche la case "local" et que tu déplace le cube sur l'axe X (bleu), il est largement plus lent que tu tu coche "local" et que tu déplace sur l'axe X (bleu). j'ai vider les caches du navigateur et c’est visuellement flagrant. J'avais peut être mal expliquer en anglais.

http://ssatguru.appspot.com/babylonjs/EditControl/webapp/index.html

I'm on Chrome. If you uncheck the "local" box and you move the cube on the x-axis (blue) , it is widely slower than tu tu "local" checkmark and you move on the X axis (blue). I empty the browser cache and it is visually obvious. I may be wrong explain in English .

I am sorry I still do not see the problem ( also x-axis should be red).
Are you testing on PC (wondows/mac?) mobile, tablet ?

Can somebody on the forum please test and confirm what Dad72 is finding?

Regards

Link to comment
Share on other sites

On 1/30/2016 at 10:16 AM, Dad72 said:

Apparently it comes from my PC because on the computer of my girl friend, it works correctly.

I do not know what can cause this, my PC works well. Mouse parametre can beings? (Logitech Gaming laser G700)

@Dad72

When I upgraded to 2.3 I ran into exactly the same issue which you described (slow translate on global) but, in my case, only on Firefox.  Anyway, I worked around that issue. Could you try my new version and see if it solves this issue?

Link to comment
Share on other sites

  • 2 weeks later...
  • 2 weeks later...

Hi,

Did you try the latest version of Babylon? it seems that there is a problem with onPointerUp()

When moving an object, and the mouse is released, the camera is attached to the pointer of mouse.

I do not know if it's a bug of Babylon or EditeControl

Have you been looking for the problem previous for rotation along the scale of objects ? Rotation that is extremely sensitive with some objects.

Thanks Satguru

Link to comment
Share on other sites

@Dad72

Yes I am aware of the issue.

Seems to be related to changes introduced  by

Added Camera.ForceAttachControlToAlwaysPreventDefault

For some reason the camera.detachControl() is not working as expected now.

Regarding scale issue.

I do not think it is a scale issue. Can you test with 2.3 and see if you have the same issue?

I know there was an issue with euler / quaternion  - http://www.html5gamedevs.com/topic/20963-euler-to-quaternion-rotation-issue/

 

 

 

 

Link to comment
Share on other sites

I'm a huge proponent of the new JS syntax/feature additions, and so I wanted to write my new project using JS modules, etc. Unfortunately, your code is not written with modern javascript in mind, and therfore I have opened an issue on the repo: https://github.com/ssatguru/BabylonJS-EditControl/issues/1

I can translate all of your Java code to new ES6+ code that will transpile down to browser-ready code with Babel. I'd love to get the ball rolling on this ASAP.

Let me know.

 

Thanks

 

--------------------------------

UPDATE

I decided that I was not keen on waiting, and so I went ahead and did a 1:1 translation of your java into modern javascript. I'll put it on github right away. I hope we can collaborate on this. Translating the code is one thing, understanding what it does is another thing, haha.

As it stands, the code is as close to a 1:1 translation as I could get it (it's very close). It does require a lot of cleanup, in my opinion. A lot of the code and logic could be simplified. This is my next goal.

 

Alright, here's the github url: https://github.com/ndugger/babylonjs-editcontrol-js

 

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...