Examples and documentation for TroisJS
Main repo : https://github.com/troisjs/trois
๐ Examples and documentation for TroisJS โจ
Home Page: https://troisjs.github.io
Examples and documentation for TroisJS
Main repo : https://github.com/troisjs/trois
On this documentation page, the link to the source leads to a 404
Keeping a running list of items I've needed to look up consistently:
No action needed on these right now, just wanted to note them so we can make this info easy to find. Feel free to add more!
Based on these examples - import models, events, etc
It seems like some kind scripts get blocked in Brave on iOS. I am aware that Brave on iOS uses Safari under the hood, but on Safari (iOS) the demos work. Additionally it seems like the amount of blocked scripts on desktop Brave seems to be different. This seems like a Brave issue with the blocking but I thought you might be interested to know ๐
Keep up the good work! ๐ฅณ
Hi @klevron,
When reading the documentation, it is written that the resize props of the renderer has a default value set to "window":
But looking at the source file, it seems to be "true", and not "window". If I am not mistaken, that typo might need to be fixed on the guide.
Thanks!
/CN
How should i export a scene with troisjs
On this page, the test.glb file in the example at https://github.com/troisjs/troisjs.github.io/blob/master/src/components/models/GLTFExample.vue appears perfectly for me. However, I only get a black screen with my own glb files but yours works:( Yet, my glb file is visible in 3D viewers. What setting changes should I make?"
<template>
<Renderer ref="renderer" antialias :orbit-ctrl="{ enableDamping: true }" resize>
<Camera :position="{ x: 1, y: 0, z: 0 }" />
<Scene>
<AmbientLight></AmbientLight>
<GltfModel src="/assets/models/profile.glb" />
</Scene>
</Renderer>
</template>
<script>
import {
AmbientLight,
Camera,
GltfModel,
Renderer,
Scene,
} from 'troisjs';
export default {
components: {
AmbientLight,
Camera,
GltfModel,
Renderer,
Scene,
},
};
</script>
I attached my glb file with zip:
profile.zip
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.