In about two weeks (three weeks?) Before, for some reason (W) I made a little demo. (though it's been more than a week because of all sorts of reasons ...) So it's far from complete OTL)
at the moment it seems that the main highlight ah what kind of things can be used below (g) depending on (i) Frequency (f) to represent W:
It is probably the process of a tree growing, and a day and night alternating (the stars are almost crushed by GIF at night).
(Actually, that's not the point!) But the tat that didn't finish what)
The tool used is unity, but for performance full write is unlit Shader (as I understand it should be not participate in unity5.x GI (global illumination). This unlit shader is equivalent to raw Cg shader);
That is to say unity only does an organization object and scene work, lighting calculations and model generation (especially trees) need handwriting. So the harvest is pretty big, W.
(as to why the title is 0 (tone "ling"), uh ... It's too late today, just write a little catalogue.
It will probably be divided into several parts:
- Trunk, Branch (model):
- (current age)composition of 3D geometry (model/mesh/geometry)
- Four Yuan (quaternion) and rotation (just how to use and simple concepts, not derivation, too * * more)
- A simple fractal model, fractal and plant
- "Spline-controlled" branches, Perlin Noise, the relationship between branches
- SpeedTree with gravity and spin forces on branches, a more aesthetically pleasing relationship between branches (empirical models)
- Sky
- Sky Box (Skybox), cubemap mapping, limitations of individual maps
- Rayleigh scattering, Mie scattering, exp (x) (x power of E) in this (scattering/refraction/transmission ... ) The meaning of the representation in the calculation
- A single-scattering sky model with an expected calculation
- Considering the multi-scattering sky model and the actual effect (which is also the final adoption)
- Stars
3) leaves, grass and light
- Submesh and Rendertexture in Unity
- Normalmapping,shadowmapping
- The "translucent" nature of plants
- Coordinate day and night change with ambient light, sun parallel light color
- A "clever" "trick" that dramatically boosts the level of foliage
4) Trees (growth) and messy:
- Let the fractal "grow"
- Map blend to let each branch tip grow a leaflet
- Network and file reading and writing
- Server-side: (Amway) Azure & node. JS (in fact, performance should not be too good but I only do this and this server has nothing to do) & REST (HTTP) Calls (Get/post/... )
- ...
How does it feel to write so much ...
Well w in short slowly filled the WW (abandoned pit reservation (mistake
Then let's put a few pictures at the end-the first is the evolutionary process of this tree (Miss Wwww)
The first strange square thing is for testing, don't mind HHH
Vertices is the number of vertices of the whole tree, and the triangles is the number of triangular polygons. The above "Xth iteration" means that this is the product after the iteration of the first few iterations, the more often the more hierarchical (presumably).
The following is the structure, presumably like this (from left to right):
Each branch is a square box.
A square box with a normal direction.
One has the direction, also adds the normal together to ask the average vertex number is the original 1/3 square box
Cylinder
The spline control is actually the result of a bunch of large and small circular sections (after that).
(the right side has experienced two iterations of "2nd iteration", relative to the left to do three times.) The right side is about 4,000, 10000.)
On the left, the basic gravity is added.
The right side of the gravity has been modified and added to the spin force (please allow me to call it)
The left is the right side of the simple addition of an iterative effect (that is, the tree on the right of the branch, probably in the 1w~1w6 point 1w5~2w5 surface around. On the right is the final rendering, probably 1w9 point 2w8 face, can't remember.
Long chart:
(Always feel that the last one is quite a bit of oil painting www.)
Then there are several: (Daytime, Sunset, Night)
(I admit the sky is a bit of water.) )
Will you fill out the pit? Satan is so destined for WW
(For some reason there is no download link and source code um www それはすみませんでした wwwwwww)
Development Diary of a small demo (0)