Git Product home page Git Product logo

Comments (11)

haehn avatar haehn commented on August 19, 2024

touch events would be great! especially with the 2d renderers which work on the ipad. unfortunately, we don't have a touch device so we can't really develop and test this stuff. we are still looking for sponsors for an iPad and an android tablet :)

from x.

moi1882 avatar moi1882 commented on August 19, 2024

I'm taking a look at the code. I have identified the interactor.js to be the handler for the events, but it seems that the real responsible of the reaction is Goog. Right?
I try to find which kind of interaction is available and if it is doable to add a finger interaction.
Is anyone can advice me on where I have to implement such an ability?
events.js from the goog/events directory?
Thanks,
laurent.

from x.

haehn avatar haehn commented on August 19, 2024

Yap, interactor.js should be the right place. I would add the event listeners in X.interactor.init and then fire X.events to control the camera.

from x.

moi1882 avatar moi1882 commented on August 19, 2024

Ok, i'll go this way.

I'm having hard time building or testing my modified xtk version. Here are some minor issues:

  • First one, when I try to re-build xtk-deps.js. In the MS-Dos console I type build.py -d. Everything seems ok except that I have a message (in french) "the command line is too long" just after the depswriter.py. And above all, nothing is generated in my xtk directory. Is it really from the MS-Dos command line that I need to build it? I tryied to do so from the python console, but I'm not familiar to it.
  • I have found the developpersHeadsUp and tried to launch test.htm (without building) as described. I have a black screen... certainly a matter of xtk-deps.js not found.
  • Is there a difference between xtk.js and xtk-edge.js? My personnal examples work using an old release of xtk, but not using the downloaded xtk-edge.js... Nothing loads, black screen. The same issue using the latest version of the xtk.js file. I have found it on the repository and just replaced the old one by the new one. The progress bar starts but rapidly stops and nothing more happens. Are there major changes that makes my "old" code obsolete?

Sorry for all these questions (probably not the right place...) but it should allow me to quickly start on the touch interaction.
Cheers,
Laurent.

from x.

haehn avatar haehn commented on August 19, 2024

unfortunately the commandline too long thing is a windows issue. we don't have windows so we can't test that. any chance you can build on mac or linux?

from x.

moi1882 avatar moi1882 commented on August 19, 2024

No... I'm stuck to Windows :-
I've tried using the python shell and execfile but it doesn't seem to be the right tool...
I've tried also the MS Dos 64 bits to see if it allows wider command line but with no results.
It is perhaps the opportunity to install a Linux emulator on my windows.
Do you have any advice?

Cheers to Maxime, the belgian colleague ;-)
Laurent.

from x.

Ricola3D avatar Ricola3D commented on August 19, 2024

Mhh.. blackscreen. How did you define your object ? In the last version of xtk (see Haehn's fiddles) I'm experimenting an issue that gives me blackscreens too : the use of ".children.push()" doesn't work (for me or on Haehn's jsfiddles) even if ".children.shift()" works for example. So if you've an object with children it could be it.
Another way to know what's wrong is to look your javascript console, it could give us clues about the issue. (On Chrome : Tools/Javascript console [en français : la clé à molette>outils>console Javascripte], on Firefox Firefox>development>web console [en français :Firefox>Développement>Console web et il faut p-ê activer le menu développement dans les paramètres de Firefox])

Could you provide your javascript please to we see what doesn't work with xtk.js ?

from x.

haehn avatar haehn commented on August 19, 2024

Also, I am currently rewriting the build system and I think it might work on windows after that.

from x.

Ricola3D avatar Ricola3D commented on August 19, 2024

Nice for newbies who develop under Windows (like me half of the time :D) !

from x.

moi1882 avatar moi1882 commented on August 19, 2024

Sorry for the late reply...
I've finally bought a mac :-)
It was a good occasion since I need another software that exclusively run on Mac.

For Ricola, I don't think I use children. The black screen comes using xtk-edge.js
I'll intensively check soon, but I'm a bit busy for now.

I'll keep you posted.
Cheers,
Laurent.

PS: Daniel, nice idea to make it work under windows :-)
Thanks!

from x.

haehn avatar haehn commented on August 19, 2024

Touch Events are now in XTK edge.

from x.

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.