Hi guys, I have question like the title. Do we have any way to animate geometric grasses, trees without the skeleton? Because I have a game server with client using Orge3d engines to load Scenes, terrain, sky, characters. So I want to make the grass waving to look more realistic, but I have no experiences. I did import the mesh file below in XML structure. And the video that I attached will show the exactly the Scene from the game that I want to make the grass waving like that. Can you guys help me get some way to make It through.
The video is marked as private, which means only your account can see it.
Waving of grass can be done from code using a manual object to render the grass/vegitation/trees instead of a mesh (and then making the waving per vertex).
It can also be done using a shader, but that will be harder if the grass is not at the same height in Y, then you would have to someway in the shader know which vertex it is and hardcode only those to move (which works in GLSL using gl_VertexID, example on how to use it here: https://paroj.github.io/gltut/Illuminat ... %2013.html).
In my game, I use a manual object to render and wave the grass, but this means each grass straw is dynamically created from code, and not from a mesh.
But for other vegetation (like trees and bushes) I predefines meshes that has a bound skeleton to them. Then I attach physical objects to each joint in them and move those joints like the physical objects do. That way they can also interact with physical impulses (like explosions or players walking through them).
So for my game, the game engines that I have was closed-source, but they was built in Ogre3d, and all the grasses were load from meshes. So that means I cannot re-build the game engines even adding dynamic lib. So do we have any way to reverse the *.dll of Ogre into *.cpp that we can look at the code inside?
This is the link of my game engines, you guys can take a look:
As you guys can see how the grass waving and the water look so real in the video that I attached below. And for more, I did attach the link of the game engines that they was used in the game, and some document about the code configuration that they make the grass and water look real. So can you guy help me figure out how can I import that in to my game engines that I attached in the previous post above.
And this link is these 2 program file that make grass waving I think. The program loads the hlsl file and then they will use the vertex_program WaveGrass_VS into the material file:
So my game engines is a remake version from the new game engines above. In the new version they already updated the Ogre lib. So I want to load the program file and all the source, but I could not use the new version of Ogre source, that was not fit with my engines.