How does DrawInfo working

Questions and answers about the how and why of making maps.
Post Reply
easy tank
Private First Class
Private First Class
Posts: 38
Joined: Sat Dec 04, 2010 8:38 am

How does DrawInfo working

Post by easy tank »

Some people asks me to tell them how to make DrawInfo in map. It's like animationed object in map, it's looking so hard to make, but when you know it's easy ;)
How to do it:

1) Install "di-Machine6.php" (Search on BZFlag Wiki).

2) Install 3D software called "Wings3D".

3) Make object on it.

4) When you finish object save it. Then go: File > Export > Wavefront (.obj)

5) Go on Terminal (command line) and type: php di-Machine6.php objectName.obj

6) It gives you how it must look, copy this.

7) Put this in mapName.bzw

8) You need to do some handediting now. You can change "angvel, delete sphere and extens commands"

9) then group it:

group object
shift 0 0 20
scale 2 2 2
end

(You can add command "spin" as well)

10) You are finished! Put the server up and here it is!


If you have some problems with it, ask me to help. Thanks :)

- Easy Tank
Attachments
PlaneObject.wings
Here it is
(15.13 KiB) Downloaded 149 times
User avatar
optic delusion
Special Forces
Special Forces
Posts: 1054
Joined: Sat Sep 25, 2004 2:29 pm
Location: Planet MoFo
Contact:

Re: How does DrawInfo working

Post by optic delusion »

You can also convert obj to BZFlag drawinfo using modeltool. Modeltool is a utility to convert any obj format file to the bzw format, with or without drawinfo.
It is available through SVN (found in the tools directory), and is officially supported by the bzflag developers. Modeltool will be able to cope with OPENGL polygon shapes not supported by DI_Machine.
DI_Machine is not supported, less flexible, and a lot slower. However, DI_Machine was the prototype for modeltool's drawinfo capability.

http://wiki.bzflag.org/SVN
http://wiki.bzflag.org/Modeltool
Take a look at my Defender game mode concept.

Thinking is not an automatic process. A man can choose to think or to let his mind stagnate, or he can choose actively to turn against his intelligence, to evade his knowledge, to subvert his reason. If he refuses to think, he courts disaster: he cannot with impunity reject his means of perceiving reality.
easy tank
Private First Class
Private First Class
Posts: 38
Joined: Sat Dec 04, 2010 8:38 am

Re: How does DrawInfo working

Post by easy tank »

Of course you can use modeltool too, but I think it would be easier with DI-Machine. It works GREAT for me.
Post Reply