- 积分
- 133
- 注册时间
- 2006-1-10
- 仿真币
-
- 最后登录
- 1970-1-1
|
Have you even image one day you drive the future vehicle and are travelling in space ?
http://demonstrations.wolfram.com/FlightThroughAStarCluster/
- Manipulate[
- SeedRandom[seed];
- stars = 20 Table[{Cos[#1] Sqrt[1 - #2^2],
- Sin[#1] Sqrt[1 - #2^2], #2} &[Random[Real, {0, 2 Pi}],
- Random[Real, {-1, 1}]], {5000}];
- plants =
- Table[{Yellow,
- Sphere[Append[RandomReal[{-1, 1}, {2}], RandomReal[{-10, 10}]],
- RandomReal[0.03]]}, {100}];
- Graphics3D[{White, PointSize[0.001], Point[stars], plants},
- Background -> Black, Boxed -> False, SphericalRegion -> True,
- ImageSize -> {550, 320}, ViewVector -> {0, 0, time},
- ViewAngle -> 45 °],
- {{seed, 1234, "seed"}, 12, 12345, 1, Appearance -> "Labeled"},
- {{time, -10, "time"}, -10, -1, 0.001, ControlType -> Animator,
- AnimationRate -> 0.5},
- ControlPlacement -> Top, TrackedSymbols -> Manipulate,
- SynchronousInitialization -> False, SaveDefinitions -> True,
- AutorunSequencing -> {1, 2, {3, 25}}]
复制代码
[ 本帖最后由 FreddyMusic 于 2008-11-13 09:26 编辑 ] |
本帖子中包含更多资源
您需要 登录 才可以下载或查看,没有账号?注册
×
|