Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8963685
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 15, 20262026-06-15T16:24:42+00:00 2026-06-15T16:24:42+00:00

My task is to create a fountain simulation with water particles and water surface

  • 0

My task is to create a fountain simulation with water particles and water surface collision. To this point I have created water surface using one shader, and another shader to create fountain particles (fountain particles’ shader is also using transform feedback mechanism).

My question is: how can I make/detect fountain particles and water surface collision? – I would like to know, how can I get/connect information from plane’s shader/GL buffer and particle’s shader/GL buffer to make a collision – I know water wave equation and methods for collision detection – I just don’t know for what allows OpenGL’s API.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-15T16:24:43+00:00Added an answer on June 15, 2026 at 4:24 pm

    The problem you’re describing doesn’t match OpenGL’s job description. OpenGL is a drawing API, its purpose is to draw nice pictures. Things like collision detection are completely outside the scope of OpenGL.

    However you can use OpenGL to implement a image based algorithm to perform image based tests matching your problem. In your case I’d render the water surface from atop in a orthographic projection, then render each particle with depth testing enabled. Using Occlusion Query I’d test if the particle was still visible. For each frame I’d compare if the particle visibility changed: If it disappeard it went underwater and collided.

    This method works, but frankly I’d say it’s totally overengineered. Just test if the particle height above ground is larger than the mean water level; for small ripple waves this is accurate enough.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have the following task: Create one website which is accessible with 20 different
Using below code, I am getting this error: NSTask: Task create for path '/Users/media/Library/Developer/Xcode/DerivedData/Manager-gnixeptcszdoubbnfcncumzypwge/Build/Products/Debug/lib'
My task is create both login and registration form on one view! I have
I have the following problem: I'm using the wsimport ant task to create a
I have a task to create a new surface in Petrel. I am supposed
I want to create Task in Google Calendar using Google Calendar API.Using C#. Looking
I was recently given a task to create a blog using Ruby on Rails.
I have a content type Task, where we create task for ourself or user
I have a very complex task - create a software that imports XMl files
I have a task to create 10 questions where a user should be able

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.