can anyone tell me how i make a new empty world?
1
| World myWorld = new World(); |
if i call a render(world) on this it blows up.
the docs say i need to add a Camera, Background and
Light:
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18
| World world = new World(); iCamera = new Camera(); iCamera.setPerspective(60.0f, (float) getWidth() / (float) getHeight(), 1.0f, 1000.0f); world.setActiveCamera(iCamera);
iLight = new Light(); iLight.setColor(0xffffff); iLight.setIntensity(lightIntensity); world.addChild(iLight);
iBackground.setColor(0x335533); world.setBackground(iBackground); |
and i still get a *BANG*.. no joy on the render(world)
call. just blows up

can anyone help? i want an world rendering with
nothing in it. then i can add my own groups and nodes
at runtime....
cheers all

bish bosh... jazz