three实现三维文字圆球和人体动画效果代码

代码语言:html

所属分类:三维

代码描述:three实现三维文字圆球和人体动画效果代码,可以调整参数。

代码标签: three 三维 文字 圆球 人体 动画

下面为部分代码预览,完整代码请点击下载或在bfwstudio webide中打开

<!DOCTYPE html>
<html lang="en" >

<head>

 
<meta charset="UTF-8">
 

 
 
 
 
<style>
body
{
 
min-height: 100vh;
 
background: black;
 
display: flex;
 
align-items: center;
 
justify-content: center;
}

canvas
{
 
max-width: 100vw;
 
max-height: 100vh;
 
width: auto !important;
 
height: auto !important;
}
</style>


</head>

<body>
 
<canvas id="canvas"></canvas>

<script type="importmap">
 
{
   
"imports": {
     
"three": "https://unpkg.com/three@0.147.0/build/three.module.js",
     
"three/examples/": "https://unpkg.com/three@0.147.0/examples/",
     
"meshline": "https://unpkg.com/meshline@3.1.6/dist/index.js",
     
"@callumacrae/utils/": "https://unpkg.com/@callumacrae/utils@0.3.5/built/",
     
"seed-random": "https://cdn.skypack.dev/seed-random@2.2.0",
       
"tweakpane": "https://cdn.skypack.dev/tweakpane@3.1.1",
         
"@tweakpane/plugin-essentials": "https://cdn.skypack.dev/@tweakpane/plugin-essentials@0.1.5"
   
}
 
}
</script>

<script type="nojs" id="figure-points">
  [[-29.335500717163086,71.70600128173828],[-29.662738800048828,73.3731689453125],[-30.075998306274414,75.02145385742188],[-30.532085418701172,76.65847778320312],[-31.012876510620117,78.2884292602539],[-31.508359909057617,79.91398620605469],[-32.012115478515625,81.53699493408203],[-32.51972961425781,83.15880584716797],[-33.02704620361328,84.78070831298828],[-33.531070709228516,86.40364074707031],[-34.02845764160156,88.02861022949219],[-34.51496887207031,89.65686798095703],[-34.98640441894531,91.28955841064453],[-35.43692398071289,92.92813110351562],[-35.85814666748047,94.574462890625],[-36.23749923706055,96.23089599609375],[-36.71079635620117,95.55120086669922],[-37.285240173339844,93.9519271850586],[-37.90901565551758,92.37122344970703],[-38.57462692260742,90.80764770507812],[-39.27637481689453,89.25995635986328],[-40.00924301147461,87.72673797607422],[-40.76921463012695,86.2067642211914],[-41.55295181274414,84.69889831542969],[-42.35731506347656,83.20193481445312],[-43.179569244384766,81.7147216796875],[-44.0173225402832,80.2361831665039],[-44.8677978515625,78.76492309570312],[-45.72854995727539,77.29964447021484],[-46.59665298461914,75.83870697021484],[-47.46796798706055,74.37967681884766],[-48.337345123291016,72.91950225830078],[-49.19490051269531,71.45236206054688],[-50.017974853515625,69.96570587158203],[-50.795677185058594,68.45472717285156],[-51.55769729614258,66.93576049804688],[-52.311981201171875,65.41293334960938],[-53.06165313720703,63.88783645629883],[-53.80870056152344,62.3614501953125],[-54.5545654296875,60.83448028564453],[-55.30039978027344,59.307498931884766],[-56.04724884033203,57.7810173034668],[-56.79619216918945,56.255558013916016],[-57.54869842529297,54.73185729980469],[-58.30680847167969,53.2109375],[-59.07377243041992,51.69445037841797],[-59.85633850097656,50.185977935791016],[-60.67144775390625,48.69490051269531],[-61.50198745727539,47.2122917175293],[-62.325111389160156,45.725555419921875],[-63.139102935791016,44.23379135131836],[-63.94226837158203,42.73617935180664],[-64.73298645019531,41.23195266723633],[-65.50970458984375,39.720462799072266],[-66.2702407836914,38.20075988769531],[-67.01174926757812,36.67168426513672],[-67.73043060302734,35.13176727294922],[-68.42131042480469,33.57917022705078],[-69.07685089111328,32.011356353759766],[-69.6854476928711,30.424766540527344],[-70.22787475585938,28.81446075439453],[-70.58013153076172,27.15367889404297],[-70.95122528076172,25.495420455932617],[-71.3956298828125,23.855318069458008],[-71.92179870605469,22.239643096923828],[-72.53167724609375,20.653656005859375],[-73.21211242675781,19.09653663635254],[-73.92572784423828,17.554241180419922],[-74.65556335449219,16.019691467285156],[-75.4343490600586,14.509297370910645],[-76.24407958984375,13.015249252319336],[-77.082275390625,11.536982536315918],[-77.9535903930664,10.078011512756348],[-78.87144470214844,8.647955894470215],[-79.87712860107422,7.278912544250488],[-81.25247192382812,6.429983615875244],[-82.33027648925781,7.593984603881836],[-82.4536361694336,9.282267570495605],[-82.17289733886719,10.95458698272705],[-82.65364837646484,9.890633583068848],[-83.42161560058594,8.375035285949707],[-84.2994613647461,6.920474529266357],[-85.31291198730469,5.557562828063965],[-86.54248809814453,4.391499996185303],[-88.04645538330078,4.380654811859131],[-88.38526153564453,6.022988319396973],[-88.25248718261719,7.715841293334961],[-87.95806884765625,9.389220237731934],[-88.32785034179688,8.950738906860352],[-89.11373901367188,7.444064140319824],[-89.9582290649414,5.969521522521973],[-90.88509368896484,4.545567989349365],[-91.94424438476562,3.218193292617798],[-93.28357696533203,2.195448398590088],[-94.49069213867188,3.003965139389038],[-94.52979278564453,4.694825172424316],[-94.20051574707031,6.36047887802124],[-93.67451477050781,7.9756550788879395],[-94.48271179199219,7.09252405166626],[-96.09866333007812,6.6981282234191895],[-97.3855972290039,7.672567844390869],[-97.3299331665039,9.3402099609375],[-96.60899353027344,10.87575626373291],[-95.83856201171875,12.39041519165039],[-95.09205627441406,13.917074203491211],[-94.35958099365234,15.450484275817871],[-93.63848876953125,16.989315032958984],[-92.927978515625,18.533039093017578],[-92.2281494140625,20.08163833618164],[-91.54003143310547,21.635496139526367],[-90.86515045166016,23.195119857788086],[-90.20630645751953,24.7615909576416],[-89.56787109375,26.336471557617188],[-88.95777893066406,27.922550201416016],[-89.15984344482422,28.780275344848633],[-90.83599090576172,28.518291473388672],[-92.53093719482422,28.591693878173828],[-94.16100311279297,29.051607131958008],[-95.31407928466797,30.212474822998047],[-94.46934509277344,31.58614158630371],[-92.96088409423828,32.36021041870117],[-91.34725189208984,32.89081573486328],[-89.69657897949219,33.293888092041016],[-88.0408935546875,33.67686462402344],[-86.38975524902344,34.078826904296875],[-84.74757385253906,34.51584243774414],[-83.53754425048828,35.54049301147461],[-82.72393798828125,37.032344818115234],[-81.96415710449219,38.552345275878906],[-81.25338745117188,40.095882415771484],[-80.58641052246094,41.65885925292969],[-79.95834350585938,43.237892150878906],[-79.36415100097656,44.82999038696289],[-78.79895782470703,46.4326171875],[-78.25802612304688,48.04361343383789],[-77.736572265625,49.661006927490234],[-77.23011016845703,51.28318786621094],[-76.73390197753906,52.90850830078125],[-76.24336242675781,54.535579681396484],[-75.75387573242188,56.16294479370117],[-75.26081085205078,57.78923034667969],[-74.75904083251953,59.41286087036133],[-74.24380493164062,61.03225326538086],[-73.70938873291016,62.64543151855469],[-73.15013122558594,64.25012969970703],[-72.5599594116211,65.84371948242188],[-71.93437957763672,67.42373657226562],[-71.2755355834961,68.99017333984375],[-70.5860824584961,70.54340362548828],[-69.86890411376953,72.08402252197266],[-69.12700653076172,73.61289978027344],[-68.3635025024414,75.131103515625],[-67.58148193359375,76.63985443115234],[-66.78411102294922,78.14057922363281],[-65.97467803955078,79.63483428955078],[-65.15660858154297,81.12431335449219],[-64.33287811279297,82.61075592041016],[-63.507049560546875,84.09597778320312],[-62.682029724121094,85.58170318603516],[-61.86084747314453,87.06947326660156],[-61.047122955322266,88.56138610839844],[-60.2439079284668,90.05899810791016],[-59.45444869995117,91.56388092041016],[-58.68180465698242,93.07746124267578],[-57.92905807495117,94.60101318359375],[-57.19920349121094,96.13569641113281],[-56.49521255493164,97.68236541748047],[-55.81985855102539,99.24178314208984],[-55.17577362060547,100.81434631347656],[-54.5655403137207,102.4003677368164],[-53.99137878417969,103.99978637695312],[-53.4406623840332,105.60747528076172],[-52.872859954833984,107.20918273925781],[-52.282432556152344,108.80269622802734],[-51.665565490722656,110.3861312866211],[-51.017478942871094,111.95706939697266],[-50.33249282836914,113.51223754882812],[-49.603702545166016,115.04735565185547],[-48.823028564453125,116.55668640136719],[-47.9807014465332,118.03247833251953],[-47.065704345703125,119.46427154541016],[-46.06597137451172,120.83806610107422],[-44.96976852416992,122.13607788085938],[-43.76789093017578,123.336669921875],[-42.45684051513672,124.41678619384766],[-41.04167556762695,125.35617065429688],[-39.5362663269043,126.14306640625],[-37.9603385925293,126.77727508544922],[-36.33439254760742,127.26981353759766],[-34.67588806152344,127.63875579833984],[-32.99761199951172,127.90445709228516],[-31.316669464111328,128.153076171875],[-29.6429500579834,128.4470672607422],[-27.977685928344727,128.78565979003906],[-26.323884963989258,129.17626953125],[-24.68572425842285,129.62786865234375],[-23.069326400756836,130.1519012451172],[-21.483531951904297,130.76214599609375],[-19.942399978637695,131.47723388671875],[-18.467639923095703,132.3203582763672],[-17.094600677490234,133.31980895996094],[-15.87924861907959,134.50489807128906],[-14.902548789978027,135.8918914794922],[-14.255196571350098,137.45895385742188],[-13.988089561462402,139.1336212158203],[-13.875356674194336,140.82928466796875],[-13.773643493652344,142.5255889892578],[-13.70312213897705,144.2234649658203],[-13.695098876953125,145.9226837158203],[-13.792622566223145,147.61888122558594],[-14.03753662109375,149.29983520507812],[-14.4476957321167,150.94825744628906],[-15.006743431091309,152.55255126953125],[-15.679473876953125,154.11282348632812],[-16.464099884033203,154.30264282226562],[-18.055334091186523,154.01498413085938],[-19.367717742919922,155.0436248779297],[-19.9200496673584,156.63629150390625],[-20.199687957763672,158.31228637695312],[-20.35179901123047,160.00416564941406],[-20.279651641845703,161.69979858398438],[-19.76165008544922,163.30673217773438],[-18.464710235595703,164.3419952392578],[-17.877227783203125,165.51341247558594],[-17.963909149169922,167.2105255126953],[-17.97049903869629,168.90965270996094],[-17.863025665283203,170.60531616210938],[-17.63289451599121,172.28863525390625],[-17.281360626220703,173.9508819580078],[-16.814231872558594,175.58448791503906],[-16.23973846435547,177.1835174560547],[-15.56529712677002,178.74285888671875],[-14.68185043334961,180.19374084472656],[-13.652384757995605,181.54476928710938],[-12.4778413772583,182.77157592773438],[-11.165995597839355,183.85020446777344],[-9.731925010681152,184.7599334716797],[-8.196417808532715,185.48553466796875],[-6.583680152893066,186.01788330078125],[-4.918850421905518,186.35406494140625],[-3.2262909412384033,186.49490356445312],[-1.5285611152648926,186.4432373046875],[0.15267792344093323,186.2017059326172],[1.795647382736206,185.77122497558594],[3.3761866092681885,185.14976501464844],[4.864350318908691,184.33184814453125],[6.203479290008545,183.2894287109375],[7.4054789543151855,182.0892333984375],[8.47367000579834,180.76861572265625],[9.397039413452148,179.34288024902344],[10.171398162841797,177.83091735839844],[10.799700736999512,176.25254821777344],[11.29034423828125,174.6260223388672],[11.65554141998291,172.9667205810547],[11.90989875793457,171.2867431640625],[12.068955421447754,169.5950164794922],[12.149557113647461,167.8976287841797],[12.171789169311523,166.19847106933594],[12.165276527404785,164.4990692138672],[13.538504600524902,164.01666259765625],[14.358051300048828,162.58938598632812],[14.495559692382812,160.89718627929688],[14.44716739654541,159.19912719726562],[14.221713066101074,157.51580810546875],[13.73478889465332,155.89102172851562],[12.719388961791992,154.55734252929688],[11.10624885559082,154.31082153320312],[9.947690963745117,154.45413208007812],[9.361946105957031,152.8594207763672],[8.918327331542969,151.2195281982422],[8.62051773071289,149.54701232910156],[8.463284492492676,147.85536193847656],[8.432851791381836,146.15655517578125],[8.509906768798828,144.4591522216797],[8.6727294921875,142.76773071289062],[8.899577140808105,141.0836181640625],[9.171533584594727,139.40615844726562],[9.490652084350586,137.73716735839844],[9.91746997833252,136.09274291992188],[10.497096061706543,134.49620056152344],[11.282447814941406,132.9910430908203],[12.318184852600098,131.64718627929688],[13.603336334228516,130.5399169921875],[15.07817268371582,129.70010375976562],[16.665761947631836,129.0973663330078],[18.311241149902344,128.6751251220703],[19.984800338745117,128.38162231445312],[21.671791076660156,128.1780548095703],[23.36527442932129,128.037353515625],[25.06182289123535,127.9395751953125],[26.757110595703125,127.82247161865234],[28.447629928588867,127.6501235961914],[30.129941940307617,127.4106216430664],[31.798837661743164,127.0911865234375],[33.447105407714844,126.67852020263672],[35.06521987915039,126.16035461425781],[36.6417121887207,125.52693939208984],[38.164390563964844,124.77333068847656],[39.621788024902344,123.90022277832031],[41.005428314208984,122.91437530517578],[42.31084442138672,121.82689666748047],[43.53764343261719,120.65135192871094],[44.68890380859375,119.40169525146484],[45.770145416259766,118.09086608886719],[46.78779983520508,116.73004150390625],[47.74871826171875,115.32855987548828],[48.67128372192383,113.90140533447266],[49.57039260864258,112.4593505859375],[50.451194763183594,111.00601959228516],[51.317115783691406,109.54379272460938],[52.17062759399414,108.07433319091797],[53.01393508911133,106.59893035888672],[53.848121643066406,105.11839294433594],[54.6745719909668,103.63348388671875],[55.494285583496094,102.14482879638672],[56.30784225463867,100.65286254882812],[57.11624526977539,99.15806579589844],[57.91973876953125,97.66059112548828],[58.71953582763672,96.16119384765625],[59.51585006713867,94.65992736816406],[60.30923843383789,93.1571044921875],[61.10134506225586,91.65362548828125],[61.89276123046875,90.14973449707031],[62.686336517333984,88.64697265625],[63.48908615112305,87.14913177490234],[64.36268615722656,85.6924819946289],[65.31660461425781,84.28609466552734],[66.2752914428711,82.8830337524414],[67.2293472290039,81.4766845703125],[68.17440032958984,80.06428527832031],[69.10687255859375,78.6435775756836],[70.02338409423828,77.21253967285156],[70.91960144042969,75.7686767578125],[71.78925323486328,74.30874633789062],[72.62256622314453,72.82772827148438],[73.4028549194336,71.3182373046875],[74.10308837890625,69.7700424194336],[74.79240417480469,68.2167739868164],[75.49577331542969,66.66973114013672],[76.20838928222656,65.12696075439453],[76.92845916748047,63.58769607543945],[77.65505981445312,62.05144119262695],[78.3877944946289,60.51811599731445],[79.1265640258789,58.98773193359375],[79.87147521972656,57.46034240722656],[80.62283325195312,55.93604278564453],[81.38118743896484,54.415252685546875],[82.14725494384766,52.89830780029297],[82.92193603515625,51.38574981689453],[83.70659637451172,49.87839889526367],[84.5032958984375,48.37727355957031],[85.31470489501953,46.88410568237305],[86.14567565917969,45.401832580566406],[87.00404357910156,43.93523025512695],[87.90581512451172,42.494903564453125],[89.10774993896484,41.356136322021484],[90.58680725097656,40.519351959228516],[92.07035827636719,39.690460205078125],[93.56413269042969,38.88022232055664],[95.07501983642578,38.102352142333984],[96.60423278808594,37.361183166503906],[98.14307403564453,36.64034652709961],[99.58135223388672,35.740116119384766],[100.81365203857422,34.57442855834961],[101.703857421875,33.1364631652832],[101.41376495361328,31.61399269104004],[99.74992370605469,31.562076568603516],[98.1424789428711,32.1068115234375],[98.76985931396484,31.03424072265625],[99.76409149169922,29.656085968017578],[100.74737548828125,28.270095825195312],[101.71649169921875,26.874114990234375],[102.66741180419922,25.465721130371094],[103.59512329101562,24.041900634765625],[104.49222564697266,22.59861183166504],[105.33580780029297,21.124053955078125],[105.85596466064453,19.510011672973633],[106.03903198242188,17.82356071472168],[105.6861572265625,16.18254280090332],[104.18771362304688,16.028526306152344],[102.90177917480469,17.131025314331055],[101.81745147705078,18.438594818115234],[100.97566223144531,19.57666778564453],[101.5966796875,17.996280670166016],[101.87901306152344,16.32719612121582],[101.16981506347656,14.879462242126465],[99.53443145751953,15.032962799072266],[98.17803955078125,16.043617248535156],[97.20748901367188,16.49205207824707],[95.9233169555664,15.490509986877441],[94.31983947753906,15.959427833557129],[92.97364044189453,16.991899490356445],[91.78309631347656,18.203691482543945],[91.03067016601562,18.851608276367188],[91.07486724853516,17.176273345947266],[89.8186264038086,16.220966339111328],[88.25446319580078,16.81591796875],[87.0032730102539,17.963205337524414],[85.86143493652344,19.22159194946289],[84.77498626708984,20.528200149536133],[83.73045349121094,21.868656158447266],[82.72418212890625,23.237995147705078],[81.7571029663086,24.635316848754883],[80.83436584472656,26.062185287475586],[79.96646881103516,27.523160934448242],[79.1739273071289,29.026134490966797],[78.50125885009766,30.58592414855957],[77.95697021484375,32.192535400390625],[77.22148132324219,33.72417068481.........完整代码请登录后点击上方下载按钮下载查看

网友评论0