Hey everyone,
This seems to be an obvious question, in reality I'm looking for the best way to apply Ogre3d material to a single voxel. Currently my terrain is generated using polyvox, then it is rendered using small chunks, each voxel chunk ( block of many voxels) is transformed into a mesh object and then assigned the global terrain Ogre's material. Would transforming the voxel into a single mesh object and assign the ogre material to it be the best way to do it? I'm afraid of having so many objects ( in this case voxels) witch will probably cause a performance hit.
The main result that I'm trying to achieve is adding water, I can, using shaders, transform a voxel into transparent water looking, however I'm still trying to find the best way to assign an Ogre material to a single voxel.
|