ogre particle system script分析

particle_system tutorial
{
	quota	2000//設置這個系統在某一時刻所允許包含的最多粒子數
	//例子系統使用的材質,此係統中的全部粒子使用相同的材質每一個粒子可以通過使用它自己的顏色屬性爲材質附加顏色
	material	Examples/FlarePointSprite
	particle_width	3//在世界座標系中的寬度值
	particle_height	3//在世界座標系中的高度值
	cull_each	false//是否撿選每一個例子,而不是通過一個box全部設置可見或隱藏
	renderer	billboard//渲染器,OGRE默認只提供了一個billboard渲染器,更多的渲染器可以通過插件的方式添加進系統
	billboard_type	point//billboard渲染器的屬性,point表示球狀粒子和公告版總是面向攝像機


	//粒子發射器按類型劃分爲幾類,例如:Point發射器從單獨一點發射,而Box發射器則是從一塊兒區域隨機發射。新的發射器可以通過插件加入到Ogre中去。向系統中增加一個發射器需要將發射器嵌入到其它塊中,以關鍵字“emitter”後跟發射器類型名(大小寫敏感)開頭。Ogre現在支持'Point','Box','Cylinder','Ellipsoid','HollowEllipsoid'以及'Ring'發射器
	emitter Ring
	{
		angle	0
		colour	0 0.4 1 1
		colour_range_start	0 0.4 1 1
		colour_range_end	0 0.4 1 1
		direction	0 1 0
		emission_rate	200
		position	0 -20 0
		velocity	0.01
		velocity_min	0.01
		velocity_max	0.01
		time_to_live	3
		time_to_live_min	3
		time_to_live_max	3
		duration	0
		duration_min	0
		duration_max	0
		repeat_delay	0
		repeat_delay_min	0
		repeat_delay_max	0
		width	60
		height	60
		depth	3.5
		inner_width	0.9
		inner_height	0.9
	}

	emitter Point
	{
		angle	4
		colour	0.23 0.54 0.35 1
		colour_range_start	0.23 0.54 0.35 1
		colour_range_end	0.23 0.54 0.35 1
		direction	0 -1 0
		emission_rate	80
		position	0 20 0
		velocity	10
		velocity_min	10
		velocity_max	20
		time_to_live	2.5
		time_to_live_min	2.5
		time_to_live_max	1.5
		duration	0
		duration_min	0
		duration_max	0
		repeat_delay	0
		repeat_delay_min	0
		repeat_delay_max	0
	}

	emitter Point
	{
		angle	0
		colour	0.96 0.63 0.77 1
		colour_range_start	0.96 0.63 0.77 1
		colour_range_end	0.39 0.39 0.84 1
		direction	0.573305 0.819342 0
		emission_rate	20
		position	-30 -20 0
		velocity	40
		velocity_min	40
		velocity_max	40
		time_to_live	1.24
		time_to_live_min	1.24
		time_to_live_max	1.2
		duration	4
		duration_min	4
		duration_max	4
		repeat_delay	2
		repeat_delay_min	2
		repeat_delay_max	2
	}

	emitter Point
	{
		angle	0
		colour	0.96 0.63 0.77 1
		colour_range_start	0.96 0.63 0.77 1
		colour_range_end	0.39 0.39 0.84 1
		direction	-0.561508 0.827471 0
		emission_rate	20
		position	30 -20 0
		velocity	40
		velocity_min	40
		velocity_max	40
		time_to_live	1.24
		time_to_live_min	1.24
		time_to_live_max	1.2
		duration	4
		duration_min	4
		duration_max	4
		repeat_delay	2
		repeat_delay_min	2
		repeat_delay_max	2
	}

	emitter Point
	{
		angle	10
		colour	1 1 1 1
		colour_range_start	1 1 1 1
		colour_range_end	1 1 1 1
		direction	0 1 0
		emission_rate	10
		position	0 20 0
		velocity	40
		velocity_min	40
		velocity_max	50
		time_to_live	3
		time_to_live_min	3
		time_to_live_max	3
		duration	4
		duration_min	4
		duration_max	6
		repeat_delay	0.5
		repeat_delay_min	0.5
		repeat_delay_max	1.5
	}

	affector LinearForce
	{
		force_vector	0 -50 0
		force_application	add
	}
}

發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章