Difference between revisions of "RENDER 3D EXAMPLES ToBeRectified"

From ZCubes Wiki
Jump to navigation Jump to search
Line 357: Line 357:
 
Test Comments: Not Working (Background displayed, Rose not displayed)
 
Test Comments: Not Working (Background displayed, Rose not displayed)
 
------------------------------------------------------------
 
------------------------------------------------------------
 +
//glb shows rose right. really tiny and had to be scaled. why?
 +
// made scale to be 10
 +
RENDER3D(
 +
[
 +
["type" , "settings" , "coordinates", "size" , "stroke" , "fill", "helper", "material" ],
 +
["scene" , [
 +
["background"],
 +
['../threefull/examples/textures/terrain/grasslight-big.jpg']
 +
], , , , ,],
 +
["camera" , [
 +
["fov" ,"aspect" ,"near" ,"far", "position" ],
 +
[90 ,"auto" ,0.1 ,1000 , [0,0,30] ]
 +
], , , , ,],
  
 +
["load" , "https://kappaomega.zcubes.com/threetest/threefull/other/rose3/rose 2.glb" , [0,0,0] ,[10,10,10] , 0x00ff00 ,  ,true , "phong"]
 +
]
 +
);
 +
""
 +
 +
Test Comments: Not Working (Just the grass background is displayed)
 +
------------------------------------------------------------
 +
 +
 +
//alien obj file
 +
// why is it so far to the top?
 +
RENDER3D(
 +
[
 +
["type" , "settings" , "coordinates", "size" , "stroke" , "fill", "helper", "material" ],
 +
["scene" , [
 +
["background"],
 +
['../threefull/examples/textures/terrain/grasslight-big.jpg']
 +
], , , , ,],
 +
["camera" , [
 +
["fov" ,"aspect" ,"near" ,"far", "position" ],
 +
[90 ,"auto" ,0.1 ,1000 , [0,0,30] ]
 +
], , , , ,],
 +
 +
["load" , "https://kappaomega.zcubes.com/threetest/threefull/other/alien/alien.obj" , [0,0,0] ,[10,10,10] , 0x00ff00 ,  ,true , "phong"]
 +
]
 +
);
 +
""
 +
Test Comments: Not Working (Just the grass background is displayed)
 +
------------------------------------------------------------
 +
 +
 +
 +
//cubes fbx file. did not work since this is old version
 +
RENDER3D(
 +
[
 +
["type" , "settings" , "coordinates", "size" , "stroke" , "fill", "helper", "material" ],
 +
["scene" , [
 +
["background"],
 +
['../threefull/examples/textures/terrain/grasslight-big.jpg']
 +
], , , , ,],
 +
["camera" , [
 +
["fov" ,"aspect" ,"near" ,"far", "position" ],
 +
[90 ,"auto" ,0.1 ,1000 , [0,0,30] ]
 +
], , , , ,],
 +
 +
["load" , "https://kappaomega.zcubes.com/threetest/threefull/other/cubes/cubes.fbx" , [0,0,0] ,[10,10,10] , 0x00ff00 ,  ,true , "phong"]
 +
]
 +
);
 +
""
 +
Test Comments: Not Working (Just the grass background is displayed)
 +
------------------------------------------------------------
 +
 +
//cubes glb file. did not work since this is old version
 +
RENDER3D(
 +
[
 +
["type" , "settings" , "coordinates", "size" , "stroke" , "fill", "helper", "material" ],
 +
["scene" , [
 +
["background"],
 +
['../threefull/examples/textures/terrain/grasslight-big.jpg']
 +
], , , , ,],
 +
["camera" , [
 +
["fov" ,"aspect" ,"near" ,"far", "position" ],
 +
[90 ,"auto" ,0.1 ,1000 , [0,0,30] ]
 +
], , , , ,],
 +
 +
["load" , "https://kappaomega.zcubes.com/threetest/threefull/other/cubes/cubes.glb" , [0,0,0] ,[10,10,10] , 0x00ff00 ,  ,true , "phong"]
 +
]
 +
);
 +
""
 +
Test Comments: Not Working (Just the grass background is displayed)
 +
------------------------------------------------------------
 +
 +
 +
 +
//glb rendered, flb had issues with transparency
 +
RENDER3D(
 +
[
 +
["type" , "settings" , "coordinates", "size" , "stroke" , "fill", "helper", "material" ],
 +
["scene" , [
 +
["background"],
 +
['../threefull/examples/textures/terrain/grasslight-big.jpg']
 +
], , , , ,],
 +
["camera" , [
 +
["fov" ,"aspect" ,"near" ,"far", "position" ],
 +
[90 ,"auto" ,0.1 ,1000 , [0,0,30] ]
 +
], , , , ,],
 +
 +
["load" , "https://kappaomega.zcubes.com/threetest/threefull/other/rose/rose flower.glb" , [0,0,0] ,[10,10,10] , 0x00ff00 ,  ,true , "phong"]
 +
]
 +
);
 +
""
 +
Test Comments: Not Working (Just the grass background is displayed)
 +
------------------------------------------------------------
 +
 +
RENDER3D(
 +
[
 +
["type" , "settings" , "coordinates", "size" , "stroke" , "fill", "helper", "material" ],
 +
["scene" , [
 +
["background"],
 +
['../threefull/examples/textures/terrain/grasslight-big.jpg']
 +
], , , , ,],
 +
["camera" , [
 +
["fov" ,"aspect" ,"near" ,"far", "position" ],
 +
[90 ,"auto" ,0.1 ,1000 , [0,0,30] ]
 +
], , , , ,],
 +
 +
["load" , "https://kappaomega.zcubes.com/threetest/threefull/other/rose/rose flower 2.gltf" , [0,0,0] ,[10,10,10] , 0x00ff00 ,  ,true , "phong"]
 +
]
 +
);
 +
""
 +
Test Comments: Not Working (Just the grass background is displayed)
 +
------------------------------------------------------------
 +
 +
 +
 +
RENDER3D(
 +
[
 +
["type" , "settings" , "coordinates", "size" , "stroke" , "fill", "helper", "material" ],
 +
["scene" , [
 +
["background"],
 +
['../threefull/examples/textures/terrain/grasslight-big.jpg']
 +
], , , , ,],
 +
["camera" , [
 +
["fov" ,"aspect" ,"near" ,"far", "position" ],
 +
[90 ,"auto" ,0.1 ,1000 , [0,0,30] ]
 +
], , , , ,],
 +
 +
["load" , "https://kappaomega.zcubes.com/threetest/threefull/other/rose/rose flower 5.gltf" , [0,0,0] ,[10,10,10] , 0x00ff00 ,  ,true , "phong"]
 +
]
 +
);
 +
""
 +
Test Comments: Not Working (Just the grass background is displayed)
 +
------------------------------------------------------------
 +
 +
 +
// physics started working after quaternion of plane was set 2:15 PM 12/8/2020
 +
// basics work in this
 +
