Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

What is the best online resource for 3D rendering in JavaScript? [closed]

First a little intro:

Last year i wrote this http://dragan.yourtree.org/code/canvas-3d-graph/

Now, i want to make complete rewrite of it, because that old version have some limitations, for example: sometimes it happens that bars are not visible, because they are drawn one behind another.

In this old version there is no real 3d, just bunck of 2D lines, which emulate 3D.

Now, what i want is to go to full blown 3D scene, i want to keep all the objects in memory, and add some kind of 3D navigation buttons that will enable users to rotate whole scene on all 3 axis, and zoom camera in and out.

I've already decided that i will use http://sylvester.jcoglan.com/ for vector/matrix stuff, but i'm still unable to find good tutorial for 3D. There are tons of texts on the Internet, most of them date from the 90s, an are incomplete or written really bad.

So, my question is: what is the best online resource/tutorial that will enable me to write my own JS 3D engine from scratch.

It should cover all relevant topics:

  • vectors
  • matrices
  • objects
  • camera
  • scene rendering
  • lighting
  • rotating objects on scene
  • moving the camera

etc.. (i'm fairly familiar with first two)

Thank you for your time.

like image 481
kodisha Avatar asked Dec 19 '08 07:12

kodisha


People also ask

Is JavaScript good for 3D?

js. Three. js is one of the most popular JavaScript libraries for creating and animating 3D computer graphics in a web browser using WebGL. It's also a great tool for creating 3D games for web browsers.

Can we use JavaScript to render 3D shapes in Web browsers?

js is a library that we can use to render 3D graphics in the browser. The whole thing is in JavaScript, so with some logic you can add animation, interaction, or even turn it into a game. In this tutorial, we will go through a very simple example.

What is JavaScript 3D library?

ThreeJS is a library in Javascript, created by Mr. doob, that allows you to manipulate 3D objects directly in the browser. What you have to understand is that ThreeJS, via Javascript, allows you to use WebGL in an HTML5 canvas. WebGL is a Javascript API that allows you to create 2D and 3D graphic rendering.

What program do you use for 3D rendering?

3ds Max is one of the popular rendering software that is industry standard. Though it has a steep learning curve, you can speed up the learning curve using the many available tutorials online. 3DS Max is a user-friendly and simple-to-learn software program. It's compatible with V-Ray and Corona Render.


1 Answers

If this is specifically for a JavaScript related project then I understand but if you are simply doing this to grasp the basics of 3d rendering there might be more mature platforms out there for you.

In any case..

Links that might be useful to your learning:

  • Prototyping A Simple 3d Renderer In JavaScript
  • 3D Basics - A Primer
  • The JavaScript Raytracer
  • JavaScript 3D Renderer

Also, some fun JavaScript 3d examples:

  • Rotating 3D Cube in JavaScript
  • Wolfenstein 3D in JavaScript
  • Anything else in this SO Question: Stunning graphic effects with JavaScript?
like image 66
mmcdole Avatar answered Oct 05 '22 17:10

mmcdole