Questions tagged [graphics3d]

For questions specific to the Graphics3D command and related 3D graphics functionality.

Filter by
Sorted by
Tagged with
296 votes
6 answers
154k views

How do I draw a pair of buttocks?

I'm trying to develop a function which 3D plot would have a buttocks like shape. Several days of searching the web and a dozen my of own attempts to solve the issue have brought nothing but two ...
user avatar
169 votes
1 answer
30k views

Mathematica Minecraft

Some time ago I asked myself: with all these great graphics and interactive capabilities of Mathematica, what kinds of 3D games can be implemented in it? And the answer which came to mind is ...
user avatar
  • 12.4k
80 votes
2 answers
5k views

Extract values for ViewMatrix from a Graphics3D

Under More Information in the help page of ViewMatrix the following entry can be found With the setting ...
user avatar
  • 111k
74 votes
4 answers
13k views

How to make a 3D globe?

There are many ways to create a 3D Earth that is rotatable (see here, here, related here), but most of them have some drawbacks. These issues mainly stem from either ...
user avatar
72 votes
4 answers
8k views

An efficient circular arc primitive for Graphics3D

As many people have noted, the 2D graphics primitive Circle doesn't work in a Graphics3D environment (even in v10.0-v10.4, where ...
user avatar
71 votes
3 answers
4k views

Sketch-type graphics with transparency and dashed hidden lines?

I'd like to create transparent graphs like the following from P1095, Calculus 6th Ed, by James Stewart. Can Mathematica accomplish this? By "transparent," I mean the ability to see the interior, ...
user avatar
67 votes
3 answers
13k views

Extract current viewing parameters from a 3D view?

Is there a way to find out the current viewing parameters of a 3D view? What often happens is that I create a view, for example: ...
user avatar
  • 23.9k
67 votes
2 answers
6k views

How to make this beautiful animation

How to make an animation of following gif in Mathematica? Edit: The animation shown above was created by Charlie Deck in processing. And how to make 3D analog? I tried first few steps ...
user avatar
  • 8,648
63 votes
2 answers
45k views

Cutting bagels into linked halves

I recently came across this video: Mathematically correct breakfast, which shows how a bagel can be neatly sliced into two identical linked halves. I'd like to try this with Mathematica. Here's a ...
user avatar
  • 86.9k
62 votes
4 answers
9k views

Create a torus with a hexagonal mesh for 3D-printing

I am new to Mathematica, and I'm looking for a way to create patterns on the surface of 3D objects. One thing I have not been able to do is to create a hexagonal mesh on a torus. What I would like to ...
user avatar
  • 621
59 votes
1 answer
3k views

Implementing a first person view of 3D objects in a scene

I've created the following scene with a Chinese-style building surrounded by trees, and a horse and a rabbit grazing on the grass in Mathematica (don't ask me why there's a bust of Beethoven in there.....
user avatar
  • 86.9k
52 votes
2 answers
4k views

Möbius transformations revealed

Möbius Transformations Revealed is a short video that vividly illustrates the simplicity of Möbius transformations when viewed as rigid motions of the Riemann sphere. It was one of the winners in the ...
user avatar
  • 31.8k
51 votes
4 answers
3k views

Mathematica and POV-Ray workflow (Q&A)

A couple of years ago, Alexey Popkov asked this question: Which ray tracing software is compatible with Graphics3D? It is my opinion, for various reasons, that out of the many ray tracing programs ...
user avatar
  • 1,857
50 votes
1 answer
1k views

Random polyhedra walk

I would like to recreate ssch's random polyhedra random walk, which he posted in the chat. For convenience here it is again: This is my best attempt so far: You can download the notebook with the ...
user avatar
  • 68.7k
48 votes
2 answers
8k views

How to build a bvh (a motion capture file format) player in Mathematica?

How to build a bvh player that can be used to visualize human motions in Mathematica? Any idea or sample code would be appreciated. ...
user avatar
  • 4,541
48 votes
2 answers
4k views

How to show solid bodies using volumetric rendering?

Note: This question was asked when Mathematica 8 was latest release. Version 9 has built-in support for volume rendering through Image3D. There's an example on ...
user avatar
  • 224k
48 votes
1 answer
2k views

