Our (ACE/ICE) multiplayer engine is ready to draw
planes in the game now, but I cant seem to figure out
how to add them to the drawing graph in a way that I
can actually see them.

Does anyone know how to do this or know the pitfalls
why is it failing ?


Tries so far:
---

class fgPeer::FGModelPlacement (from Model/model.cxx)
loading a ".ac"-model(Geometry/Models/glider.ac) in
init() 

Adding the ssgEntity from
FGModelPlacement.getSceneGraph() to the Flight Gear
Graph using the following 2 functions:
globals->get_scenery()->get_models_branch()->addKid(myFGPeer)
-or- (which one is good ?)
globals->get_scenery()->get_scene_graph()->addKid(myFGPeer)

as seen in Model/modelmgr.cxx.

and calling 
FGModelPlacement.setPostion(...)
FGModelPlacement.setOrientation(...)
FGModelPlacement.update()

everytime a new update arives.

---

I've checked ATC/AIEntity and this has the same layout
but has a "transform" function instead of a update()
function, in case this matters (?)


Any help would be just great since I have to give a
presentation of the project on monday :(

Leon

(code snapshots can be downloaded at the site below)







=====
My Flight Gear Multiplayer Stuff (work-in-progress):
http://www.kbs.twi.tudelft.nl/People/Students/L.Otte/

OK, I admit it: My girlfriend's just an object to me. 
Unfortunately, there is some information hiding, but 
thankfully, she's fairly encapsulated, nicely modular, and 
has a very well defined interface!

__________________________________________________
Do you Yahoo!?
Yahoo! Mail Plus - Powerful. Affordable. Sign up now.
http://mailplus.yahoo.com

_______________________________________________
Flightgear-devel mailing list
[EMAIL PROTECTED]
http://mail.flightgear.org/mailman/listinfo/flightgear-devel

Reply via email to