Unity hand-painted Mesh realizes color gradient

The requirements I received are as follows: Please see the final renderings Let’s start Simplifying the requirement is to create a Mesh with a width*2 and a color gradient based on 2 points. Creating a square Mesh requires four points, and what I need here is only two, so I regard the two points as […]

Model mesh shadow of Shader in Unity

Article directory Preface 1. Grid Shadow Principle 1. In the world space, compress the character model into a patch on the Y axis, and modify the color to resemble the color of the shadow. 2. Move the compressed patch to a suitable position and stagger the model and shadow patch. 3. The shadows that are […]

snappyHexMeshDict file settings

/*——————————–*- C + + -*—— —————————-*\ | ========= | | | \ / Field | OpenFOAM: The Open Source CFD Toolbox | | \ / O peration | Version: v2112 | | \ / A nd | Website: www.openfoam.com | | \/ M anipulation | | \*————————————————– —————————-*/ FoamFile { version 2.0; format ascii; class […]

Unity – Exported FBX model cannot save vector4 in uv (just use Unity Mesh to save it)

Article directory Purpose question solution verify Save as Unity Mesh result – OK Save as *.obj file result – not OK, but DIY importer Notice References Purpose Memo for easy indexing in the future Question In order to learn and understand the effects of large factory projects: Last week, in order to restore the hair […]

29 | Service Mesh: How to shield the service governance details of the service-based system?

In the first few courses of the distributed service chapter, we learned about which middleware should be used to solve the communication and service governance issues between services in the process of microservices, including: Use RPC framework to solve service communication problems; Use the registration center to solve service registration and discovery problems; Use distributed […]

[CFD Workshop] Model mesh (triangular mesh)

[CFD Workshop] Model mesh (triangular mesh) Preface mesh geometry grid number Programming implementation Data reading Grid data construction This series of blog posts is about my process of learning the theory of two-dimensional shallow water equations and compiling a practical two-dimensional shallow water flow model. (Review of the previous blog) Foreword This 2D shallow water […]

Generate 3D items using Mesh

Effect: Code implementation Pyramid: using System.Collections; using System.Collections.Generic; using UnityEngine; using UnityEngine.UI; public class YuanZhui : MonoBehaviour { int num = 30; int r = 2; // Start is called before the first frame update void Start() { gameObject.AddComponent<MeshFilter>(); gameObject.AddComponent<MeshCollider>(); gameObject.AddComponent<MeshRenderer>(); float angle = 2 * Mathf.PI / num; VertexHelper vh = new VertexHelper(); vh.AddVert(Vector3.up […]

Mesh grid drawing model

Model 1: Cone using System.Collections; using System.Collections.Generic; using UnityEngine; public class MeshYuanZhui : MonoBehaviour { public float radius = 1f; // cone base radius public float height = 2f; // Cone height private void Awake() { CreateConeMesh(radius, height); } /// <summary> /// Create a cone Mesh /// </summary> /// <param name=”radius”>Conical base radius</param> /// <param […]

Bluetooth Mesh proprietary DFU

Bluetooth Mesh proprietary DFU Introduction to Mesh proprietary DFU protocol feature DFU modes and types Role concurrent transfer A network of mixed devices Transmission rate background operations transfer partition memory map Safety DFU firmware ID Application firmware ID SoftDevice firmware ID Bootloader firmware ID Device page Format content Introduction to Mesh proprietary DFU protocol Device […]

Install polarismesh cluster on openeuler

Table of Contents 1. Install MySQL database 2. Install Redis cluster 3. Initialize SQL 4. Configure polaris-server.yaml 5. Start the service 6. Install polaris-console 7. Start polaris-console 8. Install monitoring components 9. Install distributed current limiting components unzip polaris-limiter-release_v1.0.4.linux.amd64.zip mv polaris-limiter-release_v1.0.4.linux.amd64 polaris-limitercd polaris-limiter start up 10. Check the startup process 11. Page access 12. Usage […]