GithubHelp home page GithubHelp logo

alibaba / g3d Goto Github PK

View Code? Open in Web Editor NEW
1.1K 62.0 111.0 2.47 MB

A pure 3D render engine compatible with webgl, running both in browser and gcanvas.

Home Page: https://alibaba.github.io/G3D/

License: Apache License 2.0

JavaScript 28.79% HTML 5.06% GLSL 5.25% CSS 3.80% TypeScript 57.09%
webgl gcanvas hybrid weex react-native 3d g3d

g3d's Introduction

G3D

G3D is a javascript 3D engine based on WebGL. Compared with other WebGL 3D engines, G3D is a pure render engine, which means it depends on no DOM APIs but just a canvas(or canvas-like) object. This feature makes it possible that G3D works not only in browser but also in some hybrid environments like GCanvas (Weex or ReactNative).

See website for more information.

G3D

G3D 是一款基于 WebGL 的 javascript 3D 绘图引擎。与其他的 WebGL 3D 引擎相比,G3D 是更加「纯粹」的渲染引擎,也就是说,它完全不依赖任何 DOM API,而是仅仅依赖一个 canvas 对象(或者类 canvas 对象)。该特性使得 G3D 不仅能够运行在浏览器环境中,也能够运行在一些非浏览器的 js 终端环境下(hybrid 环境),比如 GCanvas 环境(基于 Weex 或 ReactNative)。

访问网站以了解更多信息。

g3d's People

Contributors

alibaba-oss avatar jay7n avatar shejijiang avatar xieguanglei 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  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  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  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 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  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  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

g3d's Issues

support webgl2 in roadmap or not?

@ALL

const gl = this._gl = canvas.getContext('webgl', { antialias: true });

this library is using webgl1 at this moment.

Does it support webgl2 in the road-map or not.

static createSphere(scene, radius, widthSeg = 16, heightSeg = 12) {

MeshBuilder support some basic geometries. Will it support more geometries in road map or not?

const stlParser = {

support more models such as step, iges, loading?

请教一下,node 环境下有办法弄出 canvas 对象吗

其实和本项目没太大关系,但始终没找到实现它的办法,所以舔脸来求助了,嘤嘤嘤。

就是想在 node 环境中画图像生成图片这种,我只熟悉 canvas;
但这时候又没有 canvas 对象,也不太清楚后端普遍是怎么做到的。
所以大佬能否给点思路,如何能完成该需求,不考虑 canvas 也行,感恩的心~

Roadmap for post processing support

Hi, this library looks neat and promising!

On Android and iOS there are libraries like GPUImage that customize fragment shader for realtime image / video processing, with WebGL I can see GLFX and Seriously.js while they're somewhat old. Three.js also supports similar feature. Wondering any plan for this case?

Thanks.

framebuffer not ready

image

        g3d_test() {
				/*获取元素引用*/
				var ganvas = this.$refs["gcanva"];
				/*通过元素引用获取canvas对象*/
				var canvaObj = enable(ganvas, {
					bridge: WeexBridge
				});
				console.log(canvaObj)
				console.log(G3D.Engine);
				
				const engine = new G3D.Engine(canvaObj);
				console.log(engine)
				
				const scene = new G3D.Scene(engine);
				console.log(scene)
			},

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.