Wednesday, March 31, 2010

Model Editor finished.

Now, models can be aggregated using the GroupModelEditor. This will allow to add and manipulate complex models into the scene.

Here the editor :


This editor allow to aggregate severals md2 models into one entitie.

Each "sub-model" have a field called type. This type can be associated to a custom object class derived from GLModelObject.

After that, each sub-model can be handled one by one.

Here an example :




NOTE : It's more efficient to move a static object with code than using Model animation. Static objects are loaded into VBO. If you rotate a VBO object, there is few datas sent into the bus. Whereas if animations are used, each vertices are sent at each render(only if modified), into the bus. On PC it's less important as buses (AGP or PCI-E) are very fast. But on mobile device, buses are slower.

In the near futur, I will make scriptable the above code, maybe with Lua. It will allows non-programmers to create a scene, and make it "alive!"

Thursday, March 4, 2010

All effects

After added ground reflection :



All contacts are loaded from Android phonebook. The thumbnails comes from phonebook too.