briantbutton / meshwriter Goto Github PK
View Code? Open in Web Editor NEWBabylon Mesh Writer
License: Other
Babylon Mesh Writer
License: Other
I am not able to use meshwriter inside angular framework.
It Shows an error
ERROR TypeError: meshwriter__WEBPACK_IMPORTED_MODULE_3___default.a.MeshWriter is not a function.
I feel MeshWriter should be added in Babylon namespace(Babylon.d.ts).
FYI,
Babylonjs-GUI is also an extension that works good inside angular framework when installed as npm package.
if i have several meshwriters in a babylon scene, i'd like be able to click on one and know which one produced an event? any ideas as to what to try please?
The new babylonjs 6 version introduces a addQuadraticCurveTo method which uses as default 36 segments instead of 6 in your code. In my case this slowed downed text creating by 15x. Maybe add another option to pass in the number of segments, i.e.
"numSegmentsForQuadraticCurveTo": "6"
which the library can pass into the method. In the meantime, I just nulled out the original method to force using your version.
MeshWriterMethods.Path2.prototype.addQuadraticCurveTo = null; this.meshWriter = MeshWriter(this.scene, { scale: 1.00, methods: MeshWriterMethods });
BTW, thanks for a great library.
Hello,
I'm trying to add a new line to textMesh, but I don't have that option. Can anyone share information about this problem?
Thanks in advance!
I found this library doesn't support chinese characters, Will it to have this feature?
I use
`//erro Will produce Object(...) is not a function
import { MeshWriter } from "meshwriter";
//success
import MeshWriter from "meshwriter";
`
`
import MeshWriter from "meshwriter";
// Put them in an object
const methodsObj = {
Vector2,
Vector3,
Path2,
Curve3,
Color3,
SolidParticleSystem,
PolygonMeshBuilder,
CSG,
StandardMaterial,
Mesh,
};
const Writer = MeshWriter(scene, { methods: methodsObj });
`
reference
Hi. I am looking to use MeshWriter letterforms to etch a message in a block mesh using Babylon's built-in CSG.
I am able to get CSG subtraction to function well with complex extrusions made with MeshBuilder.ExtrudeShape, but all attempts to do the same with MeshWriter extruded letters causes various WebGL errors, such as "GL_INVALID_OPERATION: Vertex buffer is not big enough for the draw call" on Chrome and "WebGL warning: drawElementsInstanced: Indexed vertex fetch requires 8756 vertices, but attribs only supply 2718." Outside of this CSG use, the MeshWriter letters display fine.
Should I expect this to work, or are there special aspects of MeshWriter meshes that prevent this use? I am about to write a bunch of code to hand-check the letter meshes for non-manifold elements and to do other well-formedness checks, but thought I would post here briefly in case I can get some pointers.
I can provide example code, if you'd like...
Thanks very much,
John .
like title
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.