Hello Guest

Black Hole

  • 16 Replies
  • 18095 Views
Re: Black Hole
« Reply #15 on: December 22, 2018, 19:22:34 »
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.
« Last Edit: March 07, 2019, 14:38:49 by BennyHines »

Re: Black Hole
« Reply #16 on: December 26, 2018, 10:49:49 »
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?
« Last Edit: February 02, 2019, 11:10:26 by ethanaidenies »