How to construct a treemap using non-rectangles?

I've written the standard version of a tree map (a graphic that shows nested data) and I'm looking to improve on this layout by switching to different types of polygons or perhaps circles. Can anyone ...
user avatar
  • 30.3k
46 votes
7 answers
6k views

How to plot contours on the faces of a cube

I'm trying to plot contours of a function f[x,y,z] on the faces of a cube as the example below, which represents the domain of this function. Is there a way to do ...
user avatar
44 votes
4 answers
22k views

What are the possible ways of visualizing a 4D function in Mathematica?

I have a function $F$ that maps the xyz space to a set of reals, more clearly: $c = F[x,y,z]$ Where $c$,$x$,$y$ and $z$ are reals. What are the possible ways of visualizing this 3d function in ...
user avatar
  • 601
42 votes
2 answers
2k views

My donut has holes in it!

More than one hole, I mean… I’m trying to export from Mathematica into the X3D format, with the longer term goal of generating 3D figures for PDF inclusion. But I'm stuck at the first step: ...
user avatar
  • 10.6k
41 votes
4 answers
6k views

How to make a drop-shadow for a Graphics3D objects?

What's the best way to make a drop shadow for a 3D object? image = Graphics3D[Sphere[], Boxed -> False] I can get a blurry black outline of this: ...
user avatar
  • 23.9k
41 votes
7 answers
4k views

How can I define a 3D version of the built-in VoronoiDiagram (VoronoiMesh in V10) function?

