[prev in list] [next in list] [prev in thread] [next in thread]
List: flightgear-cvs
Subject: [Flightgear-cvslogs]
From: Erik Hofman <ehofman () flightgear ! org>
Date: 2005-07-28 8:40:06
Message-ID: E1Dy3vy-00021P-00 () baron ! me ! umn ! edu
[Download RAW message or body]
Update of /var/cvs/FlightGear-0.9/FlightGear/src/Network
In directory baron:/tmp/cvs-serv7557/Network
Modified Files:
multiplay.cxx
Log Message:
Mathias Fröhlich:
I have now included a patch to the multiplyer protocoll which does:
1. place the 3d model into the scenery using a placement transform which can
dynamically change its scenry center.
2. Transmits unique position and orientation data for the 3d model.
3. Thus breaks protocol compatibility.
Oliver Schroeder:
With help from Norman I fixed the alignment in the used headers.
But this patch again fixes only symtoms, not the problems. I suggest to
put it into cvs anyway, as it will enable the majority to get experience
with the multiplayer mode.
Index: multiplay.cxx
===================================================================
RCS file: /var/cvs/FlightGear-0.9/FlightGear/src/Network/multiplay.cxx,v
retrieving revision 1.4
retrieving revision 1.5
diff -C2 -r1.4 -r1.5
*** multiplay.cxx 9 May 2003 19:39:52 -0000 1.4
--- multiplay.cxx 28 Jul 2005 08:40:03 -0000 1.5
***************
*** 31,34 ****
--- 31,36 ----
#include <simgear/scene/model/placement.hxx>
+ #include <Scenery/scenery.hxx>
+
#include "multiplay.hxx"
***************
*** 106,111 ****
} else if (get_direction() == SG_IO_OUT) {
! globals->get_multiplayer_tx_mgr()->
! SendMyPosition(globals->get_aircraft_model()->get3DModel()->get_POS());
}
--- 108,121 ----
} else if (get_direction() == SG_IO_OUT) {
! sgMat4 posTrans;
! sgCopyMat4(posTrans, globals->get_aircraft_model()->get3DModel()->get_POS());
! Point3D center = globals->get_scenery()->get_center();
! sgdVec3 PlayerPosition;
! sgdSetVec3(PlayerPosition, posTrans[3][0] + center[0],
! posTrans[3][1] + center[1], posTrans[3][2] + center[2]);
! sgQuat PlayerOrientation;
! sgMatrixToQuat(PlayerOrientation, posTrans);
!
! globals->get_multiplayer_tx_mgr()->SendMyPosition(PlayerOrientation, PlayerPosition);
}
_______________________________________________
Flightgear-cvslogs mailing list
Flightgear-cvslogs@flightgear.org
http://mail.flightgear.org/mailman/listinfo/flightgear-cvslogs
2f585eeea02e2c79d7b1d8c4963bae2d
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic