I've finished designing my 3D model using Google Sketchup, my model contains scenes and dynamic moves, in other words my model responds to clicks made by the user (click on model then model moves or does something) my query is that if I upload my model into three.js, does it still interacting with the user or will viewed just as one entity (doesn't respond to clicks). Please I am seeking help regarding this subject since a long time, and if there is a possible way to do it then how?
Exporting interactive model from Sketchup to three.js
4.5k Views Asked by Omar At
1
There are 1 best solutions below
Related Questions in THREE.JS
- TypeError: this.mesh.geometry.area is not a function
- Threejs scene from blender and access to objects
- Importing blender JSON in Three.js
- Rotate the mergeometry object at its center in Three.js
- ThreeJS LOD clone()
- Three.js, Camera rotation around a point
- Three.js: Switching between Cameras and Controls
- THREE.JS MakeTextSprite properties
- How to create a cylinder or some flash effect between two points?
- How can I render .mtl for object on iPhone 5 using ThreeJS?
- Updating a material's texture map with images rapidly (every 50ms or so) causes huge stuttering
- Quality not proper while rendering it via threejs r71
- how do I apply the stereo effect to a video mapped sphere?`
- Adding 2D plane to 3D view
- How to check for collisions in ThreeJS?
Related Questions in EXPORT
- Export DataTable to CSV File with "|" Delimiter
- Connect to database and export to sql script
- Blender to Unity3D: Applying Materials in Unity
- How to export data from Cassandra to mongodb?
- Create ZIP File Then Send to Client
- Export SQL File not written in specified file path in php?
- How to export a .bullet file from blender
- Looking to export the content from a website into doc files
- PPT VBA: Capturing Screen Shot inside Shape
- export a feature as deployable feature by command line in eclipse for windows
- How to exclude specific column in export html table data using JQuery?
- Cannot export from any browser
- Magento export error 500
- How to export directly in a Makefile?
- Perl equivalent to Kornshell export command?
Related Questions in COLLADA
- Is there a way to import Collada files into Java?
- How to create a collada file from an objects faces' vertices information?
- SceneKit + Collada + animation
- How to make PyCollada output multiple meshes to the same scene?
- THREE.js Collada textures not loading
- Collada model hide meshes
- Three.js - avatar animation
- SceneKit Imported COLLADA Box not "Lit"
- Loading Collada dae file into SceneKit for joint manipulation
- Creating scene from .dae throws EXC_BREAKPOINT
- Load uncompressed collada file using iOS Scene Kit
- Rotate 3D rigged human model around pelvis root node while keeping feet planted
- Validating a collada file beyond simple schema validation
- Importing COLLADA file - Wrong vertex positions
- UV mapping issues while loading collada model exported with Sketchup
Related Questions in SKETCHUP
- Collada model hide meshes
- I can't import a complete model from sketchup into three.js problems, there are some missing objects
- Ruby, sketchup-add another textbox to the unput box
- How to sum two dimensional arrays
- Use a Sketch Up 2016 Model with babylon JS
- How to sum two-dimensional arrays
- How to sum 2-dimensional arrays
- intersecting faces in sketchup rupy
- UV mapping issues while loading collada model exported with Sketchup
- Google SketchUp close file
- ruby gems in Google-Sketchup
- HLSL shaders, how to draw a model with it's original colors?
- Call .NET dll via Google SketchUp Ruby Script
- Download Google Earth "Gray Buildings" models
- error when requiring rubygems with ruby 1.8.6 with windows 7
Trending Questions
- UIImageView Frame Doesn't Reflect Constraints
- Is it possible to use adb commands to click on a view by finding its ID?
- How to create a new web character symbol recognizable by html/javascript?
- Why isn't my CSS3 animation smooth in Google Chrome (but very smooth on other browsers)?
- Heap Gives Page Fault
- Connect ffmpeg to Visual Studio 2008
- Both Object- and ValueAnimator jumps when Duration is set above API LvL 24
- How to avoid default initialization of objects in std::vector?
- second argument of the command line arguments in a format other than char** argv or char* argv[]
- How to improve efficiency of algorithm which generates next lexicographic permutation?
- Navigating to the another actvity app getting crash in android
- How to read the particular message format in android and store in sqlite database?
- Resetting inventory status after order is cancelled
- Efficiently compute powers of X in SSE/AVX
- Insert into an external database using ajax and php : POST 500 (Internal Server Error)
Popular Questions
- How do I undo the most recent local commits in Git?
- How can I remove a specific item from an array in JavaScript?
- How do I delete a Git branch locally and remotely?
- Find all files containing a specific text (string) on Linux?
- How do I revert a Git repository to a previous commit?
- How do I create an HTML button that acts like a link?
- How do I check out a remote Git branch?
- How do I force "git pull" to overwrite local files?
- How do I list all files of a directory?
- How to check whether a string contains a substring in JavaScript?
- How do I redirect to another webpage?
- How can I iterate over rows in a Pandas DataFrame?
- How do I convert a String to an int in Java?
- Does Python have a string 'contains' substring method?
- How do I check if a string contains a specific word?
Step 1. Loading Sketchup Models into Three.js
You can export from sketchup, for example as .obj, and load the model file into Three.js. There is an example in this SO thread. This will not transfer any animation or "on click logic" you mentioned though. I don't think there is a way to transfer this kind of application logic.
Step 2. Detect Click Events
Once you have imported your objects into a Three.js scene, you want to detect when the user clicks on an object. You can do this "picking" by casting rays into the scene. Three.js has a Raycaster class that does it. Here is an example for how to use the Raycaster.
Step 3. Animating Objects
Once you get the click event on one of your objects, it is time to animate it. There are two ways of animating objects in a scene: First, you can do rigid animation at the scene graph level: If you have for example a box, you can move it through your scene. The box moves, rotates, maybe scales, but it does not change its shape.
Then there is non-rigid animation which is what most organic things like human characters do. This type of animation is not done at the scene graph level, but by transforming invividual vertices. Here is an example for how to do this using vertex skinning.
Animation at the scene graph level is arguably simpler than skinned animation. You should probably focus on this simpler type of animation if you just get started.