Black Hole

Started by Azraton, January 13, 2016, 14:43:55

Previous topic - Next topic

BennyHines

Quote from: johnyjackson on June 27, 2018, 09:10:10
Quote from: RichardRobertson on June 16, 2018, 05:39:01
Quote from: Kai on January 15, 2016, 21:55:01
It was a bit more math than I hoped, but here is what I meant: rendering the black hole by using these Dbal max reviews a projected quad to generate the fragments only over that quad and not all over the viewport where  nothing would change anyways.

Java:
  https://github.com/LWJGL/lwjgl3-demos/blob/master/src/org/lwjgl/demo/opengl/textures/BillboardCubemapDemo.java
Quad black hole shader:
  https://github.com/LWJGL/lwjgl3-demos/blob/master/res/org/lwjgl/demo/opengl/textures/cubemapBH.vs
  https://github.com/LWJGL/lwjgl3-demos/blob/master/res/org/lwjgl/demo/opengl/textures/cubemapBH.fs

It contains a little GLSL method to compute a spherical billboard matrix. You can use it however you want.



Thanks for the source code. I was planning to create black hole myself and your source code and logic is going to help me a lot. Also, if I get stuck somewhere, can I contact you for guidance?
It's great to create black hole of your own. But Is It possible to create black hole with the help of above source code?

It sure is possible. Just take the help of the given code and apply your logic.

ethanaidenies

What is the best program to use with java to createsend gifts online sahulatbazar.com/send-gift-to-pakistan a dungeon crawler game with gui and everything?