20
votes
Accepted
16
votes
Accepted
How can I use GLSL shaders within Mathematica?
As it turns out, it is entirely possible in 14.0 to write your own custom shaders as this video by Yuzhu Lu demonstrates.
In addition, a number of custom shaders are available to read in:
Mathematica\...
14
votes
Smoother jelly / water effect on an image
This method seems to work quite well. Instead of changing the positions randomly, I rotate each vertex around in a small circle centered at each original vertex position. Every vertex starts at a ...
12
votes
Mapping a numerical array of numbers onto the surface of f(x,y) possible?
Via MeshShading and Texture:
...
9
votes
Accepted
How to understand VertexTextureCoordinates in Texture?
This happens because texturing is done triangle by triangle. Polygons with more sides are broken down into triangles, and each triangle is textured individually. I believe your example is ...
9
votes
Accepted
Degradation of image when used as texture in 3D graphics
m_goldberg's solution jogged my memory and the problem is even a pitfall:
Use Rasterize[..., "Image"] to avoid double rasterization
Note that ...
9
votes
Degradation of image when used as texture in 3D graphics
Don't rasterize. I think Texture is doing its own rasterization, so you are seeing the results of a double rasterization.
...
9
votes
How to understand VertexTextureCoordinates in Texture?
Note first : it is recommended to read this answer after the two other ones (from Szabolcs and matheorem)
Here is a tool intended to explore how ...
9
votes
can't blend gradient colors with a stream
The color is not quite right but the idea seems to work. Edit: much closer now.
...
9
votes
Accepted
Circle Packing in Cone Texture
I found two ways to do this. Here only post one of them since the other one need more time to modify. I will post the other one before Christmas Eve.
All of this use the isometry between cone and ...
9
votes
Project geomap onto band of sphere
The key point is we need to unitization the spherical coordinate. {φ/(2 π), -θ/π}
To illustrate the method,we change some parametric here: use ...
9
votes
Filling region with a pattern
To fill the region under a curve, you need a curve that spans the x-PlotRange. E.g.:
...
8
votes
Circle Packing in Cone Texture
Sorry for too late to modify the another code. The idea is draw some circle or semicircle in the sector using polar coordinate.
...
8
votes
Accepted
8
votes
2D and 3D graphics that project a world map on Icosahedron
Slightly changed last example from docs on GeoProjection. There are a few issues, for instance textures have different resolution. If I figure things out I'lll update the answer. But I thought this is ...
8
votes
Accepted
How to make swatch legend match the chart's texture?
Update: In versions 12.1+ you can use the new directive PatternFilling
...
8
votes
can't blend gradient colors with a stream
You can use StreamDensityPlot (which accepts the ColorFunction option) to produce the texture:
...
8
votes
How to understand VertexTextureCoordinates in Texture?
the number of coordinates in VertexTextureCoordinates should be the same as the number of vertex in polygon.
As an example
...
8
votes
Accepted
How to make Texture unblurred?
Rahul is correct in his comment. To map a texture to an object, you use VertexTextureCoordinates to specify where the texture is glued to the object. The problem is,...
8
votes
Accepted
Filling a 2D plot with a texture
I would use ParametricPlot[] for this:
...
8
votes
Accepted
How to import and render this OBJ file with correct texture?
You could manually import it and construct Graphics3D:
...
7
votes
Accepted
Texture prevents JoinedCurve from closing
The bug had been fixed. Here we attach the result.
$Version
(* 12.2.0 for Linux x86 (64-bit) (December 9, 2020) *)
Row[triangle /@ {True, False}]
7
votes
Accepted
How to hollow out this surface?
Using ColorReplace[] to inject transparency into a texture is very useful for this sort of thing:
...
7
votes
Accepted
Adding texture to `Tube[]`
We can use new-in-12.1 directives (HalfToneShading,ToonShading, GoochShading, ...
7
votes
Accepted
7
votes
7
votes
Accepted
7
votes
Accepted
Texture not mapping correctly over square root sheet
We set the PlotRange and the Background to Black in order to full fill the graphics region.
...
7
votes
6
votes
Filling a 2D plot with a texture
Try using a region plot (I used an example texture but you could but any image in there):
...
Only top scored, non community-wiki answers of a minimum length are eligible
Related Tags
textures × 87graphics3d × 33
plotting × 31
graphics × 28
image-processing × 7
image × 7
color × 5
mesh × 5
export × 4
geometry × 4
regions × 3
geographics × 3
filling × 3
rendering × 3
parametric-functions × 2
curated-data × 2
text × 2
geography × 2
3d-printing × 2
hardware × 2
opacity × 2
manipulate × 1
bugs × 1
import × 1
linear-algebra × 1