public override void CreateScene()
{
RenderSystemCapabilities caps = Root.Instance.RenderSystem.HardwareCapabilities;
if ( !caps.HasCapability( Capabilities.Texture3D ) )
{
throw new NotSupportedException( "Your card does not support 3d textures, so you can not run this Demo. Sorry!" );
}
mPTex = TextureManager.Instance.CreateManual( "DynaTex", "General", TextureType.ThreeD, 64, 64, 64, 0, PixelFormat.A8R8G8B8, TextureUsage.Default, this );
Generate();
//SaveToDisk( mPTex, "julia.dds" );
scene.AmbientLight = new ColorEx( 0.6f, 0.6f, 0.6f );
scene.SetSkyBox( true, "Examples/MorningSkyBox", 50 );
Light l = scene.CreateLight( "MainLight" );
l.Diffuse = new ColorEx( 0.75f, 0.75f, 0.80f );
l.Specular = new ColorEx( 0.9f, 0.9f, 1 );
l.Position = new Vector3( -100, 80, 50 );
scene.RootSceneNode.AttachObject( l );
SceneNode snode = scene.RootSceneNode.CreateChildSceneNode( Vector3.Zero );
VolumeRenderable vrend = new VolumeRenderable( 32, 750f, "VolumeTexture.dds" );
snode.AttachObject( vrend );
camera.LookAt( snode.Position );
}