Crystal Space
Welcome, Guest. Please login or register.
April 17, 2014, 05:43:40 am

Login with username, password and session length
Search:     Advanced search
8990 Posts in 2037 Topics by 7586 Members
Latest Member: Jane14rattner88
* 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 1361 times)
krwawy_hegemon
Guest


Email
« 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))

regards
Logged
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 2.309 seconds with 13 queries.