- Joined
- Aug 6, 2011
- Messages
- 405
- Reaction score
- 2
- Points
- 18
For an upcoming project, I am working on the Orbiter-mesh importer. For some reason when I load the vessel ISS, I get the following:
All the textures and meshgroups appear to load, yet the ISS does not look like what it does in Orbiter. Any ideas?
---------- Post added at 01:12 PM ---------- Previous post was at 01:10 PM ----------
Nevermind, I figured it out. After further inspection of the scenario files, the "default" ISS I'm used to actually resides in ProjectAlpha_ISS. :facepalm:
Now onto implementing the NONORMAL flag
---------- Post added at 02:47 PM ---------- Previous post was at 01:12 PM ----------
So, I made the changes, and loaded the ProjectAlpha ISS, and it looks good now :thumbup:
However, there appears to be some small errors in the mesh file. For example, in ProjectAlpha_ISS.msh, the following appears at the bottom.
So a total of 37 (blank + 36) materials and textures are loaded. However, some mesh groups, like the following mesh group (I believe this is mesh group 49, on line 62089) header shows
that this mesh group is trying to use a material not defined. This initially caused my program to crash and burn, so I just set it to ignore any material/texture requested that is beyond the loaded textures. What should I do in this case? Just ignore it like I'm doing so far? :shrug:
Does anyone know how core Orbiter handles meshes when they refer to invalid materials/textures?
All the textures and meshgroups appear to load, yet the ISS does not look like what it does in Orbiter. Any ideas?
---------- Post added at 01:12 PM ---------- Previous post was at 01:10 PM ----------
Nevermind, I figured it out. After further inspection of the scenario files, the "default" ISS I'm used to actually resides in ProjectAlpha_ISS. :facepalm:
Now onto implementing the NONORMAL flag
---------- Post added at 02:47 PM ---------- Previous post was at 01:12 PM ----------
So, I made the changes, and loaded the ProjectAlpha ISS, and it looks good now :thumbup:
However, there appears to be some small errors in the mesh file. For example, in ProjectAlpha_ISS.msh, the following appears at the bottom.
Code:
MATERIALS 36
iss_dc
iss_dcs
d_ring
--snip--
MATERIAL iss_dc
0.588 0.588 0.588 1
0.588 0.588 0.588 1
0.898 0.898 0.898 1
0 0 0 1
MATERIAL iss_dcs
0.588 0.588 0.588 1
0.588 0.588 0.588 1
0.898 0.898 0.898 1
0 0 0 1
--snip--
TEXTURES 36
ISS_DC.dds
ISS_DCS.dds
--snip--
Code:
MATERIAL 38
TEXTURE 35
NONORMAL
GEOM 476 504 ; iss issred 40
Does anyone know how core Orbiter handles meshes when they refer to invalid materials/textures?