Giter Site home page Giter Site logo

Comments (6)

Mr-Bhardwa7 avatar Mr-Bhardwa7 commented on August 29, 2024 1

Hi @kalwalt, pleasure is mine.

Yes I added these 2 method in ARnft-threejs
Screenshot 2022-12-03 at 4 29 17 PM

and initialised the this.fontLoader = new FontLoader(); in the constructor.

and create a 3D text and try to add that text into the scene same as red cube in the example.
But it not load correct and if I change the position from center it lost from camera view.

Screenshot 2022-12-03 at 4 35 10 PM

@kalwalt can you please create a simple 3D text example using fontLoader?

from arnft-threejs.

Mr-Bhardwa7 avatar Mr-Bhardwa7 commented on August 29, 2024 1

Hey @kalwalt,
Thanks for the help.

I'm able to fix the issue which I was facing.
The problem was I didn't pass the correct font size as per the loaded font, which is the reason my text is not created smoothly.

I will create an addText function and raise PR 😌

from arnft-threejs.

kalwalt avatar kalwalt commented on August 29, 2024

Hi @Mr-Bhardwa7 welcome to @webarkit, I think you modified the ARnft-threejs code or am i wrong? At the moment i haven't an idea on what could cause theses issues, I should try the code but i have no so much time lately...

from arnft-threejs.

kalwalt avatar kalwalt commented on August 29, 2024

@Mr-Bhardwa7 i can add that method getFontLoader inside ARnft-threejs and if i have time maybe add a simple example, but no eta for this. 🙂

from arnft-threejs.

kalwalt avatar kalwalt commented on August 29, 2024

I will try to make a simple example based on this my little project https://github.com/kalwalt/kalwaltart.com/blob/master/interactivity/art_is_a_joke/index.html If you take a look at i used with AR.js but the Three.js version was very old, maybe the code has changed but i will see what i can do.

from arnft-threejs.

kalwalt avatar kalwalt commented on August 29, 2024

Hey @kalwalt, Thanks for the help.

I'm able to fix the issue which I was facing. The problem was I didn't pass the correct font size as per the loaded font, which is the reason my text is not created smoothly.

I will create an addText function and raise PR 😌

Ok thank you, PR is welcome! In case send it to the dev branch. 😄

from arnft-threejs.

Related Issues (18)

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.