TWiki home TWiki > Team5 > ProjectThree > MacLog (r1.4) TWiki webs:
Main | TWiki | Know | Sandbox
Team5 . { Changes | Index | Search | Go }
Hooray Progress!

Just added a bunch of config-file stuff, including proper model loading. Should work now. As we've seen before, however, it doesn't; the models don't seem to actually get added. Strange.

-- MacMason - 22 Nov 2004

Added the basic config-file-reading-in code a few minutes ago.

This reads from a file called config.txt, and adds mobiles, and immobiles, and so on from there.

The readConfigFile function is actually being called from the TankWorld? constructor, so it knows how to create all these nice models it's using.

We have something of a problem with the model constructors; they want Model* input, and all I can get from the config file is strings. Unless somebody has a bright idea, I'll bust out my STL reference and see if I can build a string->Model* map and use that.

-- MacMason - 22 Nov 2004

Added a bunch of height-mapping code that should work; also added a basic .raw file.

But it doesn't actually work yet; I imagine this stems from me misunderstanding Brian's representation of the terrain.

Should be sorted out soon, though.

-- MacMason - 18 Nov 2004

Dropped a bunch of the code from NeHe? lesson 6 into globals.cpp to make it run. As of now, we have a spinning cube.

-- MacMason - 07 Nov 2004

Topic MacLog . { Edit | Attach | Ref-By | Printable | Diffs | r1.8 | > | r1.7 | > | r1.6 | More }
Revision r1.4 - 22 Nov 2004 - 09:27 GMT - MacMason
Parents: WebHome > ProjectThree
Copyright © 1999-2003 by the contributing authors. All material on this collaboration platform is the property of the contributing authors.
Ideas, requests, problems regarding TWiki? Send feedback.