io_three | Dev repos for the three.js threeio Blender exporter | Addon library
kandi X-RAY | io_three Summary
kandi X-RAY | io_three Summary
Dev repos for the three.js threeio Blender exporter
Support
Quality
Security
License
Reuse
Top functions reviewed by kandi - BETA
- Parse a pose action
- Find the channels in the given action
- Normalize a quaternion
- Return the length of the quaternion
- Compute faces
- Draws an error message
- Return all the normals of the mesh
- Create a bytecode
- Generate a unique identifier
- Registers the texture
- Initialize the object
- Write scene to file
- Return the rest of the bones
- Prepare MESH objects
- Update the map
- Detect mesh points in the scene
- Count the number of faces
- Return a list of vertex groups
- Determine common attributes
- Return bones and pose map
- Format the scene data
- Return node type
- Exports the current scene
- Return a list of skeletal animations
- Compute material materials
- Parse a REST action
io_three Key Features
io_three Examples and Code Snippets
Community Discussions
Trending Discussions on io_three
QUESTION
You can easily store a BufferGeometry as json and load it using BufferGeometryLoader:
...ANSWER
Answered 2019-Apr-12 at 16:16THREE.BufferGeometryLoader
is only able to load a single instance of BufferGeometry
per request. If you don't want to implement a custom solution, you have to load each geometry with a separate call of load()
. So something like:
QUESTION
I'm trying to import a 3D model encoded as json file using the respectively "JSONLoader" three.js function
Here's the code to load the model
...ANSWER
Answered 2018-May-23 at 19:16I had the same error, which seemed to arrive when I upgraded to Three.js 0.92, although looking at the source code it doesn't look like anything changed recently in jsonLoader.
After some investigation the issue fixed itself once I removed some whitespace from the end of my json file (which was generated with the Blender plugin).
QUESTION
looking at the json file of a 3d model i saw this line
...ANSWER
Answered 2018-Apr-13 at 08:02there are numbers less than 0 and greater than 1. I thought uv measurements should not be less than 0 or bigger than 1.
That is not the whole truth. UV-coordinates can be arbitrary numbers, in the end its up to the shaders to interpret them appropriately. In three.js there are parameters texture.repeat
, texture.offset
, texture.center
and texture.rotation
(see https://threejs.org/docs/#api/textures/Texture) that will be used to convert the values from the uv attribute to the values used for texture-lookups. By default, the values are used as they are.
What finally happens for values <0 and >1 depends on the settings for wrapS and wrapT (also documented in https://threejs.org/docs/#api/textures/Texture). For instance out of range values are used for texture-tiling if wrapS/T are one of the reaeat-types.
Where is the error? They should be converted?
So there may not even be an error in this case. The numbers could just indicate an intended tiling. But to change it you need to go to where the model came from.
QUESTION
I am new to threejs and I wanted to know if I can add a random jpg picture as my texture. I figured out how to add materials to my model, but I cant really figure out how to add texture. This is a spinet of my json model and my code for changing texture:
...ANSWER
Answered 2018-Apr-01 at 07:27You have to add a .load to your new THREE.TextureLoader().load("name of your texture.jpg")
.
QUESTION
I'm trying to export a json from blender and render it using three.js. I used the following code as a base: https://github.com/jpetitcolas/webgl-experiments/tree/gh-pages/01-rotating-mesh
When I start the code as it is, it works great. However when I try to export the same blend object using the blender exporter, three.js ignores the Materials. See the following image:
the original export in the example is correct:
I use the following export settings:
Here is the exported json, which doesn't work: https://pastebin.com/dWWWT2yG
...ANSWER
Answered 2017-Nov-03 at 20:55The problem wasn't the export, but the configured light. I added proper light spots and it worked.
QUESTION
I have just finished a small blender animation where a cube fractures (using cell fracture) and then reforms by putting the animation in reverse.
The following is an example of what I am referring to:
In my version of the previous example, I have put a material on all of the fractured objects. However, when I use the three.js exporter for blender 2.73 the only code I get in the JSON file is the following:
...ANSWER
Answered 2017-Sep-14 at 02:34The default settings for the thrre.js exporter will only export the one active object.
When you export, on the left there are options available to adjust the export. You will find one that should enable exporting the whole scene.
QUESTION
Having a problem loading the JSON file produced by the three.js exporter for Blender, that comes with three.js r.86.
Setup done without issues. To test this exporter, I open Blender, and I use the untitled Blender file that contains a cube:
Exporting it without any adjustments, it produces the following JSON file:
...ANSWER
Answered 2017-Jun-27 at 22:27try changing the type in apply modifier to geometry as opposed to buffergeometry and see if that helps.
QUESTION
I'm trying to import a Blender-designed mesh into a three.js project.
I've added the io_three addon and I can now export json files for Blender.
When I try to load the mesh (with a THREE.JSONLoader) I get an "Uncaught TypeError: Cannot read property 'length' of undefined" from line 684 of three.min.js - which sounds to me like an array is going undefined.
I have read that, in Blender, the 'face materials' check box is supposed to be checked in the three.js exporter but for me that option is greyed out. Also I've noticed that, in the Geometry section of the three exporter, the option to export faces is unchecked and greyed out. I suspect this is the problem, but why am I not able to check these check boxes?
Does anyone have any ideas why Blender might be preventing me from enabling the 'face materials' and 'faces' options in the three.js exporter?
Edit
For the sake of completeness, here's the code I'm using to load the mesh:
ANSWER
Answered 2017-Jun-27 at 16:02In cube.json is declares its type as "BufferGeometry"
if you swap THREE.JSONLoader for THREE.BufferGeometryLoader it works fine
QUESTION
I've been trying to follow a tutorial at unboring.net on how to export animated meshes from blender to threejs. Everything works fine when i use the eva-animated.blend file provided by the writer of the tutorial. However, when i attempted to create my own mesh and export it to threejs, the result is in the wrong format and the bone data seems to not be included.
My file: monkey.blend. Url: https://drive.google.com/file/d/0B-4iDXLNwo9_WmtmSXBEWVhBa2s/view Output format:
...ANSWER
Answered 2017-May-15 at 11:55I tried with your file and I got the bones
Are you exporting using the BufferGeometry
type or the Geometry
?
I'm using the Geometry
type and I'm getting the bones
However I didn't test the animation, I only opened the file
QUESTION
I've installed Blender THREE.js export plugin and exported my model as table.json, also checked "Face Materials" option also.
But when I loaded my model from THREE.js, it fails with both ObjectLoader and JSONLoader.
In ObjectLoader, it saids:
Uncaught TypeError: Cannot read property 'type' of undefined
In JSONLoader, it saids:
Uncaught TypeError: Cannot read property 'length' of undefined
Exported json looks like this:
...ANSWER
Answered 2017-Apr-17 at 03:37i usually get those errors when i make a mistake exporting. Watch this https://www.youtube.com/watch?v=Pp02jQp20is. make sure you have changed the type to geometry instead of buffergeometry. Its hard to tell the problem without seeing the relevant code and a screenshot of your export.
Community Discussions, Code Snippets contain sources that include Stack Exchange Network
Vulnerabilities
No vulnerabilities reported
Install io_three
Support
Reuse Trending Solutions
Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from over 650 million Knowledge Items
Find more librariesStay Updated
Subscribe to our newsletter for trending solutions and developer bootcamps
Share this Page