> 1. In the game I plan to have several cannons each with their own > billboards for controls. To place them I need to find the screen > coordinates of the center of the object. Is there a function somewhere > that does this? If not can someone point me to the functions I will need > to cast a ray from the object to the camera and find out where it > intersects the near clipping plain?
Take the object position (object->GetMovable ()->GetFullPosition ()) then transform it to camera space using the camera->GetTransform(). Then using iCamera->Perspective() you can convert that to screen space. > > 2. So far I have been creating all my entities in Blender2CS and running > the game from there. It is also working from celstart. Is there any way > to use a debugger from either of these? I'm new to python and want to be > able to examine what entities I have in memory so I don't have to ask > here when I can't find them (see q. 3) You can use the celconsole. If you load that plugin then you can go to it by using tab (by default) and then you can do various things like show all entities. Type 'help' in the celconsole to see what commands you have. > > 3. How do I get the billboard manager inside of a behaviour? I want to > move the white arrow to a layer above the red/yellow/green bar in the > interface. Currently most of the arrow is hidden. I have had no luck > with the "layer" attribute in the b2cs interface or the functions listed > in the API. I don't understand what you mean by getting a billboard manager inside a behaviour? What exactly do you mean here? > > 4. I plan to have multiple cannons with multiple controls for each > player. All that will differ between them is the behaviour for AI > players, the materials for all cannons and the names of the interface > billboards for all cannons. Is there an easy way to duplicate an > existing entity in the code or do I have to do it using blender? I would > like to have arbitrarily many cannons so duplicating them in blender may > be a hassle. You can make an entity template and then create multiples entities from that. Hope this helps, Greetings, -- Project Manager of Crystal Space (http://www.crystalspace3d.org) and CEL (http://cel.crystalspace3d.org) Support Crystal Space. Donate at https://sourceforge.net/donate/index.php?group_id=649 Visit my town at http://waldir.myminicity.com/ ------------------------------------------------------------------------- This SF.Net email is sponsored by the Moblin Your Move Developer's challenge Build the coolest Linux based applications with Moblin SDK & win great prizes Grand prize is a trip for two to an Open Source event anywhere in the world http://moblin-contest.org/redirect.php?banner_id=100&url=/ _______________________________________________ Cel-main mailing list Cel-main@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/cel-main