Fork me on GitHub

Requires the DynamicImage.Extensions.Rendered3D package.

@Html.DynamicImageTag(b => b.WithLayer(
	new RenderedLayerBuilder().Width(400).Height(300)
		.SourceFileName("~/Assets/Models/3ds/85-nissan-fairlady.3ds")
		.WithAutoCamera(45, 10)
))

@Html.DynamicImageTag(b => b.WithLayer(
	new RenderedLayerBuilder().Width(400).Height(300)
		.SourceFileName("~/Assets/Models/3ds/85-nissan-fairlady.3ds")
		.WithAutoCamera(0, 0)
))

@Html.DynamicImageTag(b => b.WithLayer(
	new RenderedLayerBuilder().Width(400).Height(300)
		.SourceFileName("~/Assets/Models/3ds/85-nissan-fairlady.3ds")
		.WithAutoCamera(45, 0)
))

@Html.DynamicImageTag(b => b.WithLayer(
	new RenderedLayerBuilder().Width(400).Height(300)
		.SourceFileName("~/Assets/Models/3ds/85-nissan-fairlady.3ds")
		.WithAutoCamera(90, 0)
))

@Html.DynamicImageTag(b => b.WithLayer(
	new RenderedLayerBuilder().Width(400).Height(300)
		.SourceFileName("~/Assets/Models/3ds/85-nissan-fairlady.3ds")
		.WithAutoCamera(135, 0)
))

@Html.DynamicImageTag(b => b.WithLayer(
	new RenderedLayerBuilder().Width(400).Height(300)
		.SourceFileName("~/Assets/Models/3ds/85-nissan-fairlady.3ds")
		.WithAutoCamera(180, 0)
))

@Html.DynamicImageTag(b => b.WithLayer(
	new RenderedLayerBuilder().Width(400).Height(300)
		.SourceFileName("~/Assets/Models/3ds/85-nissan-fairlady.3ds")
		.WithAutoCamera(225, 0)
))

@Html.DynamicImageTag(b => b.WithLayer(
	new RenderedLayerBuilder().Width(400).Height(300)
		.SourceFileName("~/Assets/Models/3ds/85-nissan-fairlady.3ds")
		.WithAutoCamera(270, 0)
))

@Html.DynamicImageTag(b => b.WithLayer(
	new RenderedLayerBuilder().Width(400).Height(300)
		.SourceFileName("~/Assets/Models/3ds/85-nissan-fairlady.3ds")
		.WithAutoCamera(315, 0)
))

@Html.DynamicImageTag(b => b.FillBackgroundColor(Colors.CornflowerBlue).WithLayer(
	new RenderedLayerBuilder().Width(800).Height(800)
		.SourceFileName("~/Assets/Models/3ds/75Cathedral-model.3ds")
		.WithAutoCamera(80, 20)
))

@Html.DynamicImageTag(b => b.FillBackgroundColor(Colors.LightBlue).WithLayer(
	new RenderedLayerBuilder().Width(600).Height(300).Lighting(false)
		.SourceScene(ViewBag.Scene)
))

@Html.DynamicImageTag(b => b.WithLayer(
	new RenderedLayerBuilder().Width(600).Height(600).ReverseWindingOrder()
		.SourceFileName("~/Assets/Models/Obj/Tank.obj")
		.WithAutoCamera(45, 20)
))