RENDER3D(
 +
[
 +
["type" , "settings" , "coordinates", "size" , "stroke" , "fill", "helper", "material", "mass" ],
 +
["physics"],
 +
["floor" , , [0,0,-3] ,[500,1,500] , 0x00ff00 , "yellow" ,false , "phong", 10],
 +
["sphere" , , [0,10,0] ,[5,20,20] , 0x00ff00 , "yellow" ,false , "phong", 10],
 +
["sphere" , , [10,10,0] ,[3,20,20] , 0x00ff00 , "yellow" ,false , "phong", 10],
 +
["grid" , , [0,0,0] ,[200,100,2] , 0x00ff00 , "yellow" ,false , "phong"],
 +
 +
]
 +
);""
 +
 +
Test Comments: Working partially (Just the floor is displayed, not the sphere and grid)
 +
 +
------------------------------------------------------------
 +
 +
-still some axis confusion, or camera confusion.
 +
RENDER3D(
 +
[
 +
["type" , "settings" , "coordinates", "size" , "stroke" , "fill", "helper", "material", "mass" ],
 +
["physics"],
 +
["floor" , , [0,0,-3] ,[50,50,1] , 0x00ff00 , "yellow" ,false , "phong", 10],
 +
["sphere" , , [0,100,0] ,[5,20,20] , 0x00ff00 , "yellow" ,false , "phong", 10],
 +
["sphere" , , [10,100,0] ,[3,20,20] , 0x00ff00 , "yellow" ,false , "phong", 10],
 +
["grid" , , [0,0,0] ,[50,50,2] , 0x00ff00 , "yellow" ,false , "phong"],
 +
 +
]
 +
);""
 +
Test Comments: Working partially (Just the floor is displayed, not the sphere and grid)
 +
 +
------------------------------------------------------------
 +
 +
-look better
 +
RENDER3D(
 +
[
 +
["type" , "settings" , "coordinates", "size" , "stroke" , "fill", "helper", "material", "mass" ],
 +
["physics"],
 +
["floor" , , [0,0,-3] ,[50,50,1] , 0x00ff00 , "yellow" ,false , "phong", 10],
 +
["sphere" , , [0,10,0] ,[5,20,20] , 0x00ff00 , "yellow" ,false , "phong", 10],
 +
["sphere" , , [10,20,0] ,[3,20,20] , 0x00ff00 , "yellow" ,false , "phong", 10],
 +
["grid" , , [0,0,0] ,[50,50,2] , 0x00ff00 , "yellow" ,false , "phong"],
 +
 +
]
 +
);""
 +
Test Comments: Working partially (Just the floor is displayed, not the sphere and grid)
 +
 +
------------------------------------------------------------
 +
 +
 +
 +
 +
// fruits
 +
 +
RENDER3D(
 +
[
 +
["type" , "settings" , "coordinates", "size" , "stroke" , "fill", "helper", "material" ],
 +
["scene" , [
 +
["background"],
 +
['../threefull/examples/textures/terrain/grasslight-big.jpg']
 +
], , , , ,],
 +
["camera" , [
 +
["fov" ,"aspect" ,"near" ,"far", "position" ],
 +
[90 ,"auto" ,0.1 ,1000 , [0,0,30] ]
 +
], , , , ,],
 +
 +
["loa" , "https://kappaomega.zcubes.com/threetest/threefull/other/fruits/apple and orange.glb" , [-10,10,5] ,[1.5,1,1] , 0x00ff00 , "yellow" ,true , "phong"]
 +
]
 +
);
 +
""
 +
Test Comments: Not Working (Just the grass background is displayed)
 +
------------------------------------------------------------
 +
 +
// cups
 +
 +
RENDER3D(
 +
[
 +
["type" , "settings" , "coordinates", "size" , "stroke" , "fill", "helper", "material" ],
 +
["scene" , [
 +
["background"],
 +
['../threefull/examples/textures/terrain/grasslight-big.jpg']
 +
], , , , ,],
 +
["camera" , [
 +
["fov" ,"aspect" ,"near" ,"far", "position" ],
 +
[90 ,"auto" ,0.1 ,1000 , [0,0,30] ]
 +
], , , , ,],
 +
 +
["load" , "https://kappaomega.zcubes.com/threetest/threefull/other/cups/cup.glb" , [-10,10,5] ,[1.5,1,1] , 0x00ff00 , "yellow" ,true , "phong"]
 +
]
 +
);
 +
""
 +
Test Comments: Not Working (Just the grass background is displayed)
 +
------------------------------------------------------------
 +
// html - these positioning did not seem correct. see why.
 +
RENDER3D(
 +
[
 +
["type" , "settings" , "coordinates", "size" , "stroke" , "fill", "helper", "material" ],
 +
["html" ,
 +
"<div>TEST</div>"
 +
, [1,1,1] ,[1.5,1,1] , 0x00ff00 , "yellow" ,true , "phong"],
 +
["html" ,
 +
"<div>TEST2</div>"
 +
, [2,2,2] ,[1.5,1,1] , 0x00ff00 , "yellow" ,true , "phong"],
 +
["html" ,
 +
"<div>TEST2</div>"
 +
, [4,4,2] ,[1.5,1,1] , 0x00ff00 , "yellow" ,true , "phong"],
 +
]
 +
);
 +
""
 +
Test Comments: Not Working
 +
------------------------------------------------------------
 +
 +
// html - these positioning did not seem correct. see why.
 +
RENDER3D(
 +
[
 +
["type" , "settings" , "coordinates", "size" , "stroke" , "fill", "helper", "material" ],
 +
["html" ,
 +
"<div style='font-size:8px'>TEST</div>"
 +
, [1,1,1] ,[1.5,1,1] , 0x00ff00 , "yellow" ,true , "phong"],
 +
["html" ,
 +
"<div style='font-size:8px'>TEST2</div>"
 +
, [20,2,20] ,[1.5,1,1] , 0x00ff00 , "yellow" ,true , "phong"],
 +
["html" ,
 +
"<div style='font-size:8px'>TEST2</div>"
 +
, [40,4,42] ,[1.5,1,1] , 0x00ff00 , "yellow" ,true , "phong"],
 +
]
 +
);
 +
""
 +
Test Comments: Not Working
 +
------------------------------------------------------------
 +
 +
// this did not work correctly
 +
RENDER3D(
 +
[
 +
["type" , "settings" , "coordinates", "size" , "stroke" , "fill", "helper", "material" ,"count"],
 +
["html" , els.map(e=>e.SYMBOL), SPHERICALPOINTS(118,800), [1.5,1,1] , 0x00ff00 , "yellow" ,true , "phong",118]
 +
]
 +
);
 +
""
 +
Test Comments: Working (But zoom-in, zoom-out not working)
 +
 +
-------------------------------------------------------------
 +
 +
// this is too large as font. need to see what to do to make it right
 +