Can anybody point me in a direction that will guide me to extend the VoronoiDiagram function in Mathematica to handle 3D (three dimensional) situations (i.e. points ...
user avatar
  • 32.5k
37 votes
2 answers
10k views

Trying to visualize the Collatz conjecture

I happen to have this collatz collatz[x_, y_] := If[x == 3*y || x == 2*y + 1 || y == 3*x || y == 2*x + 2, 2, 0] So i want a visual 3D adjacency graph of my ...
user avatar
36 votes
2 answers
19k views

3D heatmap density plot

I have a set of data that looks like {{x1, y1, z1}, {x2, y2, z2}, ...} so it describes points in 3D space. I want to make a heatmap out of this data. So that points ...
user avatar
  • 463
34 votes
4 answers
4k views

How to make a 3D topographic globe?

I've made some attempt with this dataset of elevation. But I have some trouble with ListSurfacePlot3D, which can not show the globe correctly: And I've checked ...
user avatar
  • 594
34 votes
2 answers
2k views

How to create blurred Graphics3D objects?

Initially I was interested in renderring a 3D analog of a blurred disk like this ...
user avatar
  • 12.4k
34 votes
3 answers
1k views

Fast spherical polygon

Cross posted on Wolfram Community Question Given a list of points on a sphere and the sphere's radius, I'd like to plot a spherical polygon with those points as vertices. And this needs to be fast, ...
user avatar
  • 132k
33 votes
3 answers
1k views

Implementing a planetary terrain generation algorithm

From this (now deleted) question I found this site where the author discusses a simple technique for random terrain generation on a sphere. The method discussed is as follows: start with a ...
user avatar
  • 45.4k
32 votes
4 answers
2k views

$3D$ graphic of soccer ball

How to make a soccer ball $3D$ graphic? The following image is from Wikipedia, Spherical polyhedron: Truncated icosahedron (left) and standard soccer ball (right) ...
user avatar
  • 8,648
32 votes
1 answer
6k views

Autorotating 3D plots

These days, I have to produce quite a few 3D surface plots (mostly functions of the type $\rho(\theta,\phi)$ plotted with SphericalPlot3D). To exchange these ...
user avatar
  • 10.6k
31 votes
7 answers
22k views

How to draw a Circle in 3D on a sphere [duplicate]

The Circle function is strictly a 2D Graphics object, so that we cannot directly combine a ...
user avatar
31 votes
4 answers
3k views

How to make a blob in 3D?

I am trying to make a blob like the one shown below, but in 3D so I can rotate it. I'm trying to use ParametricPlot3D or ...
user avatar
  • 4,549
31 votes
4 answers
4k views

How to extrude a 3D image from a binary 2D image

I'm trying to extrude a nice 3D form from the 2D binary image below using the code posted, but I haven't had any luck in figuring out the error that's keeping ...
user avatar
  • 4,370
31 votes
2 answers
642 views

Chart illustrating options that affect Graphics/Graphics3D objects

In Mathematica there is a seemingly never-ending list of parameters that affect the appearance of Graphics and Graphics3D ...
user avatar
  • 11.4k
31 votes
2 answers
2k views

How to project 3d image in the planes xy, xz, yz?

Some idea of how to do something similar to the image, but with any 3d object
user avatar
  • 2,145
31 votes
3 answers
2k views

Can Mathematica produce manipulatable 3D plots for deployment on the web?

I have a 3D plot I produced in Mathematica and I would like to share it with the world in a way that allows my audience to rotate it and interact with it in the broadest possible way. I would like ...
user avatar
30 votes
3 answers
3k views

"Covering up" text in Graphics

Consider the following code: ...
user avatar
  • 2,159
30 votes
5 answers
4k views

How to get rid of the perspective effect in a 3D graphics

I have plotted a figure of MoS2 crytal structure. But the actual output looks like the spheres are not in the correct position due to the perspective effect. I obtained the correct position figure ...
user avatar
  • 919
30 votes
2 answers
5k views

Export Plot3D in Mathematica 10.1 is Rasterized by default

When I use Export to export Plot3D to PDF format, I get different behaviour in Mathematica 10.1 compared to 10.0. In particular, ...
user avatar
  • 1,535
29 votes
5 answers
7k views

Plotting several functions

I'd like to plot a function of one real and one integer variable, but I don't want them all shown in the same 2-D plot - I'd like to see them as separate curves so I can see both "axes", more like how ...
user avatar
  • 1,170
29 votes
8 answers
9k views

How to draw an ellipse arc in 3D?

There is no Circle or Disk object in 3D. I quickly found a way to use Cylinder (thin lines, no faces, very flat): ...
user avatar
  • 937
29 votes
4 answers
7k views

Can 2D and 3D plots be combined so that the 2D plot is the bottom surface of the 3D plot boundary?

I have a ListlinePlot function, that I would like to combine with both a Graphics3D plot and a ...
user avatar
  • 4,370
29 votes
2 answers
1k views

Smoothing 3D contours as post processing

Context Following this question (and great answer!), It would be nice to have a function which also smooths 3D contours plots once they have been done. There are various solutions which involve ...
user avatar
  • 21.7k
29 votes
1 answer
1k views

Unintended edge extensions in 3D Cube rendering

Bug introduced in 7.0.1 or earlier -- persists through 10.1.0 or later I have arranged a certain configuration of cubes in 3D using the following code: ...
user avatar
  • 1,317
28 votes
5 answers
2k views

How to get the real PlotRange using AbsoluteOptions?

Bug fixed in 13.0.0 The problem in general involves the unreliable behaviour of AbsoluteOptions when option values are implicitly specified (e.g. ...
user avatar
  • 26k
28 votes
3 answers
4k views

RegionPlot3D in cylindrical or spherical coordinates?

RegionPlot3D is awesome. Unfortunately, it appears to work only for Cartesian coordinates. While there are ways to draw surfaces in spherical or cylindrical coordinates, I can't find a way to draw ...
user avatar
  • 3,975
28 votes
2 answers
1k views

Is it possible to produce anaglyphs with Mathematica?

I'd like to prepare some presentations in Mathematica to help students visualize functions of two variables (it's a usual calculus course). I thought it would be both cool and useful to have the ...
user avatar
  • 929
27 votes
1 answer
911 views

On drilling holes with minimal redundancy (and with colors!)

The old Mathematica package Graphics`Shapes` featured the function PerforatePolygons[], which drilled a hole in any ...
user avatar
26 votes
7 answers
4k views

3D surface that looks like a virus

I have been recently using Mathematica for composing animations that are part of the supplementary information of my papers. I am currently trying to build an animation that involves a viral ...
user avatar
  • 361
26 votes
5 answers
2k views

Plot a partition of the sphere given vertices of polygons

I saw in this question that Mathematica can draw spherical triangles. I guess something similar can be done to plot a spherical polygon. I am interested in something similar: I have a set of points ...
user avatar

1
2 3 4 5
39