how to do rotating meshes?
I readed the bzw-documentation, this documentation is just a joke, if u want to find out how to make meshes rotating.
The wiki is better, but still there misses many many information how to do it. After i fighted much over 1 hour (maybe i spended much more time) reading about it in the bz-forum and trying to code it i then just did give up.
If i have a mesh having this typical structure, how do i make it rotating in an easy way?
Code: Select all
mesh
name aMesh
vertex ...
normal ..
matref bla
face
vertices ...
normals ...
endface
end #end mesh
Code: Select all
mesh
name aMesh
vertex ...
normal ..
drawInfo
angvel 60 #should rotate 60 times in a minute
matref ...
end # drawInfo
face
vertices ...
normals ...
endface
end #end mesh
(Why the hell was bzflag coded like this that a simply rotation command inside the mesh isn't enough to make the mesh rotating? Technically a simple rotation command could be sufficient, cause the cpu would "simply" always calculate the new rotated coordinates of the vertices and normals of the mesh, thats all, cause openGl anyway does the 3d rasterisation. But instead doing this way, the users seems to need to generate a tripstrip or quadstrip and needs to code even more infos?)
What are the minimum infos that are needed inside the drawInfo to make a mesh rotating? I don't want to have unnecessary overhead.
Oh btw i don't know anything about:
lod, dlist, tristrip, quadstrip, ... I just know some few basics. I hope its not needed to know about it? Else i would be glad for a short and easy explanation.
Does the mesh needs first to be transformed into a quadstrip or a tristrip? If yes, how to do it? What else needs to be done step by step?
Isn't there an easy way to make any mesh a rotating mesh?