Temp Update – The Joy of C# and Python

8 05 2006

This:

import map_interface

t = map_interface.terrain()
o = map_interface.objs()

tex1 = t.load_texture(engine,"Stone_Sample_002.JPG")
plane = t.Create_Terrain_with_plane(engine,
                            width = 3000, height = 3000)

plane_node = t.Add_Terrain_to_scene(engine, plane, tex1)
engine.terrain.Add_Sky_Box("sk5n.bmp", "sk5n.bmp",
                   "sk4n.bmp", "sk2n.bmp",
                   "sk1n.bmp", "sk3n.bmp")

house = o.Load_Mesh(engine, "house1.x")
o.Add_Animated_Entity(engine, handle = house)

Generates:

scr41.JPG

Advertisements

Actions

Information

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s




%d bloggers like this: