Comments (11)
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.
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.
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.
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.
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.
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.
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.
Also, I am currently rewriting the build system and I think it might work on windows after that.
from x.
Nice for newbies who develop under Windows (like me half of the time :D) !
from x.
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.
Touch Events are now in XTK edge.
from x.
Related Issues (20)
- Set a specific color to a specific gray value
- Add labels to 3D VTX files / images HOT 1
- Add tooltip on VTX image
- VTK Parser throws unhandled exception when trying to load empty mesh file
- ami vs xtk HOT 4
- Append the renderer to a div
- problem when using xtk for 3D visualization of DICOM SERIES
- Uncaught ReferenceError: X is not defined
- xtk.js:319 Uncaught TypeError: fa.setTimeout is not a function HOT 2
- Small issue: broken jsfiddle link for example #17
- Settings of windowLow and windowHigh in volume rendering
- how to import other js package
- Cannot load colortable correctly
- Three.js and Xtk
- Draw Line in renderer2D in xtk library
- Is it possible to export a 3D mesh from a volumetric rendering of a DICOM file? HOT 1
- RAW NRRD cannot be displayed HOT 1
- file loading (e.g., 'volume.nii' in lesson 13a) does not work
- Ayuda
- Welcome to Gboard clipboard, any text that you copy will be saved here.
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from x.