Search found 41 matches
- June 13th, 2019, 10:27 am
- Forum: Everything
- Topic: Procedural Universe Sim using OpenGL and OpenCL
- Replies: 5
- Views: 3287
Re: Procedural Universe Sim using OpenGL and OpenCL
Maybe one day, the C++ committee will eventually get their act together and bring those features to the language. It would be nice to be able to stick with C++ and just pass an execution model ( executor ) to an algorithm and it will use the gpu or distributed network without having to create speci...
- June 12th, 2019, 9:22 pm
- Forum: Everything
- Topic: Procedural Universe Sim using OpenGL and OpenCL
- Replies: 5
- Views: 3287
Re: Procedural Universe Sim using OpenGL and OpenCL
however at some point the plan is to shift over to an RTX API for ray-tracing since AMD seems to be phasing out OpenCL. I'm a bit confused on your reasoning here. Perhaps look into something not proprietary and is still cross platform. Because it can provide ray-traced rendering which is on par wit...
- June 12th, 2019, 1:22 pm
- Forum: Everything
- Topic: Procedural Universe Sim using OpenGL and OpenCL
- Replies: 5
- Views: 3287
Procedural Universe Sim using OpenGL and OpenCL
Just another one of my random projects I thought I'd share here. Spent a couple of weeks creating the groundwork for a procedural universe game where you can actually travel to any star you can see and fly into the solar system. It uses an interesting mix of OpenGL and OpenCL for generating and rend...
- April 9th, 2019, 10:44 pm
- Forum: Everything
- Topic: Standardized graphics library for C++ is not coming
- Replies: 9
- Views: 3582
Re: Standardized graphics library for C++ is not coming
2D or not 2D Creating a Windows window and setting up some sort of rendering back end can take quite some time if done by hand. I don't know how long it takes or what is involved in making a Linux window and setting up an OpenGL back end, but I'm sure it's not as simple as: If you use a library lik...
- September 11th, 2018, 7:58 pm
- Forum: Everything
- Topic: chilli said we need to know size of the array at the compile
- Replies: 15
- Views: 5607
Re: chilli said we need to know size of the array at the com
Interesting bit of knowledge, good to know why my code is working lol.
- September 11th, 2018, 5:33 pm
- Forum: Everything
- Topic: chilli said we need to know size of the array at the compile
- Replies: 15
- Views: 5607
Re: chilli said we need to know size of the array at the com
It seems like it's actually possible to some extent in C++11 or maybe it's just the gcc compiler I'm using, but I was able to make a function like this work: void my_func(int arr_size) { char myArray[arr_size]; ... } I'm thinking it must automatically do memory allocation and de-allocation behind th...
- September 3rd, 2018, 7:06 pm
- Forum: Everything
- Topic: Simulating particles with negative mass
- Replies: 3
- Views: 1968
Re: Simulating particles with negative mass
Haha well I only bought a 1080 a few months ago, before that I didn't have any Nvidia cards so couldn't use CUDA anyway. I'm glad I started using OpenCL though because of the portability.albinopapa wrote:Glad to see you chose OpenCL instead of CUDA.
- September 3rd, 2018, 4:57 pm
- Forum: Everything
- Topic: Simulating particles with negative mass
- Replies: 3
- Views: 1968
Simulating particles with negative mass
Hey guys, been a while since I posted anything here but figured some of you who are interested in cosmology may find this video of interest. I cover a model of the universe which incorporates negative energy and helps to explain stuff like dark energy and dark matter. A few years ago I created a 2D ...
- March 26th, 2017, 6:06 am
- Forum: Everything
- Topic: Prime Number Generators
- Replies: 14
- Views: 5654
Re: Prime Number Generators
Yeah, divide only primes, divide only up to sqrt(n), only examine odd numbers. A long time ago I implemented a string based long division algorithm for this very purpose. It was an interesting little challenge and the resulting algorithm was actually quite fast, I recall getting thousands of digits...
- March 17th, 2017, 6:48 am
- Forum: Everything
- Topic: anyone else getting this?
- Replies: 5
- Views: 2816
Re: anyone else getting this?
I don't think a forum like this really needs to use encrypted connections, just don't use the same password on this forum you use everywhere else.