Buck Rogers
Major Spacecadet
- Joined
- Feb 26, 2013
- Messages
- 359
- Reaction score
- 278
- Points
- 63
still using 3.1.2, any advantages in upgrading (for Orbiter devs)?
Last edited:
How can I get Blender to export vertex normals texture uv coordinates for a mesh group without texture?
I'm trying to get HUD, MFDs working and figured out the problem is that the display panel is only a material and blender exports it without uv coord., (only 6 and not 8 entries in the vertex list) which is correct, but HUDs etc. need them. I've tried adding a uv map, use nodes image, but it either exports without or an error due to missing tex. file?
I've done this in 3dsmax and not had this issue. Does anyone have any experience making HUDs, MFDs in Blender?
bool HUD::handle_load_vc(bco::vessel& vessel, int vcid)
{
// Register HUD
static VCHUDSPEC huds =
{
1, // Mesh number (VC)
bm::vc::HUD_id, // mesh group
{ 0.0, 0.8, 15.25 }, // hud center (location)
0.12 // hud size
};
oapiVCRegisterHUD(&huds); // HUD parameters
return true;
}
LABEL HUD
MATERIAL 4
TEXTURE 4
FLAG 7
GEOM 4 2
-0.0634 0.8619 15.2558 0.0000 0.0000 -1.0000 0.0001 0.0004
0.0633 0.8619 15.2558 0.0000 0.0000 -1.0000 0.9996 0.0001
-0.0634 0.7352 15.2558 0.0000 0.0000 -1.0000 0.0004 0.9999
0.0633 0.7352 15.2558 0.0000 0.0000 -1.0000 0.9999 0.9996
...
... <MATERIAL 4>
MATERIAL VC_100_Cockpit_MAT
0.800 0.800 0.800 1.000
0.000 0.000 0.000 1.000
0.000 0.000 0.000 1.000 49.030
0.600 0.600 0.600 1.000