• Understanding Legendre transformation from classical dynamics


    Technical background Legendre transformation is a very common mathematical tool in classical mechanics and statistical mechanics. It transforms all (or part) independent variables of a function, and also changes the form of the function, but ultimately does not change the meaning represented by the function. The most typical case is the application of Legendre transformation […]

  • Intrigue with rust · surround ball


    The off file records polyhedron information, and its contents are parsed intoMeshAfter structure, the bounding sphere can be constructed for polyhedral mesh based on the latter. sphere Define a sphere with a generic structure: struct Sphere<T> { n: Use // dimension Center: vec<t>, // Center Radius: T // radius } Then define thenewmethod: impl<T> Sphere<T> […]

  • Intrigue with rust · small project


    The code has been written for more than 200 lines. Although it is not much, it is all in one source file. I am tired of reading or modifying it. Now I will try to separate them by using the modular function of the rust language. As we all know, rust’s module function is usually […]

  • three. JS add 3D model


    There are only a few official geometries in three. It is very difficult to generate various models. At this time, it is an option to introduce external models. The specific introduction methods are as follows. Import dependency Click to view the code import * as THREE from “three”; import { OrbitControls } from “three/examples/jsm/controls/OrbitControls”; // […]

  • Use canvas to realize a big balloon for you


    1、 Background Recently, I’m making a special effect demand for balloon pendant. At this opportunity, I’d like to share with you how to use canvas and corresponding mathematical knowledge to construct a lifelike balloon. 2、 Realize Before implementing this seemingly round balloon, first understand its implementation ideas, which are mainly divided into the following parts: […]

  • Using OpenGL es to realize panoramic player


    When playing panoramic video, you can rotate the angle of view freely. If combined with the gyroscope of mobile phone, panoramic video can have a better browsing experience on the mobile terminal. This paper mainly introduces how to use theAVPlayerRealize a panoramic player. First, let’s look at the final effect In the last article, we […]

  • Moving a sphere (player control)


    <font size=2>Place a sphere with a trailing tail on the planeChange the position of the ball according to the player’s inputControl speed and accelerationLimit the position of the sphere and let it bounce away from the edge</font> This is the first tutorial in the control character movement series. Specifically, we will control the movement of […]

  • Generating Spherical Mesh Model with Unity3D Mesh Function


    In this paper, we share the specific code of generating spherical mesh model with Unity3D mesh function for your reference. The details are as follows. I’ve already talked about how to use mesh to generate a mesh of my own, so this article will describe how to transform this mesh into the shape I want, […]