Can you use canvas.getContext('3d')? If yes, how? - Stack ...

文章推薦指數: 80 %
投票人數:10人

I tried 3D before, but didn't really understand (due to a non-explaining tutorial). Any Tutorials? html canvas html5-canvas · Share. Home Public Questions Tags Users Collectives ExploreCollectives FindaJob Jobs Companies Teams StackOverflowforTeams –Collaborateandshareknowledgewithaprivategroup. CreateafreeTeam WhatisTeams? Teams CreatefreeTeam CollectivesonStackOverflow Findcentralized,trustedcontentandcollaboratearoundthetechnologiesyouusemost. Learnmore Teams Q&Aforwork Connectandshareknowledgewithinasinglelocationthatisstructuredandeasytosearch. Learnmore Canyouusecanvas.getContext('3d')?Ifyes,how? AskQuestion Asked 10yearsago Modified 9monthsago Viewed 66ktimes 53 15 IreadaboutthecanvastaginHTML5,andalwayssawgetContext('2d'). Theparameteris'2d',soisn'tthereanotherpossibilitylike'3d'? And,howcouldyouusethat?Itried3Dbefore,butdidn'treallyunderstand(duetoanon-explainingtutorial).AnyTutorials? htmlcanvashtml5-canvas Share Follow editedJul9,2012at16:42 11684 askedMar21,2012at20:21 1168411684 7,2301111goldbadges4646silverbadges6969bronzebadges 2 13 getContext('4d')comingsoon – SamieBencherif Jul17,2017at2:48 10 getContext('space-time')isobsoleteanddeprecated. – user271232 Nov7,2018at15:38 Addacomment  |  4Answers 4 Sortedby: Resettodefault Highestscore(default) Datemodified(newestfirst) Datecreated(oldestfirst) 54 Thereisa3Dcontextforcanvas,butitisnotcalled"3d",butWebGL("webgl"). Share Follow editedFeb16,2021at8:57 CommunityBot 111silverbadge answeredMar21,2012at20:33 DenisWashingtonDenisWashington 4,40611goldbadge1717silverbadges2121bronzebadges 1 9 Oops,Ididn'tseethatPeterhadthesameanswerpostedafewsecondsearlier.Pleaseaccepthisanswerifyouarehappywitheitherofboth. – DenisWashington Mar21,2012at20:34 Addacomment  |  36 WebGLshouldbeavailableinthemostup-to-dateversionsofallbrowsers.Use:

howcouldyouusethat?Itried3Dbefore,butdidn'treally understand ifyouthink"real"languagesaredifficult,youwillhavealotoftroublewithWebGL.Insomerespectsitisquitehighlevel,inotherrespectsitisquitelowlevel.Youshouldbrushuponyourmaths(geometry)andprepareforsomehardwork. three.jsisaveryappreciatedlibrarythatallowsyoutodoyetalotof3dwithoutdealingwithwebgldirectly,checkitout. Share Follow editedJul9,2015at21:33 Mouloud88 3,32844goldbadges1818silverbadges4141bronzebadges answeredJul9,2012at15:12 SteveSteve 81711goldbadge88silverbadges1515bronzebadges Addacomment  |  22 It'spossibletogetaWebGLcontext,whichwouldgiveyouaccesstothatAPI,allowingforOpenGLES2.0-like3Drendering. Share Follow answeredMar21,2012at20:32 PeterPeter 6,30411goldbadge3030silverbadges2929bronzebadges Addacomment  |  13 The3dcontextisnotyetimplementedinmostbrowsers.IbelievethatthereisanexperimentalversionofOperathatsuppliesone,andanaddonforFFthatdoesthesame,butnoneofthemarereadyforprimetime.You'llhavetowaitforwideadoptionandimplementation. andIthinkJavaScriptismoreeasythanarealprogramminglanguage Javascriptisa'real'programminglanguage.Beingahighlevellanguagedoesnotmakeitatoyorfake(andthisiscomingfromasystemsguywho,inyouropinion,writescodein"real"programminglanguageseveryday). Share Follow editedJul11,2019at17:13 Makogan 6,43366goldbadges3535silverbadges8080bronzebadges answeredMar21,2012at20:27 EdS.EdS. 119k2020goldbadges174174silverbadges252252bronzebadges 3 4 Whileitisindeedreal,Iwishitwasn't. – OwenDelahoy Aug18,2015at19:03 1 @Zekian:IfIwereforcedtouseitI'msureIwouldfeelthesame – EdS. Aug18,2015at19:16 1 IthinkWebGLissupportedinmostofthebrowsers(includingmobile)exceptIE.Readhereichemlabs.com/1375. – Lucky Dec23,2015at7:39 Addacomment  |  YourAnswer ThanksforcontributingananswertoStackOverflow!Pleasebesuretoanswerthequestion.Providedetailsandshareyourresearch!Butavoid…Askingforhelp,clarification,orrespondingtootheranswers.Makingstatementsbasedonopinion;backthemupwithreferencesorpersonalexperience.Tolearnmore,seeourtipsonwritinggreatanswers. Draftsaved Draftdiscarded Signuporlogin SignupusingGoogle SignupusingFacebook SignupusingEmailandPassword Submit Postasaguest Name Email Required,butnevershown PostYourAnswer Discard Byclicking“PostYourAnswer”,youagreetoourtermsofservice,privacypolicyandcookiepolicy Nottheansweryou'relookingfor?Browseotherquestionstaggedhtmlcanvashtml5-canvasoraskyourownquestion. TheOverflowBlog GettingthroughaSOC2auditwithyournervesintact(Ep.426) Newdata:Topmoviesandcodingmusicaccordingtodevelopers FeaturedonMeta StackExchangeQ&AaccesswillnotberestrictedinRussia NewUserExperience:DeepDiveintoourResearchontheStagingGround–How... AskWizardforNewUsersFeatureTestisnowLive Related 3077 Howdoyoudisablebrowserautocompleteonwebformfield/inputtags? 4802 Howtohorizontallycenteranelement 4317 Which"href"valueshouldIuseforJavaScriptlinks,"#"or"javascript:void(0)"? 3162 HowcanIchangeanelement'sclasswithJavaScript? 2368 HowcanImakeadivnotlargerthanitscontents? 2944 HowcanIknowwhichradiobuttonisselectedviajQuery? 4987 HowdoIcheckwhetheracheckboxischeckedinjQuery? 1177 Howtoclearthecanvasforredrawing 1786 HowcanIsetthedefaultvalueforanHTML


請為這篇文章評分?