Within a vessel DLL, is it possible to add a mesh for the vessel so that it is initially invisible? AddMesh() causes the mesh to be rendered immediately and before the DLL has had a chance to set the correct animation states. This is causing a very brief flickering as the unset anims are shown, presumably for one sim frame.
Here is the background: I am coding a DLL for Shenzhou. The DLL animates the unfolding solar panels on the service module. I then jettison the service module from the command module by spawning it as a new vessel and passing it the current anim states. The SM DLL loads its own mesh with AddMesh, rendering the vessel. The anims are then defined using the meshindex returned from AddMesh and set using the passed parameters from the parent vessel. In the time between adding the mesh and defining the anims, the vessel is (very briefly) rendered with its anims reset - FLICKER!
Anyone know a way around this? Can AddMesh be forced to set MESHVIS_COCKPIT or something?
s2k1
Here is the background: I am coding a DLL for Shenzhou. The DLL animates the unfolding solar panels on the service module. I then jettison the service module from the command module by spawning it as a new vessel and passing it the current anim states. The SM DLL loads its own mesh with AddMesh, rendering the vessel. The anims are then defined using the meshindex returned from AddMesh and set using the passed parameters from the parent vessel. In the time between adding the mesh and defining the anims, the vessel is (very briefly) rendered with its anims reset - FLICKER!
Anyone know a way around this? Can AddMesh be forced to set MESHVIS_COCKPIT or something?
s2k1
Last edited: