Difference between revisions of "RENDER 3D EXAMPLES ToBeRectified"

From ZCubes Wiki
Jump to navigation Jump to search
Line 43: Line 43:
  
 
Test Comments: Working (but does not work/change if the property is changed to ‘invisible’ for flags ‘true’ or ‘false)
 
Test Comments: Working (but does not work/change if the property is changed to ‘invisible’ for flags ‘true’ or ‘false)
Image: trefoil_vivian_2.png
+
 
 
--------------------------------------------------------------------------------------
 
--------------------------------------------------------------------------------------
  
Line 72: Line 72:
  
 
--------------------------------------------------------------------------------------
 
--------------------------------------------------------------------------------------
 +
// 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
 +
--------------------------------------------------------------
 +
  
  
  
 
</pre>
 
</pre>

Revision as of 10:34, 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 
--------------------------------------------------------------