2011年10月4日 星期二

Work Journal 10/04

[Finished]
1. Place of indication selection system. (Interactively select the place you want to highlight)

[Bug]
1. The mini lights don't work along with global light sources.
2. Some selected place don't have light emitted there.

2011年10月3日 星期一

Project Journal 10/03

[Finished]
1. I've finished the new model loading mechanism. I use the utf8 model format from the google group. It works pretty good.
2. New scene management utilities are installed named "spidergl." It provides the basic animation like function: load, update, draw.

[To Do list]
Since I've changed pretty much the whole architecture, there are many things need to be fixed.

1. A strong aliasing shows up in the model.
2. Lighting.
3. Scene control (like where to add lights and where to add new objects.)
4. Draw functions.

2011年10月1日 星期六

Project Journal 10/01

[Finished]
1. Per pixel shading
2. OOP design

[To DO List]
1. Scene graph
2. Model importing
3. Multiple light sources

Nice website for normal matrix

When importing an object, both the vertices and normals are defined in Object Space. However, in the shader, if we want to do the calculation in camera space, we multiply the vertex with the Model View Matrix (M) to make it from object space to world space but we multiply (M^-1)^T
with the normal to make it from object space to world.

This article is pretty clear why there is the difference.

2011年9月29日 星期四

Work Journal 9/29

I embedded the light under 1 unit along the normal direction under the surface. The outcome should be several disk light sources embedded under the mesh.

[To Do]
1. Control the scattering and absorption and the intensity of the light.
2. Fix the brain mesh.
3. Test several light sources


2011年9月27日 星期二

Work Journal 9/27

I have tried several ways to make to media glows from the inside but not too transparent. However, if I set the scattering and absorption rate too high, the light can't come out.

[Bunny Model]


















[Brain Model with External Lighting]


















[Brain Model with Internal Lighting]


















[To do Next]
*a bug when I place the square light inside. (Didn't occur when using the bunny model.)


















* Find out a proper parameter to see as a light in fog.

2011年9月26日 星期一

Work Journal 9/26

[Might be problematic]
BVH (if too many triangles or the objects are scattered everywhere, it might be a problem)
Photon mapping (due to the limit of the memory, if too many photons are used, it will crash)

[Finish Today]
The "Media" object now is fully controllable.
High scattering, high absorption will result in close to diffuse objects.
Low scattering, low absorption will give more translucency.

[Next goal]
Multiple light sources inside the object.
I'm not sure how it will look like. I will set the scattering and absorption low to make the light from inside can go out.
No clue if it will look like the wax object in the reference picture.

One more thing, set the reflection to white might be working without global tone mapping.