Crystal Space
Welcome, Guest. Please login or register.
September 22, 2017, 12:05:01 am

Login with username, password and session length
Search:     Advanced search
9054 Posts in 2047 Topics by 74002 Members
Latest Member: Ameliasable624
* Home Help Search Login Register
+  Crystal Space
|-+  Crystal Space Development
| |-+  Support
| | |-+  how to load terrain meshfact?
« previous next »
Pages: [1] Print
Author Topic: how to load terrain meshfact?  (Read 1704 times)

« on: November 15, 2005, 10:38:54 pm »

Hello Sirs!

i'm having problem with loading terrain (only!) into my little first CS application

is it possible to load a terrain from a heightmap (.png 256colors) like in simple sprite tutorial
being specific:
how to do something alike:
csRef<iMeshFactoryWrapper> imeshfact (loader->LoadMeshObjectFactory ("this/myterrain.lib"));
csRef<iMeshWrapper> terrain (engine->CreateMeshWrapper (imeshfact, "MyTerrain", room, csVector3 (-3, 5, 3)));

the problem with the above code is that i wasn't able to find specification of terrain meshfact

could i ask for a little assist in finding how to produce terrain meshfact file (xml?) and then to load it into my application?
(as a terrain meshfact i understand such mesh factory that will construct landscapes moreless equal to a given heightmap+materialmap (Graphic files))

Pages: [1] Print 
« previous next »
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.2 | SMF © 2006-2007, Simple Machines LLC Valid XHTML 1.0! Valid CSS!
Page created in 3.524 seconds with 14 queries.