Skip to content
This repository has been archived by the owner on Jun 24, 2024. It is now read-only.

WishList Pranetarium #11

Open
janebeta7 opened this issue Apr 18, 2019 · 3 comments
Open

WishList Pranetarium #11

janebeta7 opened this issue Apr 18, 2019 · 3 comments

Comments

@janebeta7
Copy link

Hello All
I Open a WishList for planetarium:

  • Integration with PeaseyCam or Proscene
    Possibility to use more cameras

  • Add differents Immersives surfaces like Cylindrical projection

feel free to contribute!
Alba

@janebeta7
Copy link
Author

Wishlist planetarium > CILINDRICAL SHAPE

Not only planetarium deforms, CIlindrical deforms too, its a diferent shader but works so similar
img

cilindrical.glsl

uniform samplerCube cubemap;

uniform float aperture;

varying vec4 vertTexCoord;

const float PI = 3.1415926535897932384626433832795;
const float DEG_TO_RAD = PI/180;

void main() {
  vec2 thetaphi = ((vertTexCoord.xy * 2.0) - vec2(1.0)) * vec2(PI, PI/2);

  vec3 rayDirection = vec3(cos(thetaphi.x), tan(aperture* DEG_TO_RAD)*thetaphi.y, sin(thetaphi.x));

  vec3 color = vec3(textureCube(cubemap, rayDirection));

  gl_FragColor = vec4(color, 1.0);
}




@janebeta7
Copy link
Author

Get pgr PGraphics to send to spout or Syphon

its more effective in terms of fps to send PGraphics to Spout instead windows screen
spoutSend.sendTexture(pg);
then we need to get de pg cubemap PGraphics
for example PGraphics dc.getPgr()

@janebeta7
Copy link
Author

Create an example with screen() functioon to explain that is there where you have to write your code to export png sequences.

https://github.com/codeanticode/planetarium/issues/8

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant