mirror of
https://github.com/acemod/ACE3.git
synced 2024-08-30 18:23:18 +00:00
Reworked with test p3d.
This commit is contained in:
parent
62e441fb1d
commit
fc1d884105
@ -20,17 +20,11 @@ namespace ace {
|
|||||||
stream_.read((char *)&min_phase, sizeof(float));
|
stream_.read((char *)&min_phase, sizeof(float));
|
||||||
stream_.read((char *)&max_phase, sizeof(float));
|
stream_.read((char *)&max_phase, sizeof(float));
|
||||||
|
|
||||||
//stream_.read((char *)&junk, sizeof(uint32_t));
|
stream_.read((char *)&junk, sizeof(uint32_t));
|
||||||
//stream_.read((char *)&junk2, sizeof(uint32_t));
|
stream_.read((char *)&junk2, sizeof(uint32_t));
|
||||||
stream_.read((char *)&source_address, sizeof(uint32_t));
|
stream_.read((char *)&source_address, sizeof(uint32_t));
|
||||||
|
|
||||||
float buffer[4];
|
// This always adds up to 2*4 more bytes unless its direct apparently
|
||||||
stream_.read((char *)buffer, sizeof(float) * 4);
|
|
||||||
return;
|
|
||||||
|
|
||||||
// THIS IS ALL WRONG
|
|
||||||
// ARMA3 HAS FIXED 4-FLOAT TRANSFORMS
|
|
||||||
|
|
||||||
switch (type) {
|
switch (type) {
|
||||||
// rotations
|
// rotations
|
||||||
case 0:
|
case 0:
|
||||||
@ -61,9 +55,11 @@ namespace ace {
|
|||||||
case 9: // fucking hides...
|
case 9: // fucking hides...
|
||||||
stream_.read((char *)&hide_value, sizeof(float));
|
stream_.read((char *)&hide_value, sizeof(float));
|
||||||
stream_.read((char *)&offset1, sizeof(float)); // this is junk throw it in offset1 for hides
|
stream_.read((char *)&offset1, sizeof(float)); // this is junk throw it in offset1 for hides
|
||||||
|
break;
|
||||||
default:
|
default:
|
||||||
stream_.read((char *)&offset0, sizeof(float));
|
stream_.read((char *)&offset0, sizeof(float));
|
||||||
stream_.read((char *)&offset1, sizeof(float));
|
stream_.read((char *)&offset1, sizeof(float));
|
||||||
|
break;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
@ -1,5 +1,6 @@
|
|||||||
init:
|
init:
|
||||||
debug_render:
|
debug_render:
|
||||||
|
#register_vehicle:\A3\soft_f\MRAP_01\MRAP_01_gmg_F.p3d,2,4050.18;3802.55;5.075
|
||||||
register_vehicle:\A3\Armor_F_EPB\MBT_03\MBT_03_cannon_F.p3d,2,4050.18;3802.55;5.075
|
register_vehicle:\A3\Armor_F_EPB\MBT_03\MBT_03_cannon_F.p3d,2,4050.18;3802.55;5.075
|
||||||
#hit:2,\A3\Armor_F_EPB\MBT_03\MBT_03_cannon_F.p3d,[],2,Sh_120mm_APFSDS,650,27,19100,50,10,708.602;235.609;-85.6468,-2.1748;0.139648;-1.35955,0.942743;0.31346;-0.113925,-1;6.1914e-007;0.000794772,-2.17383;0.139404;-1.32366,708.602;235.609;-85.6468
|
#hit:2,\A3\Armor_F_EPB\MBT_03\MBT_03_cannon_F.p3d,[],2,Sh_120mm_APFSDS,650,27,19100,50,10,708.602;235.609;-85.6468,-2.1748;0.139648;-1.35955,0.942743;0.31346;-0.113925,-1;6.1914e-007;0.000794772,-2.17383;0.139404;-1.32366,708.602;235.609;-85.6468
|
||||||
#register_vehicle:\a3\structures_f\mil\BagFence\BagFence_Long_F.p3d,0,4050.18;3802.55;5.075
|
#register_vehicle:\a3\structures_f\mil\BagFence\BagFence_Long_F.p3d,0,4050.18;3802.55;5.075
|
||||||
|
@ -21,6 +21,7 @@ int main(int argc, char **argv) {
|
|||||||
printf("Usage: %s [file.p3d]", argv[0]);
|
printf("Usage: %s [file.p3d]", argv[0]);
|
||||||
return -1;
|
return -1;
|
||||||
}
|
}
|
||||||
|
|
||||||
ace::p3d::model_p _model = _parser.load(argv[1]);
|
ace::p3d::model_p _model = _parser.load(argv[1]);
|
||||||
|
|
||||||
ace::simulation::object _object(_model);
|
ace::simulation::object _object(_model);
|
||||||
|
BIN
extensions/tests/test.p3d
Normal file
BIN
extensions/tests/test.p3d
Normal file
Binary file not shown.
Loading…
Reference in New Issue
Block a user