TE
TechEcho
Home24h TopNewestBestAskShowJobs
GitHubTwitter
Home

TechEcho

A tech news platform built with Next.js, providing global tech news and discussions.

GitHubTwitter

Home

HomeNewestBestAskShowJobs

Resources

HackerNews APIOriginal HackerNewsNext.js

© 2025 TechEcho. All rights reserved.

WebGL Tutorial: Rendering Wavefront 3D Models

44 pointsby chinedufnover 8 years ago

3 comments

hacker_9over 8 years ago
<i>&quot;Right now we have an f16-model.obj file. This file is a text file that contains data about our model’s vertices. In order to make use of this data, we parse it into more readily accessible structure and store it as JSON.&quot;</i><p>Wait what? This is completely redundant and will negatively impact performance and memory.
评论 #13152128 未加载
评论 #13153146 未加载
评论 #13152764 未加载
评论 #13152265 未加载
评论 #13154711 未加载
tinctureover 8 years ago
If you&#x27;re already familiar with Javascript, and you want to learn WebGL, I recommend just diving into THREE.js instead.<p>The problem with this tutorial is that almost all of it is hidden behind an opaque &quot;loadWFObj&quot;, so you don&#x27;t get the critical aha moments of &quot;wait so the model is just a bunch of 3d triplets?&quot;, &quot;whoa every camera is just a 4x4 matrix you multiply by&quot;, and &quot;shaders are a C program that runs on a pixel&quot;.<p>I promise you&#x27;ll pick up all of these things naturally by fiddling around with THREE.js. But, you probably won&#x27;t get there by copying a WebGL context initialization example that does everything interesting inside an opaque library.
评论 #13152210 未加载
评论 #13153245 未加载
hccamposover 8 years ago
This might be useful for people who want to get started with WebGL and web-based 3D engines:<p><a href="https:&#x2F;&#x2F;playcanvas.com&#x2F;" rel="nofollow">https:&#x2F;&#x2F;playcanvas.com&#x2F;</a> <a href="http:&#x2F;&#x2F;babylonjs.com&#x2F;" rel="nofollow">http:&#x2F;&#x2F;babylonjs.com&#x2F;</a> <a href="https:&#x2F;&#x2F;threejs.org&#x2F;" rel="nofollow">https:&#x2F;&#x2F;threejs.org&#x2F;</a> <a href="https:&#x2F;&#x2F;github.com&#x2F;GooTechnologies&#x2F;goojs" rel="nofollow">https:&#x2F;&#x2F;github.com&#x2F;GooTechnologies&#x2F;goojs</a> <a href="https:&#x2F;&#x2F;whsjs.io&#x2F;#&#x2F;" rel="nofollow">https:&#x2F;&#x2F;whsjs.io&#x2F;#&#x2F;</a>