Login Register

dojo.gfx.3d SoC Project

My GOD, Array is so slow... What should I do?

Hi all, I was testing something interesting fact... Maybe you are JS-Expert who likes to use Array a lot! I hope after reading my blog... You changed your coding to use less Array... Why?

Canvas3D Cool!!!

The time when I was applying to GoSC for DOJO, of course it is important to do research around the project topics. At that time, my computer was very very old (it is 4 years old), whatever I do multitasking, it always sounds like giving up because of too many things to do... LoL poor little box...

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.

Syndicate content