Creating a game

Advanced game related topics
thefool
Always Here
Always Here
Posts: 5875
Joined: Sat Aug 30, 2003 5:58 pm
Location: Denmark

Creating a game

Post 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?
Brice Manuel

Post 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.
MadMax
Enthusiast
Enthusiast
Posts: 237
Joined: Mon Oct 06, 2003 11:56 am

Post 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.
User avatar
J. Baker
Addict
Addict
Posts: 2196
Joined: Sun Apr 27, 2003 8:12 am
Location: USA
Contact:

Post 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?
www.posemotion.com

PureBasic Tools for OS X: PureMonitor, plist Tool, Data Maker & App Chef


Even the vine knows it surroundings but the man with eyes does not.
thefool
Always Here
Always Here
Posts: 5875
Joined: Sat Aug 30, 2003 5:58 pm
Location: Denmark

Post 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?
pg
User
User
Posts: 75
Joined: Wed Jun 18, 2003 3:31 pm
Location: Swiss
Contact:

Post 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.
User avatar
J. Baker
Addict
Addict
Posts: 2196
Joined: Sun Apr 27, 2003 8:12 am
Location: USA
Contact:

Post 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.
www.posemotion.com

PureBasic Tools for OS X: PureMonitor, plist Tool, Data Maker & App Chef


Even the vine knows it surroundings but the man with eyes does not.
pg
User
User
Posts: 75
Joined: Wed Jun 18, 2003 3:31 pm
Location: Swiss
Contact:

Post 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.
thefool
Always Here
Always Here
Posts: 5875
Joined: Sat Aug 30, 2003 5:58 pm
Location: Denmark

Post 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?
pg
User
User
Posts: 75
Joined: Wed Jun 18, 2003 3:31 pm
Location: Swiss
Contact:

Post 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.
User avatar
Comtois
Addict
Addict
Posts: 1432
Joined: Tue Aug 19, 2003 11:36 am
Location: Doubs - France

Post 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 ?
Please correct my english
http://purebasic.developpez.com/
pg
User
User
Posts: 75
Joined: Wed Jun 18, 2003 3:31 pm
Location: Swiss
Contact:

Post 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.
pg
User
User
Posts: 75
Joined: Wed Jun 18, 2003 3:31 pm
Location: Swiss
Contact:

Post 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.
Post Reply