camera issue internal view

gattispilot

Addon Developer
Addon Developer
Joined
Oct 17, 2007
Messages
10,661
Reaction score
4,466
Points
203
Location
Dallas, TX
Rather than steal a post I decided to start my own.

Any ideas on how to fix this. I prefer not to do a VC. I just want press F1 and get cockpit view.


Working on a Eagle from Space 1999. Making it UMMU capable. I have remade/made interior for the Eagle.

I understand that the way Orbiter renders, I get this:
eagledoor4.jpg
The eagle mesh is rendered through the module. To fix this I add ext_pass. But now it appears to clip.

eagle1c.jpg


I have adjusted the setsize and setclip radius to .01. Any ideas.
 
Do what I've suggested before, ie, create a separate cabin mesh. If you don't what to do a VC, set the cabin mesh to have MESHVIS_COCKPIT instead of the MESHVIS_VC that I had previously suggested.
 
I guess my question is will the animations (Doors)then work for both meshs. I would think not.
Do what I've suggested before, ie, create a separate cabin mesh. If you don't what to do a VC, set the cabin mesh to have MESHVIS_COCKPIT instead of the MESHVIS_VC that I had previously suggested.
 
I guess my question is will the animations (Doors)then work for both meshs. I would think not.
I have not coded any animations before so I am not sure. Couldn't you just create two animations, one for the external mesh and one for the internal mesh, and trigger them at the same time?
 
yes. I think that is the way to do it. From this external image you can see some bleed through. Notice the white piece just in front of the windows in the EAgle head. On the internal cockpit I got the same mesh and removed the outside pieces. I left the front black pieces as you could see them from inside looking out.
eaglemesh.jpg
 
Ok i have set the same mesh as cockpit. The reason is if I open the door and look out, I should see the outside pieces of the eagle. The external mesh is coded as external and extpass. it has the extpass to solve one rendering issue.
In cockpit view you still see the body through the module. so should I use extpass for the cockpit view also? The module is NOT attached.
eagleinterior-1.jpg


From the SDK:
Use the MESHVIS_EXTPASS modifier for parts of the vessel that are visible
from the cockpit, but are not close to the camera and may be obscured by
other objects. An example is the Shuttle payload bay, which can be covered
by payload vessels.

so it sounds like I need this. I also have this:

SetMeshVisibilityMode (AddMesh (oapiLoadMeshGlobal ("eagle2g")), MESHVIS_EXTERNAL | MESHVIS_EXTPASS); //Main ship mesh
SetMeshVisibilityMode (AddMesh (oapiLoadMeshGlobal ("eagle2g")), MESHVIS_COCKPIT); //Main ship mesh
SetClipRadius(0.01);


Not sure what I am missing?
 
Last edited:
Not sure why setclipradius isn't fixing this. I have it set to SetClipRadius(0.1). The mesh is set at MESHVIS_ALWAYS|MESHVIS_EXTPASS.

clip-1.jpg
 
Back
Top