Page 1 of 1
Creating a game
Posted: Wed May 19, 2004 7:09 pm
by thefool
Hi!
I am dying to try pb's ability to make games. I have found a modeler, Blender. I found out how to convert the files that it makes to .mesh files. Im thinking to buy their book on blender modelling. 800 pages so its not too cheap, so i want to know how hard it is to make 3d games in pb. Any examples from you? How easy it it to make a figure move, i mean like walking. how easy to make a world in pb, i mean placing objects and stuff like that. Lights? do you have any examples? how did you start? Is it easy to use lights and building worlds? lots of questions here, but im seriously thinking about reading that huge book and leaning a bit of 3d modelling, just wants to know if i can learn to make 3d games in pb.
and even more: How about logic and colisions?
Posted: Wed May 19, 2004 7:40 pm
by Brice Manuel
The biggest obstacle right now in PB for 3D is the lack of built in collision detection. Otherwise the existing 3D commands in PB are fairly easy to work with and there are some good examples included with PB that show most of what you are asking. The main drawbacks are it only supports the BSP format and ORGE's MESH format.
I am a diehard retro 2D guy and not much for 3D, but I am playing around with a 3rd party 3D engine in PB that uses DX9 or OpenGL and it works fairly well. If you do not like the 3D side of PB, you can use other 3D engines with PB.
Posted: Wed May 19, 2004 8:08 pm
by MadMax
Would be quite nice to have a 3D forum or something, I've been playing around with 3D lately, would be nice a place where we can disscus and exchange ideas.
Posted: Wed May 19, 2004 8:50 pm
by J. Baker
I can't wait for collision myself. I'm sure fred is working on it. As for a forum for 3D, I could add one to my site if there would be enough user who would like this. I use Wings3D and Animation Master myself. What do you use?
Posted: Wed May 19, 2004 9:04 pm
by thefool
The fact that ogre only support mesh are not the biggest problem for me. Its more about animation, and building a world. i mean, how to design a house?
Posted: Wed May 19, 2004 9:59 pm
by pg
Hi here is a game a made with a simple collision detection.
http://www.mypage.bluewin.ch/bithandler ... Racer1.zip
I'm using a bitmap in the background where I test the colors with point(x,z) from the 3d coordinates. If the player is outside the playfield another color is detected. This can be done with walls also. It's not the best solution but better than nothing...
The real problem for me is the "bug" with animations. Animations can't be stopped..or I don't know how to stop them.
Posted: Wed May 19, 2004 11:43 pm
by J. Baker
pg wrote:Animations can't be stopped..or I don't know how to stop them.
The same way you call on them. You just need a part in your animation that is not animated and call on it. At least I know with MD2 files you can have multiple animations in one file through multiple frames (calling on different frames for each individual animation). You just need a frame(s) that's not animated. Hope that helps some.
Posted: Thu May 20, 2004 8:41 am
by pg
Here this is not working. Ogre also supports multiple animations within one object, but once an animation is started, it can't be stopped or replaced, it is added-> looks very ugly....
If an empty string like "" or " " is sent as animation name, my program crashes.
Posted: Thu May 20, 2004 8:45 am
by thefool
thanks to pg for the example.
anyone here uses blender for modelling and animating? I am thinking about buying the book, just wanted to know if other people has suces using blender.
@pg: what did you use for modeling and graphics?
Posted: Thu May 20, 2004 9:08 am
by pg
I'm using Wings3D for modelling. Milkshape3D for animation and conversion to ogre mesh. This is really working fine. Wings3D has a easy to use UV Texturing tool.
Posted: Thu May 20, 2004 9:23 am
by Comtois
pg wrote:Here this is not working. Ogre also supports multiple animations within one object, but once an animation is started, it can't be stopped or replaced, it is added-> looks very ugly....
If an empty string like "" or " " is sent as animation name, my program crashes.
I have the same problem .
So i create a entity for each animation ( Bad solution but better than nothing

) and i hide or show entity with the good animation.
Code: Select all
;Gestion robot
MoveEntity( 1 ,Px , 0, Pz ) ; Walk animation
EntityLocate(5001,EntityX(1),EntityY(1),EntityZ(1)) ; Idle animation
If Joueur\Pas = 0
If GetTickCount_()-Joueur\Temps>Joueur\TempsMaxi
HideEntity(5001,0)
HideEntity(1,1)
EndIf
Else
HideEntity(5001,1)
HideEntity(1,0)
Joueur\Temps=GetTickCount_()
EndIf
i also try
SetEntityAnimationTime(#Entity, Position)
but it don't work ?
Posted: Thu May 20, 2004 9:31 am
by pg
Yes, I do it exactly the same way. But you have to move and turn both objects the same way, even the hidden objects.
Posted: Thu May 20, 2004 9:36 am
by pg
I think SetEntityAnimationTime(#Entity, Position) is working somehow, but it's useless for me, because I cannot stop animations -> I switch between objects.