RENDER3D(
 +
[
 +
["type" , "settings" , "coordinates", "size" , "stroke" , "fill", "helper", "material" ,"count"],
 +
["html" , els.map(e=>"<div>"+e.SYMBOL+"</div>"), SPHERICALPOINTS(118,800), [1.5,1,1] , 0x00ff00 , "yellow" ,true , "phong",118]
 +
]
 +
);
 +
""
 +
Test Comments: Working (But zoom-in, zoom-out not working)
 +
 +
-------------------------------------------------------------
 +
 +
// el.add(elchild) seems to be undefined
 +
RENDER3D(
 +
[
 +
["type" , "settings" , "coordinates", "size" , "stroke" , "fill", "helper", "material" ,"count"],
 +
["html" ,
 +
"<div style='font-size:8px'>TEST</div>"
 +
, SPHERICALPOINTS(20,100) ,[1.5,1,1] , 0x00ff00 , "yellow" ,true , "phong", 20]
 +
]
 +
);
 +
""
 +
Test Comments: Working (But zoom-in, zoom-out not working)
 +
 +
--------------------------------------------------------------
 +
 +
RENDER3D(
 +
[
 +
["type" , "settings" , "coordinates", "size" , "stroke" , "fill", "helper", "material" ,"count"],
 +
["html" ,
 +
"<div style='font-size:8px'>TEST</div>"
 +
, SPHERICALPOINTS(20,100) ,[1.5,1,1] , 0x00ff00 , "yellow" ,true , "phong", 20]
 +
]
 +
);
 +
""
 +
Test Comments: Working (But zoom-in, zoom-out not working)
 +
 +
------------------------------------------------------------
 +
 +
// works
 +
RENDER3D(
 +
[
 +
["type" , "settings" , "coordinates", "size" , "stroke" , "fill", "helper", "material" ,"count"],
 +
["html" ,
 +
"TEST"
 +
, SPHERICALPOINTS(117,100) ,[1.5,1,1] , 0x00ff00 , "yellow" ,true , "phong", 117]
 +
]
 +
);
 +
""
 +
Test Comments: Working (But zoom-in, zoom-out not working)
 +
 +
-------------------------------------------------------------
 +
 +
RENDER3D(
 +
[
 +
["type" , "settings" , "coordinates", "size" , "stroke" , "fill", "helper", "material" ,"count"],
 +
["html" ,
 +
"TEST"
 +
, HELICALPOINTS(118,100) ,[1.5,1,1] , 0x00ff00 , "yellow" ,true , "phong", 118]
 +
]
 +
);
 +
""
 +
Test Comments: Not Working
 +
--------------------------------------------------------------
 +
 +
// element names in helical format
 +
LOAD("elements",
 +
function ()
 +
{
 +
RENDER3D(
 +
[
 +
["type" , "settings" , "coordinates", "size" , "stroke" , "fill", "helper", "material" ,"count"],
 +
["html" ,
 +
ELEMENT(1..118).map(e=>e+"")
 +
, HELICALPOINTS(118,100) ,[1.5,1,1] , 0x00ff00 , "yellow" ,true , "phong", 118]
 +
]
 +
);
 +
""
 +
}
 +
 +
)
 +
Test Comments: Not Working
 +
--------------------------------------------------------------
 +
 +
 +
// element names in double helical format with 90 deg rotation
 +
helix1=HELICALPOINTS(118,100);
 +
helix2=ROTATEPOINTS(helix1);
 +
LOAD("elements",
 +
function ()
 +
{
 +
RENDER3D(
 +
[
 +
["type" , "settings" , "coordinates", "size" , "stroke" , "fill", "helper", "material" ,"count"],
 +
["html" ,
 +
ELEMENT(1..118).map(e=>e+""), helix1 ,[1.5,1,1] , 0x00ff00 , "yellow" ,true , "phong", 118],
 +
["html" ,
 +
ELEMENT(1..118).map(e=>e+""), helix2 ,[1.5,1,1] , 0x00ff00 , "yellow" ,true , "phong", 118]
 +
]
 +
);
 +
""
 +
}
 +
 +
)
 +
Test Comments: Not Working
 +
--------------------------------------------------------------
 +
 +
 +
 +
// element names in double helical format
 +
helix1=HELICALPOINTS(118,100);
 +
helix2=ROTATEPOINTS(helix1,Math.PI);
 +
LOAD("elements",
 +
function ()
 +
{
 +
RENDER3D(
 +
[
 +
["type" , "settings" , "coordinates", "size" , "stroke" , "fill", "helper", "material" ,"count"],
 +
["html" ,
 +
ELEMENT(1..118).map(e=>e+""), helix1 ,[1.5,1,1] , 0x00ff00 , "yellow" ,true , "phong", 118],
 +
["html" ,
 +
ELEMENT(1..118).map(e=>e+""), helix2 ,[1.5,1,1] , 0x00ff00 , "yellow" ,true , "phong", 118]
 +
]
 +
);
 +
""
 +
}
 +
 +
)
 +
 +
Test Comments: Working (But all elements are not diaplayed. Font is large)
 +
 +
-------------------------------------------------------------
 +
// dna in double helical format
 +
// d1="ATCG";
 +
// d2="TAGC";
 +
// dna=(1..100@(function (){var r=RANDINT(4);return([d1[r],d2[r]])}) )~;
 +
 +
d1="ATCG";
 +
d2="TAGC";
 +
d=(1..100@(function (){var r=RANDINT(4);return([d1[r],d2[r]])}) )~;
 +
dna=(d[0]~);//.print()
 +
 +
helix1=HELICALPOINTS(118,100);
 +
helix2=ROTATEPOINTS(helix1,Math.PI);
 +
LOAD("elements",
 +
function ()
 +
{
 +
RENDER3D(
 +
[
 +
["type" , "settings" , "coordinates", "size" , "stroke" , "fill", "helper", "material" ,"count"],
 +
["html" ,
 +
dna[0], helix1 ,[1.5,1,1] , 0x00ff00 , "yellow" ,true , "phong", 100],
 +
["html" ,
 +
dna[1], helix2 ,[1.5,1,1] , 0x00ff00 , "yellow" ,true , "phong", 100]
 +
]
 +
);
 +
""
 +
}
 +
 +
)
 +
 +
Test Comments: Working (But pattern is not diaplayed fully. Also zoom-in and zoom-out not happening)
 +
--------------------------------------------------------------
 +
// element names in helical format with conical angle
 +
LOAD("elements",
 +
function ()
 +
{
 +
RENDER3D(
 +
[
 +
["type" , "settings" , "coordinates", "size" , "stroke" , "fill", "helper", "material" ,"count"],
 +
["html" ,
 +
ELEMENT(1..118).map(e=>e+"")
 +
, SCALEPOINTS(HELICALPOINTS(118,100),1..118@(x=>x/118)) ,[1.5,1,1] , 0x00ff00 , "yellow" ,true , "phong", 118]
 +
]
 +
);
 +
""
 +
}
 +
 +
)
 +
 +
Test Comments: Not Working
 +
--------------------------------------------------------------
 +
// how to get rid of the yellow area etc. and get the camera to zoom in right
 +
 +
