Hundreds of examples of HTML5 learning HT graphics Components –3d Modeling

Source: Internet
Author: User

Http://www.hightopo.com/demo/pipeline/index.html

"Hundreds of HTML5 examples of learning HT graphics components –WEBGL 3D" mentioned in many cases HT does not require professional 3D modeling tools such as 3Ds Max and Blender to do many things, such as http://www.hightopo.com/g uide/guide/core/3d/examples/example_3droom.html this 3D telecom Room monitoring example is built through the APIs provided by HT:

However, the model in this example is quite regular, and the fire hydrant is made up of a ball + tact, and other graphics can be done with the basic Node and Shape object provided by HT:

But that doesn't mean the API can only do simple models, and the HT modeling plug-in introduced in the HT for WEB Modeling manual allows imaginative classmates to do all kinds of incredible things. Example of this dining chair: http://www.hightopo.com/guide/guide/plugin/modeling/examples/example_custommodel.html

For this dining chair example, especially some irregular pots, glasses, Christmas trees and that love, many people wonder how we got out. In fact, it's quite simple to use the Createringmodel and Createextrusionmodel two build models in the HT for Web Modeling Manual, where Createringmodel, as the name implies, is used to build a ring model around a circle,  Createextrusionmodel is used to build a shape-based projection effect, the 3D models generated by these two functions are derived from the plane of 2D graphics, are built on the HT system in the construction of 2D irregular polygons using the Points and segments two array parameters are done, The meanings of Points and segments can be found in the HT for Web shapes guide:

can generate irregular 3D flooring: http://www.hightopo.com/guide/guide/core/shape/examples/example_floor.html

can generate irregular 3D pipelines: http://www.hightopo.com/guide/guide/core/shape/examples/example_polyline.html

So everyone should understand the principle, but the seats of the few irregular shape of the magic parameters are obtained, this is still the use of auxiliary tools: http://www.hightopo.com/demo/3dmodel/index.html,

This tool many years ago for writing examples at random, the code is very simple to see http://www.hightopo.com/demo/3dmodel/index.html source code can be, write relatively simple but very practical, how to export? Open the console and print out the sements and points parameters of the Shape object yourself, or wait until I have time to write a more complete example of import and export, or can you get up?

In fact, it is not only used for the modeling of node type object, but also can be used in the model to solve the connection, for example http://www.hightopo.com/guide/guide/plugin/forcelayout/examples/ example_forcelayout3.html This 3D bomb example of Rio Tinto, a lot of people have been very cool, but I have been very uncomfortable with this rigid line of pipe connection, so the whim of a dog bone like two thick between the middle of the connection effect, the entire 3D The topology diagram example was suddenly tall on many:

Http://www.hightopo.com/demo/pipeline/index.html

The principle of this example is to set the edge of the connection to transparent invisible, and then for each Edge corresponding to a node node, the shape of the node is stretched and positioned to the line location instead of the line to display, and the node graph has not stretched before the following:

Here's another detail, by using the Creatematrix function, set a matrix coordinate transformation parameter to the two node position for each pipeline to the Mat property of the style, the matrix budget does not understand also does not matter, directly copy the example code, To make it easy for everyone to understand, I've got a two-node connection. A simpler example for reference:

Today is just a point, "the HT for Web Modeling Manual" also has a number of API functions, as long as the imagination can also toss out countless tricks, followed by the use of HT for Web-based WebGL 3D Custom Modeling features more practical examples.

Http://www.hightopo.com/demo/pipeline/index.html

Hundreds of examples of HTML5 learning HT graphics Components –3d Modeling

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.