Giter VIP home page Giter VIP logo

Comments (4)

awe-media avatar awe-media commented on July 22, 2024

Hi @angenieux - that's a nice easy one!

Just make sure you add transparent:true to your material block so it is transparent e.g.

awe.projections.add({
  id:'e',
  geometry:{ shape:'plane', width:252, height:100 },
  texture: { path: 'concept.png' },
  rotation:{ x:0, y:90, z:0 },
  material:{ color:0xFFFFFF, transparent:true },
}, { poi_id: 'east' });

from awe.js.

angenieux avatar angenieux commented on July 22, 2024

Thanks a lot to the team! Great Job.
Do you also have an example with TEXT display ?
I m looking for the mandatory parameters.
br

from awe.js.

awe-media avatar awe-media commented on July 22, 2024

Hi @angenieux checkout the example on the wiki at https://github.com/awe-media/awe.js/wiki/text-example

from awe.js.

angenieux avatar angenieux commented on July 22, 2024

Hello I've checked the example but without success.
I have converted a windows font .TTF into a .js with typeface.js and product a file "Arial_Regular.js".
"Arial_Regular.js" is located on the webserver at the same level as the HTML file

Here my code:
awe.projections.add({
id:'w',
geometry : { font_url: 'Arial_Regular.js', parameters:{height:5, size:10}, shape:'text', text: "your path"},
texture: { path: 'pilogo.png' },
rotation:{ x:90, y:0, z:90},
material:{ type: 'phong', color:0xFFFFFF}
}, { poi_id: 'west' });

Any idea ?

from awe.js.

Related Issues (20)

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.