// point
 +
// sphere and cube - better looking
 +
RENDER3D(
 +
[
 +
["type" ,"fill", "size", "coordinates","material"],
 +
["point", "red",[1,30,30],
 +
[
 +
[1,1,2],
 +
[2,1,2],
 +
[3,1,2]
 +
], [["size"],[0.1]] ]
 +
]
 +
)
 +
""
 +
 +
Test Comments: Not sure if same is expected.Points displayed are not ‘Red’)
 +
 +
// points
 +
RENDER3D(
 +
[
 +
["type" ,"fill", "size", "coordinates","material"],
 +
["points", "red",[1,30,30],
 +
1..100@(x=>[x,1,x]) .map(x=>x[0]) , [["size"],[0.5]] ]
 +
]
 +
)
 +
""
 +
Test Comments: Not Working
 +
--------------------------------------------------------------
  
  

Revision as of 10:48, 2 February 2021

RENDER 3D EXAMPLES WITH ISSUES


// extrude testing heart
// did not work or moved into another one
RENDER3D(
	[
		["type"		,	"settings"	,	"coordinates", "size"	, "stroke"	, "fill", "helper", "material","extrude"	],
		["heart"		,			,	[[1,3,3],[2,3,3],[3,2,1]]		,[50,50,50]		, 0x00ff00		, "yellow" ,false	, "phong",
		[
			["extrudePath"],
			[[[1,2,0],[2,2,3],[3,3,0]]]
		]
		]
	]
);""

Test Comments: Not Working
---------------------------------------------------------------------------------------

// did not work
RENDER3D(
	[
		["type"		,	"settings"	,	"coordinates", "size"	, "stroke"	, "fill", "helper", "material"],
		["curve"		,"helix",		,[1,1,1]		, 0x00ff00		, "yellow" ,false	, "phong"
		]
	]
);""

Test Comments: Working (but Output does not change with change in material e.g standard, normal etc.)
---------------------------------------------------------------------------------------

// visible and invisible object - marking objects to be invisible

RENDER3D(
	[
		["type"		,	"settings"	,	"coordinates", "size"	, "stroke"	, "fill", "helper", "material","visible"],
		["knot"		,"tre",		,[10,1,1]		, 0x00ff00		, "yellow" ,false	, "phong",false],
		["knot"		,"viv",		,[10,1,1]		, 0x00ff00		, "red" ,false	, "phong",true]
	]
);""

Test Comments: Working (but does not work/change if the property is changed to ‘invisible’ for flags ‘true’ or ‘false)

--------------------------------------------------------------------------------------

// with audio

RENDER3D(
	[
		["type"		,	"settings"	,	"coordinates", "size"	, "stroke"	, "fill", "helper", "material"	],
		["audio"		,"../threefull/examples/sounds/376737_Skullbeatz___Bad_Cat_Maste.ogg"			,	[1,3,3]		,[["loop","volume"],[true,0.8]]		, 0x00ff00		, "yellow" ,false	, "phong"],
		["sphere"		,			,	[1,3,3]		,[5,20,20]		, 0x00ff00		, "yellow" ,false	, "phong"]
	]
);""

Test Comments: Working (but audio does not stop even though the output window is closed and also even if the command interface window is closed. Need to close/refresh the zprod window itself)

--------------------------------------------------------------------------------------
// with positional audio

RENDER3D(
	[
		["type"		,	"settings"	,	"coordinates", "size"	, "stroke"	, "fill", "helper", "material"	],
		["audio"		,"../threefull/examples/sounds/376737_Skullbeatz___Bad_Cat_Maste.ogg"			,	[1,3,3]		,[["loop","volume","type","refdistance"],[true,0.8,"positional",20]]		, 0x00ff00		, "yellow" ,false	, "phong"],
		["sphere"		,			,	[1,3,3]		,[5,20,20]		, 0x00ff00		, "yellow" ,false	, "phong"]
	]
);""

Test Comments: Working (but audio does not stop even though the output window is closed and also even if the command interface window is closed. Need to close/refresh the zprod window itself)

--------------------------------------------------------------------------------------
// soldier test from config
RENDER3D(
	[
		["type"		,	"settings"	,	"coordinates", "size"	, "stroke"	, "fill", "helper", "material"	],
		["grid"		,			,	[0,0,0]		,[200,100,2]		, 0x00ff00		, "yellow" ,false	, "phong"],
		["load"		,	"soldier"		,	[1,3,3]		,[5,20,20]		, 0x00ff00		,  ,false	, "phong"]
	]
);
""

Test Comments: Not Working (Soldier is not getting loaded)
--------------------------------------------------------------

// parrot
RENDER3D(
	[
		["type"		,	"settings"	,	"coordinates", "size"	, "stroke"	, "fill", "helper", "material"	],
		["grid"		,			,	[0,0,0]		,[200,100,2]		, 0x00ff00		, "yellow" ,false	, "phong"],
		["load"		,	"parrot"		,	[1,3,3]		,[5,20,20]		, 0x00ff00		,  ,false	, "phong"]
	]
);
""
Test Comments: Not Working (Parrot is not getting loaded)
--------------------------------------------------------------
//text			
RENDER3D(
	[
		["type"		,	"settings"	,	"coordinates", "size"	, "stroke"	, "fill", "helper", "material"	],
		["scene"	,	[
							["background"],
							["red"]
						],
										,	,	,	,	,],
		["camera"	,		[
								["fov"	,"aspect"	,"near"	,"far", "position"			,"focallength"],
								[60		,"auto"		,0.1	,1000 ,	[0,0,5]		, 3]
							],	,	,	,	,],

		["text"		,	"ZCubes"		,	[3,3,3]		,[5,2,20]		, 0x00ff00		, "yellow" ,true	, "backgroundreflection"]
	]
)
""
Test Comments: Not Working (Text is not getting displayed)
--------------------------------------------------------------

// bevelled text
RENDER3D(
	[
		["type"		,	"settings"	,	"coordinates", "size"	, "stroke"	, "fill", "helper", "material"	],
		["scene"	,	[
							["background"],
							["red"]
						],
										,	,	,	,	,],
		["camera"	,		[
								["fov"	,"aspect"	,"near"	,"far", "position"			,"focallength"],
								[60		,"auto"		,0.1	,1000 ,	[0,0,5]		, 3]
							],	,	,	,	,],

		["text"		,	"ZCubes"		,	[3,3,3]		,[5,2,20,true]		, 0x00ff00		, "yellow" ,true	, "backgroundreflection"]
	]
)
""	
Test Comments: Not Working (Text is not getting displayed)
--------------------------------------------------------------


