	pmt3d - a Procedual 3D Modeling Tool for OpenGL.
	pmt file description of current version.

DESCRIPTION
	 front surface is counter-clockwise.
	 if input the floating point, expression(+-*/) support.

	@\ʃ|S͔vłAʃ_OĂ̂Ŗ@
	Ă͗ʂł\ʂɌĂ܂܂̂ŒӂĂB
	Â߂ɗʃ_Oȗꍇ܂B

	@_͂̏ꍇAlZT|[gĂ܂Apmteditor
	AvP[VۑƐlɒuĂ܂̂ŒӂĂ
	B

	Epmtt@ĆApXɑ΂fBNg؂ɂāB
	@textureR}ht@Cn̂'/'fBNg̋؂Ɏgp
	ĂBłȂƁAFreeBSDȂǂUNIXłł̓eNX`[hoȂ
	Ȃ܂x

	pmtt@Csɂ'#'L̓RgsƂĖ܂B

	E|Sf̖@vZɂāB
	@|SfŁAnormal̒lxyz 3Ƃ0Ɩ@vZ܂B
	@ڂƁAOp`3ڈȍ~normal̒l0ƎvZ܂B
	@xvZ_AL_ōĂюgpꍇɂ͍ČvZ܂B
	|S@̎vZ͎błłA_L̈zɂ͑ΉĂ
	B

	ENURBSf̖@vŹAL_̈zɑΉĂ܂B
	@ł̂Ŋ炩ȃ_Oʂ܂B

COMMAND EXAMPLE 1 - basic
	begin polygon_surface,3,3
	position -1,0,0
	position 0,1,0
	position 1,0,0
	element 0
	element 1
	element 2
	tangent 1,0,0
	tangent 1,0,0
	tangent 1,0,0
	binormal 0,1,0
	binormal 0,1,0
	binormal 0,1,0
	normal 0,0,1
	normal 0,0,1
	normal 0,0,1
	end

COMMAND EXAMPLE 2 - applicable
	begin polygon_surface,3,3
	circle 1,0,0
	circle 1,60,0
	circle 1,120,0
	element 0
	element 1
	element 2
	tangent 1,0,0
	tangent 1,0,0
	tangent 1,0,0
	binormal 0,1,0
	binormal 0,1,0
	binormal 0,1,0
	normal 0,0,1
	normal 0,0,1
	normal 0,0,1
	end

COMMAND SYNTAX
	begin <operation,count...>	make the object.
	...
	end

	texture relative-path		texture path.
	bumpmap relative-path		bump-mapping texture path.
	spectex relative-path		specular mapping texture path.
	texfilter true/false,true/false,true/false
					is_mipmap,is_nearlinear,is_maglinear
	bumpofs <true/false>		bumpmap pixel align.(default true)
	bump2mono <true/false>		bumpmap convert to monochrome heightmap.
	aniso <float>			anisotropic texture parameter.
	refractfactor <float>		refract factor parameter.(0: reflect)
	mercatorsphere <true/false>	apply mercator y-texcoord factor.

	position <x,y,z>		hex input are direct float.
	normal <x,y,z>			default is z+ axis.
	color <r,g,b,a>			default is gray.
	circle <radius,angle,z>		top is angle 0, counter-clockwise.
	sphere <radius,latitude,longitude>	front is top angle 0,0

OPERATION LIST
	nurbs_surface
	polygon_surface

NURBS OPERATION 2 - surface
	knotp[^[͈̔͂ 0`1.0łȂ΂Ȃ܂B
	@`0`1.0͈̔͂𒴂Ă܂܂񂪁A͈͊O͕`悳܂B
	@{ɂA0`1.0͈̔͂ŃeNX`[Ŝ𐳊mɓ\鎖o܂B
	begin nurbs_surface,<Nx,Px,Ny,Py>
					N: control points count, P: nurbs rank
	texture relative-path		texture path.
	bumpmap relative-path		bump-mapping texture path.
	spectex relative-path		specular mapping texture path.
	texfilter true/false,true/false,true/false
					is_mipmap,is_nearlinear,is_maglinear
	bumpofs <true/false>		bumpmap -0.5 pixel align.(default true)	
	bump2mono <true/false>		bumpmap convert to monochrome heightmap.
	aniso <float>			anisotropic texture parameter.
	refractfactor <float>		refract factor parameter.(0: reflect)

	knot1 <k>			k1[0][0] input the single value.
	knot1 <k>			k1[0][1]
	...
	knot1 <k>			k1[0][Nx+Px-1]
	...
	knot1 <k>			k1[Ny-1][0]
	...
	knot1 <k>			k1[Ny-1][Nx+Px-1]
	weight <w>			w[0][0] input the single value.
	...
	weight <w>			w[0][Nx]
	position <x,y,z>		n[0][0]
	position <x,y,z>		n[0][1]
	position <x,y,z>		n[0][Nx]
	...
	knot2 <k>			k2[0][0] input the single value.
	knot2 <k>			k2[0][1]
	...
	knot2 <k>			k2[0][Ny+Py-1]
	...
	knot2 <k>			k2[Nx-1][0]
	...
	knot2 <k>			k2[Nx-1][Ny+Py-1]
	end

POLYGON OPERATION - surface
	begin polygon_surface,<Vn,En>
					Vn: vertex count, En: elements count.
	texture relative-path		texture path.
	bumpmap relative-path		bump-mapping texture path.
	spectex relative-path		specular mapping texture path.
	texfilter true/false,true/false,true/false
					is_mipmap,is_nearlinear,is_maglinear
	bumpofs <true/false>		bumpmap -0.5 pixel align.(default true)
	bump2mono <true/false>		bumpmap convert to monochrome heightmap.
	aniso <float>			anisotropic texture parameter.
	refractfactor <float>		refract factor parameter.(0: reflect)

	color <r,g,b,a>			colortexcoordpositionX̒O
	texcoord <s,t>			uȂƔf܂B
	position <x,y,z>

	element <n>			n: vertex index. -1: restart.

	tangent <x,y,z>			for bump mapping and lighting.
	binormal <x,y,z>
	normal <x,y,z>

	end

OPTION SYNTAX
	begin environment
	mode ref|skybox			environment texture mode.
	cubetex basefilename.ext	cube map texture file name.
				basefilename_{posx,negx,posy,negy,posz,negz}.ext
	reflectalpha 0`1.0		environment mixing rate.
	refractalpha 0`1.0		environment mixing rate.
	refractfactor 0`		refraction Eta.
	end
[eof]
