lundi 22 février 2010

Week 19 [15/02 to 21/02]

Work Of The Week



The work was focused on two main points: the lightning and picking problems. The picking was solved, for a single picking action. But on the lightning side, the problem is still there. Few part of the lightning problem were solved, like the light colour is now applied correctly. But there is still a problem of lightning and shading, that makes the mesh looks either too dark or too clear.


Total worked: 12 hours 30.



Lightning



More reading (or re-reading) were done, to try to find the possible trouble in the configuration of the light. First of all the GL_NORMALIZE was not enabled, creating distortion in the normals (the mesh are scaled to fit in a single unit of space). Then some modifications were made on the material of the mesh, in order to have a result colour from the light's colour and the mesh's one. With these modifications the light intensity seams to reduce, creating almost good results with the sphere mesh, but still strange one with the face.

A new option appeared for the shading view: enabling or not the culling (hiding the backward looking faces) resulting in better rendering of full meshes (like the sphere) or even the face (if some part of the mesh can't be seen they are not drawn).


Results on Windows 7 (home)



Results on Windows XP (university)




Time worked:
5 h

Picking



The work on the picking was simply to create a "pikcing mode" that will allow the user to select vertices without moving the view. The picking mode reveals the vertices (in any views). Some options were added to the selection, like cleaning it (removing all points in it).

Saving the selection or the whole mesh is now possible, as the new two options are present in the menu.

Finally a "picking precision" was, more or less, started, and then aborted. The idea was to allow the user to select more than one point by enlarging the "selection rectangle". The solution was too difficult to use (as a user) and did not have good results.

Time worked:
7 h 30

Information And References



No new document nor references were used this week, as it was mostly to continue the previous work.




Next Week prevision



As the picking problem is solved, it can now be improved. But as my meeting with Eyad was cancelled (snow on Friday), some more efforts will be put on the lightning solving and the picking improvement.

Aucun commentaire:

Enregistrer un commentaire