Difference between revisions of "RENDER 3D EXAMPLES"

From ZCubes Wiki
Jump to navigation Jump to search
Line 11: Line 11:
  
 
ZCubes RENDER 3D feature allows users to make fascinatingly complex drawings and animations by simply using the spreadsheet, array or table features. Various editing options (such as environment, material, camera etc.) allow the user to view the created drawing in different angles and effects.
 
ZCubes RENDER 3D feature allows users to make fascinatingly complex drawings and animations by simply using the spreadsheet, array or table features. Various editing options (such as environment, material, camera etc.) allow the user to view the created drawing in different angles and effects.
 +
  
 
=Dini's surface=
 
=Dini's surface=
 
+
<syntaxhighlight lang="javascript">
 
RENDER3D(
 
RENDER3D(
 
[
 
[
Line 37: Line 38:
 
);
 
);
 
""
 
""
 +
</syntaxhighlight>
  
 
[[File: Dinis_surface.png]]
 
[[File: Dinis_surface.png]]
Line 51: Line 53:
 
""
 
""
  
 +
</syntaxhighlight>
 +
[[File: Dinis_surface.png]]
  
 
=6-sided-cone=
 
=6-sided-cone=
 +
<syntaxhighlight lang="javascript">
  
 
RENDER3D(
 
RENDER3D(
Line 64: Line 69:
 
//radius-5, height-10, sides-6
 
//radius-5, height-10, sides-6
  
 +
</syntaxhighlight>
 +
[[File: Dinis_surface.png]]
  
 
=octahedron=
 
=octahedron=
 +
<syntaxhighlight lang="javascript">
  
 
RENDER3D(
 
RENDER3D(
Line 74: Line 82:
 
);
 
);
 
""
 
""
 
+
</syntaxhighlight>
 +
[[File: Dinis_surface.png]]
  
 
=Extruder=
 
=Extruder=
 +
<syntaxhighlight lang="javascript">
  
 
RENDER3D(
 
RENDER3D(
Line 90: Line 100:
 
);
 
);
 
""
 
""
 +
</syntaxhighlight>
 +
[[File: Dinis_surface.png]]
 +
  
 
=Sheet=
 
=Sheet=
 +
<syntaxhighlight lang="javascript">
 +
 
RENDER3D(
 
RENDER3D(
 
[
 
[
Line 113: Line 128:
 
""
 
""
  
 
+
</syntaxhighlight>
 
+
[[File: Dinis_surface.png]]
  
  

Revision as of 04:46, 16 December 2020

<<RENDER MAIN PAGE

<<Additional Examples

<<RENDER 3D EXAMPLES

<< Z3 home


ZCubes RENDER 3D Examples

ZCubes RENDER 3D feature allows users to make fascinatingly complex drawings and animations by simply using the spreadsheet, array or table features. Various editing options (such as environment, material, camera etc.) allow the user to view the created drawing in different angles and effects.


Dini's surface

RENDER3D(
	[
		["type"		,	"settings"	,	"coordinates", "size"	, "stroke"	, "fill", "helper", "material"	],
		["parametricgeometry"		,	
				function mf(u,v,target)
				{
					var a=1;
					var b=0.2;
					u=u*4*(Math.PI)
					v=v*2; 
					
					
					x	=	a*COS(u)*SIN(v)	
					y	=	a*SIN(u)*SIN(v)
					z	=	MIN(MAX(a*(COS(v)+LN(TAN(1/2*v)))+b*u,-100),100);
					
					target.set(x,y,z);
				}

		,	[1,3,3]		,[5,5,50,50]		, 0x00ff00		, "zrange" ,false	, "phong"]
	]
);
""

Dinis surface.png


Cone

RENDER3D( [ ["type" ,"fill"], ["cone", "red"] ] ) ""

</syntaxhighlight> Dinis surface.png

6-sided-cone

RENDER3D(
	[
		["type"		,"fill", "size"],
		["cone", "red",[5,10,6]]
	]
);
""

//radius-5, height-10, sides-6

Dinis surface.png

octahedron

RENDER3D(
	[
		["type"		,"fill", "size"],
		["octahedron", "red",]
	]
);
""

Dinis surface.png

Extruder

RENDER3D(
	[
		["type"		,	"settings"	,	"coordinates", "size"	, "stroke"	, "fill", "helper", "material","extrude"	],
		["extruder"		,[[1,3,3],[2,3,3],[3,2,1]],		,[1,1,1]		, 0x00ff00		, "yellow" ,false	, "phong",
		[
			["extrudePath"],
			[[[1,2,0],[2,2,2],[3,3,0]]]
		]
		]
	]
);
""

Dinis surface.png


Sheet

RENDER3D(
	[
		["type"		,	"settings"	,	"coordinates", "size"	, "stroke"	, "fill", "helper", "material"	],
		["parametricgeometry"		,	
				function mf(u,v,target)
				{
					a=4;
					b=1;
					
					var x=cos(v)*((cos(u)/4)+1)
					var y=sin(v)*((cos(u)/4)+1)
					var z=sin(u)/4
					target.set(x,y,z);
					
				}

		,	[1,3,3]		,[5,5,20,20]		, 0x00ff00		, "yellow" ,false	, "normal"]
	]
);
""

Dinis surface.png










<<RENDER MAIN PAGE

<<Additional Examples

<<RENDER 3D EXAMPLES

<< Z3 home