1 / 9

CSPC 352: Computer Graphics

CSPC 352: Computer Graphics. WebGL and Three.js. Phew. Lot’s of work to create a WebGL program, setting up buffers and shaders , etc . Can we do cool stuff with much less code?. Three.js. Features:. Three.js. Written by Mr.doob aka Cabello Miguel of Spain

jorn
Download Presentation

CSPC 352: Computer Graphics

An Image/Link below is provided (as is) to download presentation Download Policy: Content on the Website is provided to you AS IS for your information and personal use and may not be sold / licensed / shared on other websites without getting consent from its author. Content is provided to you AS IS for your information and personal use only. Download presentation by click this link. While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server. During download, if you can't get a presentation, the file might be deleted by the publisher.

E N D

Presentation Transcript


  1. CSPC 352: Computer Graphics WebGL and Three.js

  2. Phew. • Lot’s of work to create a WebGL program, setting up buffers and shaders,etc. • Can we do cool stuff with much less code?

  3. Three.js • Features:

  4. Three.js • Written by Mr.doob aka Cabello Miguel of Spain • Perceived leader of WebGL frameworks

  5. Getting Started • A document to draw on:

  6. Three.js basics • To display something with Three.js we need: • A scene • A camera • A renderer

  7. Adding geometry • Now we need to add an object to the scene:

  8. Render the scene • Result

  9. Import/export • What object format to use? • Creating something new? Try Blender exporter • Want to convert existing objects? Try OBJ format • Collada: support not very mature

More Related