GithubHelp home page GithubHelp logo

meshwriter's People

Contributors

briantbutton avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

meshwriter's Issues

Support for meshwriter in angular and typescript

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.

ClickEvent - any suggestions?

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?

FYI: Change in babylonjs 6 slows down text mesh creation significantly

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.

Multiline text

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!

Error in readme document

I use
`//erro Will produce Object(...) is not a function
import { MeshWriter } from "meshwriter";

//success
import MeshWriter from "meshwriter";
`

full

`
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

Attempting CSG with a MeshWriter mesh causes WebGL errors during display

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 .

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.