// background and sphere with reflection	
// did not seem to work 		
RENDER3D(
	[
		["type"		,	"settings"	,	"coordinates", "size"	, "stroke"	, "fill", "helper", "material"	],
		["scene"	,	[
							["background"],
							["pisa"]
						],
										,	,	,	,	,],
		["camera"	,		[
								["fov"	,"aspect"	,"near"	,"far", "position"			,"focallength"],
								[60		,"auto"		,0.1	,1000 ,	[0,0,5]		, 3]
							],	,	,	,	,],

		//["cube"		,			,	[2,2,2]		,[0.5,0.1,0.1]		, 0x00ff00		, "yellow" ,true	, "backgroundreflection"],
		["sphere"		,			,	[3,3,3]		,[5,50,50]		, 0x00ff00		, "yellow" ,true	, "backgroundreflection"]
	]
)
""
Test Comments: Not Working 

--------------------------------------------------------------
// svg monalisa load
//if monalisa svg was assigned, this was loaded, but was not visible until pisa was made background then could see it
RENDER3D(
	[
		["type"		,	"settings"	,	"coordinates", "size"	, "stroke"	, "fill", "helper", "material"	],
		["scene"	,	[
							["background"],
							["white"]
						],
										,	,	,	,	,],
		["camera"	,		[
								["fov"	,"aspect"	,"near"	,"far", "position"			,"focallength"],
								[60		,"auto"		,0.1	,1000 ,	[0,0,5]		, 3]
							],	,	,	,	,],

		["load.svg"		,	monalisa		,	[3,3,3]		,[5,50,50]		, 0x00ff00		, ,	, ]
	]
)
""
Test Comments: Not Working 
--------------------------------------------------------------

		
-fbx load - had to change the path for mimetype allowed.
RENDER3D(
	[
		["type"		,	"settings"	,	"coordinates", "size"	, "stroke"	, "fill", "helper", "material"	],
		/*["scene"	,	[
							["background"],
							["pisa"]
						],
										,	,	,	,	,],
		*/
		["camera"	,		[
								["fov"	,"aspect"	,"near"	,"far", "position"			,"focallength"],
								[275/*60	*/	,"auto"		,0.1	,1000 ,	[0,0,5]		, 3]
							],	,	,	,	,],

		//["cube"		,			,	[2,2,2]		,[0.5,0.1,0.1]		, 0x00ff00		, "yellow" ,true	, "backgroundreflection"],
		["load"		,	"../threefull/examples/models/fbx/Samba Dancing.fbx"		,	[3,3,3]		,[5,50,50]		, 0x00ff00		, "yellow" ,true	, ]
	]
)

Test Comments: Not Working 
--------------------------------------------------------------
//RENDER3DDEV(
RENDER3D(
	[
		["type"		,	"settings"	,	"coordinates", "size"	, "stroke"	, "fill", "helper", "material"	],
		["scene"	,	[
							["background"],
							["pisa"]
						],
										,	,	,	,	,],
		["camera"	,		[
								["fov"	,"aspect"	,"near"	,"far", "position"			,"focallength"],
								[60	,"auto"		,0.1	,1000 ,	[0,0,5]		, 3]
							],	,	,	,	,],

		//["cube"		,			,	[2,2,2]		,[0.5,0.1,0.1]		, 0x00ff00		, "yellow" ,true	, "backgroundreflection"],
		["sphere"		,			,	[3,3,3]		,[5,50,50]		, 0x00ff00		, "yellow" ,true	, "backgroundreflection"]
	]
)
""
Test Comments: Not Working 
--------------------------------------------------------------
// load objects with ferrari, and do this to rotate the wheels. on #bg
RENDER3D(
	[
		["type"		,	"name"		, 	"animation"			],
		["change"	,	"wheel_fl"	,	[["rpmx"],[-60]]	],
		["change"	,	"wheel_fr"	,	[["rpmx"],[-60]]	],
		["change"	,	"wheel_rl"	,	[["rpmx"],[-60]]	],
		["change"	,	"wheel_rr"	,	[["rpmx"],[-60]]	]
	],
	"#bg"
);""

Test Comments: Not Working
------------------------------------------------------------

// rose 2
RENDER3D(		
	[
	["type"		,	"settings"	,	"coordinates", "size"	, "stroke"	, "fill", "helper", "material"	],
	["scene"	,		[
							["background"],
							[0xf0f0f0]
						],	,	,	,	,],

	["load"		,	"../threefull/other/rose 2.obj"	,	[-10,10,5]		,[1.5,1,1]		, 0x00ff00		, "yellow" ,true	, "phong"]
	]
);
""
Test Comments: Not Working
------------------------------------------------------------
RENDER3D(		
	[
	["type"		,	"settings"	,	"coordinates", "size"	, "stroke"	, "fill", "helper", "material"	],
	["scene"	,		[
							["background"],
							['../threefull/examples/textures/terrain/grasslight-big.jpg']
						],	,	,	,	,],
	["camera"	,		[
							["fov"	,"aspect"	,"near"	,"far", "position"	],
							[90	,"auto"		,0.1	,1000 ,	[0,0,30]		]
						],	,	,	,	,],

	["load"		,	"https://kappaomega.zcubes.com/threetest/threefull/other/rose/rose 2.obj"	,	[-10,10,5]		,[1.5,1,1]		, 0x00ff00		, "yellow" ,true	, "phong"]
	]
);
""
Test Comments: Not Working (Background displayed, Rose not displayed)

------------------------------------------------------------
RENDER3D(		
	[
	["type"		,	"settings"	,	"coordinates", "size"	, "stroke"	, "fill", "helper", "material"	],
	["scene"	,		[
							["background"],
							['../threefull/examples/textures/terrain/grasslight-big.jpg']
						],	,	,	,	,],
	["camera"	,		[
							["fov"	,"aspect"	,"near"	,"far", "position"	],
							[90	,"aut"		,0.1	,1000 ,	[0,0,30]		]
						],	,	,	,	,],

	["load"		,	"../threefull/other/female/rose.obj"	,	[-10,10,5]		,[1.5,1,1]		, 0x00ff00		, "yellow" ,true	, "phong"]
	]
);
""
Test Comments: Not Working (Background displayed, Rose not displayed)

------------------------------------------------------------
// gave black
RENDER3D(		
	[
	["type"		,	"settings"	,	"coordinates", "size"	, "stroke"	, "fill", "helper", "material"	],
	["scene"	,		[
							["background"],
							['../threefull/examples/textures/terrain/grasslight-big.jpg']
						],	,	,	,	,],
	["camera"	,		[
							["fov"	,"aspect"	,"near"	,"far", "position"	],
							[90	,"auto"		,0.1	,1000 ,	[0,0,30]		]
						],	,	,	,	,],

	["load"		,	"https://kappaomega.zcubes.com/threetest/threefull/other/rose2/rose.obj"	,	[-10,10,5]		,[1.5,1,1]		, 0x00ff00		, "yellow" ,true	, "phong"]
	]
);
""
Test Comments: Not Working (Background displayed, Rose not displayed)

------------------------------------------------------------


