Login Register

bookstack's blog

Would you like a slice of pie?

Pie3D demo
All businessman are crazy about the pie chart. Here is Pie3D powered by dojox.gfx3d. The interface for the end-user is pretty similar with dojox.chart.bar3d: just add the data via addSeries, set the light, then call render, boo, you are all set.

Bar3d, proudly powered by dojox.gfx3d

Bar3d demo One picture is worthy two thousand words. The idea is inspired by the Microsoft Excel's canonical bar3d graphics. Features include:
  • Multiple-series are supported
  • Lighting
  • Rotation, of course you can, but you need to be aware how difficult to find the right angles.
  • Animation, check calibration section
  • User-interactivity, theoretically if we could figure out how to interpret the mouse movement

dojox.gfx3d alpha2 released

This release targets to the final review of GSoC, more test cases are developed to fix the potential bugs in alpha1 release.
The following bugs are fixed:

  • The matrix operations in OpenGL-like coordination system are verified, small bugs fixed.
  • Fix the view bug in BSP
  • Fix typo in toStdFill.

Improvement includes:

  • Build dojox.gfx3d against the latest dojo TRUNK, r10315

gfx3d alpha1 released

This alpha release is a non-embarrassing release after huge refactory, ready for the community to review and start commit it to the trunk. This release makes the following major changes:

  • Take OpenGL coordination as the default, i.e the X-axis starts
    from left to right; the Y-axis starts from bottom to the top; the Z-axis starts
    from inside to outside of the screen; the orientation is in the left-bottom of the viewport.
  • Add OpenGL-like functions: createTriangles(.., "strip"), createTriangles(.., "fan"), createQuads(.., "strip"), ...

Let there be light

Lighting model used in dojox.gfx3d is merged from Eugene' s 2D lighting utility library. We take a simplified Phong reflection model to gear towards the vector graphics:
  • All light sources are infinitely far away
  • No shadow support
  • Second-order reflections is not accounted
Cylinders in sunshine

Moving forward: Cylinder

Cylinder is much more difficult to implement than the other polygon-based 3D objects. Polygon is still polygon after 3d projection, but the circle is mapped to ellipse and the we need to draw the the outline of surface by all means.

No longer look through the wall

In last two weeks, I was bothered by the visibility problem of dojox.gfx3d library. Eventually, I decided to review the Computer Graphics 101, and checked out Fundamentals of Computer Graphics, second edition from the library.

Midterm report

During the midterm evaluation, dojox.gfx3d made some progress in the following approaches:

The prototype of dojox.gfx3d

I made a huge mistake on the last post, Yet another cube. In that post, I attached a quick-n-dirty implementation of dojox.gfx3d that work in Firefox only. Unfortunately, no source code is attached except gfx3d.js and a symbol link to my home directory. I untared the tar ball, and it worked, of course it just linked to my working copy! Here is the current snapshot.

Documentation update

Thanks to Jeff for his comment on the documentation. I am really embarrassed for my broken grammar, misused syntax. So I revise this documentation and integrate the experience on implementation of the cube.

You may download the PDF, DVI and LaTEX source from my website.

Syndicate content