wesleycorgi Posted February 7, 2018 Share Posted February 7, 2018 When I click on an object, I want it to link to another Web page. I see lots of great tutorials and examples of changing object properties, etc. when clicked but have yet to find any that describe how to "jump" to a specific Web page. Quote Link to comment Share on other sites More sharing options...
Wingnut Posted February 8, 2018 Share Posted February 8, 2018 Hiya WC, welcome to the forum. https://www.babylonjs-playground.com/#11XV5X#4 Click on any cylinder... opens a different URL in CURRENT window. Line 34 does all the damage. If you want the links to open in new windows... change line 34 to... window.open(urlList[Number(pickedMesh.name)]); Tested ONLY in Firefox ESR (52.6). I hope this helps! If you have questions, just ask. If you want to talk about that playground, let's do it. Party on. Quote Link to comment Share on other sites More sharing options...
wesleycorgi Posted February 8, 2018 Author Share Posted February 8, 2018 Awesome! Thanks much, Wingnut. I am loving Babylon JS over ThreeJS. Your code works fine in Chrome as well. Wingnut 1 Quote Link to comment Share on other sites More sharing options...
Wingnut Posted February 8, 2018 Share Posted February 8, 2018 Cool! I like all the webGL engines. We're all on the same team... Team WebGL... and it's a great place to hang-out. Polyhedrally-awesome. Thank goodness everyone got together and gave us 3D in the browser. Geometry classes worldwide... are being treated better.... kinder... looked-upon with less disdain. heh Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.