RENDER3D(		
	[
	["type"		,	"settings"	,	"coordinates", "size"	, "stroke"	, "fill", "helper", "material"	],
	["scene"	,		[
							["background"],
							['../threefull/examples/textures/terrain/grasslight-big.jpg']
						],	,	,	,	,],
	["camera"	,		[
							["fov"	,"aspect"	,"near"	,"far", "position"	],
							[90	,"auto"		,0.1	,1000 ,	[0,0,30]		]
						],	,	,	,	,],

	["load"		,	"https://kappaomega.zcubes.com/threetest/threefull/other/rose3/rose 2.glb"	,	[-10,10,5]		,[1.5,1,1]		, 0x00ff00		, "yellow" ,true	, "phong"]
	]
);
""
Test Comments: Not Working (Background displayed, Rose not displayed)

------------------------------------------------------------


RENDER3D(		
	[
	["type"		,	"settings"	,	"coordinates", "size"	, "stroke"	, "fill", "helper", "material"	],
	["scene"	,		[
							["background"],
							['../threefull/examples/textures/terrain/grasslight-big.jpg']
						],	,	,	,	,],
	["camera"	,		[
							["fov"	,"aspect"	,"near"	,"far", "position"	],
							[90	,"auto"		,0.1	,1000 ,	[0,0,30]		]
						],	,	,	,	,],

	["load"		,	"https://kappaomega.zcubes.com/threetest/threefull/other/rose3/rose 2.fbx"	,	[-10,10,5]		,[1.5,1,1]		, 0x00ff00		, "yellow" ,true	, "phong"]
	]
);
""
Test Comments: Not Working (Background displayed, Rose not displayed)
------------------------------------------------------------
//glb shows rose right. really tiny and had to be scaled. why?
// made scale to be 10
RENDER3D(		
	[
	["type"		,	"settings"	,	"coordinates", "size"	, "stroke"	, "fill", "helper", "material"	],
	["scene"	,		[
							["background"],
							['../threefull/examples/textures/terrain/grasslight-big.jpg']
						],	,	,	,	,],
	["camera"	,		[
							["fov"	,"aspect"	,"near"	,"far", "position"	],
							[90	,"auto"		,0.1	,1000 ,	[0,0,30]		]
						],	,	,	,	,],

	["load"		,	"https://kappaomega.zcubes.com/threetest/threefull/other/rose3/rose 2.glb"	,	[0,0,0]		,[10,10,10]		, 0x00ff00		,  ,true	, "phong"]
	]
);
""

Test Comments: Not Working (Just the grass background is displayed)
------------------------------------------------------------


//alien obj file
// why is it so far to the top?
RENDER3D(		
	[
	["type"		,	"settings"	,	"coordinates", "size"	, "stroke"	, "fill", "helper", "material"	],
	["scene"	,		[
							["background"],
							['../threefull/examples/textures/terrain/grasslight-big.jpg']
						],	,	,	,	,],
	["camera"	,		[
							["fov"	,"aspect"	,"near"	,"far", "position"	],
							[90	,"auto"		,0.1	,1000 ,	[0,0,30]		]
						],	,	,	,	,],

	["load"		,	"https://kappaomega.zcubes.com/threetest/threefull/other/alien/alien.obj"	,	[0,0,0]		,[10,10,10]		, 0x00ff00		,  ,true	, "phong"]
	]
);
""
Test Comments: Not Working (Just the grass background is displayed)
------------------------------------------------------------



//cubes fbx file. did not work since this is old version
RENDER3D(		
	[
	["type"		,	"settings"	,	"coordinates", "size"	, "stroke"	, "fill", "helper", "material"	],
	["scene"	,		[
							["background"],
							['../threefull/examples/textures/terrain/grasslight-big.jpg']
						],	,	,	,	,],
	["camera"	,		[
							["fov"	,"aspect"	,"near"	,"far", "position"	],
							[90	,"auto"		,0.1	,1000 ,	[0,0,30]		]
						],	,	,	,	,],

	["load"		,	"https://kappaomega.zcubes.com/threetest/threefull/other/cubes/cubes.fbx"	,	[0,0,0]		,[10,10,10]		, 0x00ff00		,  ,true	, "phong"]
	]
);
""
Test Comments: Not Working (Just the grass background is displayed)
------------------------------------------------------------

//cubes glb file. did not work since this is old version
RENDER3D(		
	[
	["type"		,	"settings"	,	"coordinates", "size"	, "stroke"	, "fill", "helper", "material"	],
	["scene"	,		[
							["background"],
							['../threefull/examples/textures/terrain/grasslight-big.jpg']
						],	,	,	,	,],
	["camera"	,		[
							["fov"	,"aspect"	,"near"	,"far", "position"	],
							[90	,"auto"		,0.1	,1000 ,	[0,0,30]		]
						],	,	,	,	,],

	["load"		,	"https://kappaomega.zcubes.com/threetest/threefull/other/cubes/cubes.glb"	,	[0,0,0]		,[10,10,10]		, 0x00ff00		,  ,true	, "phong"]
	]
);
""
Test Comments: Not Working (Just the grass background is displayed)
------------------------------------------------------------



//glb rendered, flb had issues with transparency
RENDER3D(		
	[
	["type"		,	"settings"	,	"coordinates", "size"	, "stroke"	, "fill", "helper", "material"	],
	["scene"	,		[
							["background"],
							['../threefull/examples/textures/terrain/grasslight-big.jpg']
						],	,	,	,	,],
	["camera"	,		[
							["fov"	,"aspect"	,"near"	,"far", "position"	],
							[90	,"auto"		,0.1	,1000 ,	[0,0,30]		]
						],	,	,	,	,],

	["load"		,	"https://kappaomega.zcubes.com/threetest/threefull/other/rose/rose flower.glb"	,	[0,0,0]		,[10,10,10]		, 0x00ff00		,  ,true	, "phong"]
	]
);
""
Test Comments: Not Working (Just the grass background is displayed)
------------------------------------------------------------

RENDER3D(		
	[
	["type"		,	"settings"	,	"coordinates", "size"	, "stroke"	, "fill", "helper", "material"	],
	["scene"	,		[
							["background"],
							['../threefull/examples/textures/terrain/grasslight-big.jpg']
						],	,	,	,	,],
	["camera"	,		[
							["fov"	,"aspect"	,"near"	,"far", "position"	],
							[90	,"auto"		,0.1	,1000 ,	[0,0,30]		]
						],	,	,	,	,],

	["load"		,	"https://kappaomega.zcubes.com/threetest/threefull/other/rose/rose flower 2.gltf"	,	[0,0,0]		,[10,10,10]		, 0x00ff00		,  ,true	, "phong"]
	]
);
""
Test Comments: Not Working (Just the grass background is displayed)
------------------------------------------------------------



RENDER3D(		
	[
	["type"		,	"settings"	,	"coordinates", "size"	, "stroke"	, "fill", "helper", "material"	],
	["scene"	,		[
							["background"],
							['../threefull/examples/textures/terrain/grasslight-big.jpg']
						],	,	,	,	,],
	["camera"	,		[
							["fov"	,"aspect"	,"near"	,"far", "position"	],
							[90	,"auto"		,0.1	,1000 ,	[0,0,30]		]
						],	,	,	,	,],

	["load"		,	"https://kappaomega.zcubes.com/threetest/threefull/other/rose/rose flower 5.gltf"	,	[0,0,0]		,[10,10,10]		, 0x00ff00		,  ,true	, "phong"]
	]
);
""
Test Comments: Not Working (Just the grass background is displayed)
------------------------------------------------------------


