The 2024 Developer Survey results are live! See the results

# Questions tagged [simulation]

The tag has no usage guidance.

32 questions
Filter by
Sorted by
Tagged with
19 views

### Jos Stam's "Stable Fluids": Why Use Multiplication by h Instead of Division in Divergence Calculation of Projection Term?

I'm learning about Stable Fluids from the document Stable Fluids and I have a question regarding the implementation of the project function. In the code, the ...
• 1
1 vote
42 views

### How to create a more photorealistic ocean?

Photorealism has many elements. Take, for instance, the figure 1 below, a shot from Dune Part One movie. Figure 1 The process of production of a image such as this one, is laborious and involve more ...
• 111
96 views

### My n-body simulation doesn't form a galaxy

I'm trying to create a galaxy simulation using opengl with the compute shader and when I start my simulation, the galaxy with the spiral arms doesn't form, instead it goes into chaos. I noticed that ...
29 views

### Simulating a moving catheter inside a human heart

I'm trying to simulate a moving catheter inside a human heart. I want to accurately model the behaviour of the catheter and I assume the heart to be solid. What I want is, when the catheter hits the ...
• 101
54 views

### What is the difference between particles system and smoothed particles hydrodynamic?

What is the difference between particles system and smoothed particles hydrodynamic(SPH) ? is SPH a more specific version of particles system ? More searches on google I do more confusing I get since ...
280 views

### Problem when performing IFFT for Tessendorf's ocean waves

I am implementing Jerry Tessendorf's ocean waves as described in his paper in c++ and OpenGL. I implemented two compute shaders, one for the h_tilde_0 and its conjugate, and one for the frequency ...
99 views

### What exactly is it about reality that is so difficult to recreate in a 3D simulation?

I have to admit that, while watching footage of the enhanced 2020 version of the 2018 game Forza Horizon 4, when they are driving fast, I have to sometimes remind myself that I am watching a video ...
7k views

### Optimizing compute shader with thread group shared memory

I'm currently learning compute shaders and I'm trying to write an optimized Game Of Life. I have a first version working that uses a Shader Storage Buffer Object. I dispatch a thread per cell I want ...
119 views

### Confusion about the concepts of "constraint-based" and "impulse-based" for rigidbody simulation

Thanks a lot for your attention to this question in advance! It is my first try to ask for help on this amazing StackExchange. If I do something inappropriate, please point it out directly so that I ...
54 views

### Finite difference wave equation shown in paper is wrong?

I'm trying to produce wave surface animations, and I came across this paper: Fast_Water_Animation_Using_the_Wave_Equation_with_Damping. In the paper they go to provide the following equation: At ...
• 280
69 views

### What is it that really prevents photo-realistic, real-time, digital 3D simulations?

Ever since I was a small child, seeing the amazing 3D visuals that developed in the 1980s and 1990s, I was certain that photo-realism was "just around the corner". In the year 2020, I certainly ...
134 views

### Represent shape as particles

Input: Triangles which make up an arbitrary shape. Each triangle is represented by 3 3D points. Output: A set of particles which fills up the inside of the object (see image). I have read the ...
61 views

### Vertex positions from particle position

I have a question about Nvidia Flex or any particle based simulation in general: The particles are created by sampling the mesh, which can result in fewer particles than there are vertices in the ...
• 121
215 views

### Does MRG32k3a compare well with PCG and Xorshift256*?

I've been using standard 32-bit Xorshift in my GPU path-tracer for a while, following Nathan Reed's approach with hashed seeds and decorrelated state. I (finally) discovered today that Xorshift is ...
• 447
1 vote
256 views

### How to simulate elastic material with restoring shape

I'd like to simulate a rubber-like material. This material if deformed would experience a restoring force to its original shape, a bit like a school rubber ereaser. I tried with a spring-mass system ...
59 views

### Cloud simulation software [closed]

I have ever browsed a website focusing on cloud (cloud in the sky, not cloud computing) simulation. That's a company devoted to developing cloud simulation software and offer cloud simultation ...
• 591
85 views

### kinematics and dynamics of a sphere in a spring mass system?

I am attempting to code a simple spring mass system simulation in which a sphere pendulus hangs from a string (a spring) by the top and then another sphere (controlled by the user) can move and ...
• 1,746
1 vote
79 views

### Spring damping in Energy Function

Supposing a behavior function $C(x_1, \ldots, x_n)$, then we have a scalar potential energy function $E = \frac{k_s}{2}C\cdot C$ where $k_S$ is stiffness constant. Hence, the force is as follows \$...
• 523
1 vote
109 views

### Ask for a study path to simulate water like this

I am interested in simulating water movement like this: 1:45 to 3:05 of https://www.youtube.com/watch?v=sbrFIp73tbw I have learnt a lot of computer graphics so far, for example: Interactive ...
• 193
82 views

### How to record N-body simulation as a video?

I have implemented an N-body simulation using the Barnes-Hut optimisation in Python which runs at a not-unacceptable speed for N=10,000 bodies, but it's still too slow to watch real time. A new ...
• 161
107 views

### How are fluid simulations handled in Computer Graphics?

How are fluid simulations handled in Computer Graphics? For a novice, there are hardly any novice friendly tutorials explaining how particles or fluids can be simulated. Things like smoke, crown ...
• 2,521
159 views

### How do I simulate a starfield?

I am trying to write a spaceship simulator. One problem I've hit into is how to best simulate the background of space with its stars. I don't need it to be faithful to the real thing with ...
102 views

### Confusion about notation in a paper

I have been trying to understand "Fast Simulation of Mass-Spring Systems" by Liu et al., which can be found here. There is one part in the methods section that is confusing me. Just after equation 12, ...
• 297
136 views

### Components that can be used for 3d shadow analysis, sunhours of surfaces throughout the year in a 3d model?

I want to develop a component for 3d shadow analysis of 3d city model. I decided to use ray tracing for this purpose. For every time step (for sun's dynamic position during the year) rays will be sent ...
• 33
1 vote
66 views

### How would I create a virtual cabling system?

I am trying to devise a GUI system that functions as a virtual patchbay, as seen in something like Logic Studio's environment editor, or seen in virtual synthesizers that use virtual patchcables. I'm ...
• 13
188 views

### Conserving Mass in Liquid Simulation

I am trying to implement a 2D version of Foster and Fedkiw's paper, "Practical Animation of Liquids" here: http://physbam.stanford.edu/~fedkiw/papers/stanford2001-02.pdf Mostly everything works, ...
240 views

### Questions about Preconditioning Conjugate Gradient method in Baraff & Witkin 98?

I encountered some problems when implementing the cloth simulation algorithm from Baraff & Witkin 98's Large Steps in Cloth Simulation. Baraff & Witkin 98 Consider the cloth as a particle ...
• 153
483 views

### Need a reputable source for the formula for the shape of Earth's horizon

What I'm asking for I stress that I am not asking for the formula---I know the formula, and how to derive it. Several different versions of it are reproduced near the end of the post. In fact, ...
235 views

### Per Vertex Computation in OpenGL Tesselation

I try to implement a position based cloth simulation using hardware tesselation. This means I want to just upload a control quad to the graphics card and then use tesselation and geometry shading to ...
• 1,810
268 views

### How could I check the correctness of my result of fluid simulation?

I wrote a particle based fluid simulating program. It's hard to tell if I get the right result. The visualized result seems reasonable, but some part of it looks weird. I don't know wether it's a ...
• 203