// physics started working after quaternion of plane was set 2:15 PM 12/8/2020
// basics work in this
RENDER3D(
	[
		["type"		,	"settings"	,	"coordinates", "size"	, "stroke"	, "fill", "helper", "material", "mass"	],
		["physics"],
		["floor"		,			,	[0,0,-3]		,[500,1,500]		, 0x00ff00		, "yellow" ,false	, "phong", 10],
		["sphere"		,			,	[0,10,0]		,[5,20,20]		, 0x00ff00		, "yellow" ,false	, "phong", 10],
		["sphere"		,			,	[10,10,0]		,[3,20,20]		, 0x00ff00		, "yellow" ,false	, "phong", 10],
		["grid"		,			,	[0,0,0]		,[200,100,2]		, 0x00ff00		, "yellow" ,false	, "phong"],
		
	]
);""

Test Comments: Working partially (Just the floor is displayed, not the sphere and grid)

------------------------------------------------------------

-still some axis confusion, or camera confusion.
RENDER3D(
	[
		["type"		,	"settings"	,	"coordinates", "size"	, "stroke"	, "fill", "helper", "material", "mass"	],
		["physics"],
		["floor"		,			,	[0,0,-3]		,[50,50,1]		, 0x00ff00		, "yellow" ,false	, "phong", 10],
		["sphere"		,			,	[0,100,0]		,[5,20,20]		, 0x00ff00		, "yellow" ,false	, "phong", 10],
		["sphere"		,			,	[10,100,0]		,[3,20,20]		, 0x00ff00		, "yellow" ,false	, "phong", 10],
		["grid"		,			,	[0,0,0]		,[50,50,2]		, 0x00ff00		, "yellow" ,false	, "phong"],
		
	]
);""
Test Comments: Working partially (Just the floor is displayed, not the sphere and grid)

------------------------------------------------------------

-look better
RENDER3D(
	[
		["type"		,	"settings"	,	"coordinates", "size"	, "stroke"	, "fill", "helper", "material", "mass"	],
		["physics"],
		["floor"		,			,	[0,0,-3]		,[50,50,1]		, 0x00ff00		, "yellow" ,false	, "phong", 10],
		["sphere"		,			,	[0,10,0]		,[5,20,20]		, 0x00ff00		, "yellow" ,false	, "phong", 10],
		["sphere"		,			,	[10,20,0]		,[3,20,20]		, 0x00ff00		, "yellow" ,false	, "phong", 10],
		["grid"		,			,	[0,0,0]		,[50,50,2]		, 0x00ff00		, "yellow" ,false	, "phong"],
		
	]
);""
Test Comments: Working partially (Just the floor is displayed, not the sphere and grid)

------------------------------------------------------------




// fruits

RENDER3D(		
	[
	["type"		,	"settings"	,	"coordinates", "size"	, "stroke"	, "fill", "helper", "material"	],
	["scene"	,		[
							["background"],
							['../threefull/examples/textures/terrain/grasslight-big.jpg']
						],	,	,	,	,],
	["camera"	,		[
							["fov"	,"aspect"	,"near"	,"far", "position"	],
							[90	,"auto"		,0.1	,1000 ,	[0,0,30]		]
						],	,	,	,	,],

	["loa"		,	"https://kappaomega.zcubes.com/threetest/threefull/other/fruits/apple and orange.glb"	,	[-10,10,5]		,[1.5,1,1]		, 0x00ff00		, "yellow" ,true	, "phong"]
	]
);
""
Test Comments: Not Working (Just the grass background is displayed)
------------------------------------------------------------

// cups

RENDER3D(		
	[
	["type"		,	"settings"	,	"coordinates", "size"	, "stroke"	, "fill", "helper", "material"	],
	["scene"	,		[
							["background"],
							['../threefull/examples/textures/terrain/grasslight-big.jpg']
						],	,	,	,	,],
	["camera"	,		[
							["fov"	,"aspect"	,"near"	,"far", "position"	],
							[90	,"auto"		,0.1	,1000 ,	[0,0,30]		]
						],	,	,	,	,],

	["load"		,	"https://kappaomega.zcubes.com/threetest/threefull/other/cups/cup.glb"	,	[-10,10,5]		,[1.5,1,1]		, 0x00ff00		, "yellow" ,true	, "phong"]
	]
);
""
Test Comments: Not Working (Just the grass background is displayed)
------------------------------------------------------------
// html - these positioning did not seem correct. see why.
RENDER3D(		
	[
	["type"			,	"settings"	,	"coordinates", "size"	, "stroke"	, "fill", "helper", "material"	],
	["html"	,
						"<div>TEST</div>"
									,	[1,1,1]		,[1.5,1,1]		, 0x00ff00		, "yellow" ,true	, "phong"],
	["html"	,
						"<div>TEST2</div>"
									,	[2,2,2]		,[1.5,1,1]		, 0x00ff00		, "yellow" ,true	, "phong"],
	["html"	,
						"<div>TEST2</div>"
									,	[4,4,2]		,[1.5,1,1]		, 0x00ff00		, "yellow" ,true	, "phong"],
	]
);
""
Test Comments: Not Working 
------------------------------------------------------------

// html - these positioning did not seem correct. see why.
RENDER3D(		
	[
	["type"			,	"settings"	,	"coordinates", "size"	, "stroke"	, "fill", "helper", "material"	],
	["html"	,
	 "<div style='font-size:8px'>TEST</div>"
									,	[1,1,1]		,[1.5,1,1]		, 0x00ff00		, "yellow" ,true	, "phong"],
	["html"	,
						"<div style='font-size:8px'>TEST2</div>"
									,	[20,2,20]		,[1.5,1,1]		, 0x00ff00		, "yellow" ,true	, "phong"],
	["html"	,
						"<div style='font-size:8px'>TEST2</div>"
									,	[40,4,42]		,[1.5,1,1]		, 0x00ff00		, "yellow" ,true	, "phong"],
	]
);
""
Test Comments: Not Working 
------------------------------------------------------------

// this did not work correctly
RENDER3D(		
	[
		["type"			,	"settings"	,	"coordinates", "size"	, "stroke"	, "fill", "helper", "material"	,"count"],
		["html"	,	els.map(e=>e.SYMBOL),	SPHERICALPOINTS(118,800),	[1.5,1,1]		, 0x00ff00		, "yellow" ,true	, "phong",118]
	]
);
""
Test Comments: Working (But zoom-in, zoom-out not working)

-------------------------------------------------------------

// this is too large as font. need to see what to do to make it right
RENDER3D(		
	[
		["type"			,	"settings"	,	"coordinates", "size"	, "stroke"	, "fill", "helper", "material"	,"count"],
		["html"	,	els.map(e=>"<div>"+e.SYMBOL+"</div>"),	SPHERICALPOINTS(118,800),	[1.5,1,1]		, 0x00ff00		, "yellow" ,true	, "phong",118]
	]
);
""
Test Comments: Working (But zoom-in, zoom-out not working)

-------------------------------------------------------------

// el.add(elchild) seems to be undefined
RENDER3D(		
	[
	["type"			,	"settings"	,	"coordinates", "size"	, "stroke"	, "fill", "helper", "material"	,"count"],
	["html"	,
	 "<div style='font-size:8px'>TEST</div>"
									,	SPHERICALPOINTS(20,100)		,[1.5,1,1]		, 0x00ff00		, "yellow" ,true	, "phong", 20]
	]
);
""
Test Comments: Working (But zoom-in, zoom-out not working)

--------------------------------------------------------------

RENDER3D(		
	[
	["type"			,	"settings"	,	"coordinates", "size"	, "stroke"	, "fill", "helper", "material"	,"count"],
	["html"	,
	 "<div style='font-size:8px'>TEST</div>"
									,	SPHERICALPOINTS(20,100)		,[1.5,1,1]		, 0x00ff00		, "yellow" ,true	, "phong", 20]
	]
);
""
Test Comments: Working (But zoom-in, zoom-out not working)

------------------------------------------------------------

// works
RENDER3D(		
	[
	["type"			,	"settings"	,	"coordinates", "size"	, "stroke"	, "fill", "helper", "material"	,"count"],
	["html"	,
	 "TEST"
									,	SPHERICALPOINTS(117,100)		,[1.5,1,1]		, 0x00ff00		, "yellow" ,true	, "phong", 117]
	]
);
""
Test Comments: Working (But zoom-in, zoom-out not working)

-------------------------------------------------------------

RENDER3D(		
	[
	["type"			,	"settings"	,	"coordinates", "size"	, "stroke"	, "fill", "helper", "material"	,"count"],
	["html"	,
	 "TEST"
									,	HELICALPOINTS(118,100)		,[1.5,1,1]		, 0x00ff00		, "yellow" ,true	, "phong", 118]
	]
);
""
Test Comments: Not Working
--------------------------------------------------------------

// element names in helical format
LOAD("elements",
	 function ()
	 {
		RENDER3D(		
			[
			["type"			,	"settings"	,	"coordinates", "size"	, "stroke"	, "fill", "helper", "material"	,"count"],
			["html"	,
			 ELEMENT(1..118).map(e=>e+"")
											,	HELICALPOINTS(118,100)		,[1.5,1,1]		, 0x00ff00		, "yellow" ,true	, "phong", 118]
			]
		);
		""
	 }
	 
	)
Test Comments: Not Working
--------------------------------------------------------------


// element names in double helical format with 90 deg rotation
helix1=HELICALPOINTS(118,100);
helix2=ROTATEPOINTS(helix1);
LOAD("elements",
	 function ()
	 {
		RENDER3D(		
			[
			["type"			,	"settings"	,	"coordinates", "size"	, "stroke"	, "fill", "helper", "material"	,"count"],
			["html"	,
			 ELEMENT(1..118).map(e=>e+""),	helix1		,[1.5,1,1]		, 0x00ff00		, "yellow" ,true	, "phong", 118],
			["html"	,
			 ELEMENT(1..118).map(e=>e+""),	helix2		,[1.5,1,1]		, 0x00ff00		, "yellow" ,true	, "phong", 118]
			]
		);
		""
	 }
	 
	)
Test Comments: Not Working
--------------------------------------------------------------



// element names in double helical format
helix1=HELICALPOINTS(118,100);
helix2=ROTATEPOINTS(helix1,Math.PI);
LOAD("elements",
	 function ()
	 {
		RENDER3D(		
			[
			["type"			,	"settings"	,	"coordinates", "size"	, "stroke"	, "fill", "helper", "material"	,"count"],
			["html"	,
			 ELEMENT(1..118).map(e=>e+""),	helix1		,[1.5,1,1]		, 0x00ff00		, "yellow" ,true	, "phong", 118],
			["html"	,
			 ELEMENT(1..118).map(e=>e+""),	helix2		,[1.5,1,1]		, 0x00ff00		, "yellow" ,true	, "phong", 118]
			]
		);
		""
	 }
	 
	)

Test Comments: Working (But all elements are not diaplayed. Font is large)

-------------------------------------------------------------
// dna in double helical format
// d1="ATCG";
// d2="TAGC";
// dna=(1..100@(function (){var r=RANDINT(4);return([d1[r],d2[r]])}) )~;

d1="ATCG";
d2="TAGC";
d=(1..100@(function (){var r=RANDINT(4);return([d1[r],d2[r]])}) )~;
dna=(d[0]~);//.print()

helix1=HELICALPOINTS(118,100);
helix2=ROTATEPOINTS(helix1,Math.PI);
LOAD("elements",
	 function ()
	 {
		RENDER3D(		
			[
			["type"			,	"settings"	,	"coordinates", "size"	, "stroke"	, "fill", "helper", "material"	,"count"],
			["html"	,
			 dna[0],	helix1		,[1.5,1,1]		, 0x00ff00		, "yellow" ,true	, "phong", 100],
			["html"	,
			 dna[1],	helix2		,[1.5,1,1]		, 0x00ff00		, "yellow" ,true	, "phong", 100]
			]
		);
		""
	 }
	 
	)

Test Comments: Working (But pattern is not diaplayed fully. Also zoom-in and zoom-out not happening)
--------------------------------------------------------------
// element names in helical format with conical angle
LOAD("elements",
	 function ()
	 {
		RENDER3D(		
			[
			["type"			,	"settings"	,	"coordinates", "size"	, "stroke"	, "fill", "helper", "material"	,"count"],
			["html"	,
			 ELEMENT(1..118).map(e=>e+"")
											,	SCALEPOINTS(HELICALPOINTS(118,100),1..118@(x=>x/118))		,[1.5,1,1]		, 0x00ff00		, "yellow" ,true	, "phong", 118]
			]
		);
		""
	 }
	 
	)

Test Comments: Not Working
--------------------------------------------------------------
// how to get rid of the yellow area etc. and get the camera to zoom in right

// point 
// sphere and cube - better looking
RENDER3D(
	[
		["type"	,"fill", "size", "coordinates","material"],
		["point", "red",[1,30,30],
								[
									[1,1,2],	
									[2,1,2],	
									[3,1,2]	
								],	[["size"],[0.1]]	]
	]
)
""

Test Comments: Not sure if same is expected.Points displayed are not ‘Red’)

// points
RENDER3D(
	[
		["type"	,"fill", "size", "coordinates","material"],
		["points", "red",[1,30,30],
								1..100@(x=>[x,1,x]) .map(x=>x[0]) ,	[["size"],[0.5]]	]
	]
)
""
Test Comments: Not Working
--------------------------------------------------------------