Skip to content

dacodas/web-spherical-harmonics

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

58 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Overview

TODO

[DONE] Texture for gridlines

Create Makefile and tie things together

Separate patch and sphere, no overlapping or z-fighting

Be able to rotate double textures instead of reading uint16 textures

[TENTATIVELY DONE] Figure out seam

After calculating the normals on the fly, this problem appears to have gone away.

I think this is due to the normals, but I'm not sure.

  • Allow for easier swapping of shader programs
  • Try shading without lighting
  • Further debugging...

[DONE] Load shaders from path rather than in same document

Alternatively, compile into the page while building

[DONE] Toggle between precompiled animations and "vibration"

[DONE] Toggle gridlines

[DONE] Toggle normals and regular

[DONE] Generate normals in shader

[DONE] Precompile animations

I would like to be able to precompile animations as either a sequence of textures, or as a video.

[DONE] Rotate the texture about in arbitrary axis

Rotating the texture in 2D doesn't make any sense, let's use the equations from here and here.

I don't think we have to do any conversion, I think we can just do the rotation with the vector components and be just fine.

[DONE] Series of textures

  • Generate sequence of textures representing an animation
  • For each animation request
    • Load the next textures from the animation
    • Draw
  • Allow toggling between the original vibrate-back-and-forth and the series of textures
  • Also animate and load normals

From video

Some reference

HTML5 frame-by-frame

Steps

  • Generate sequence of textures
  • Compress sequence of textures into video
  • Load up video with Javascript in such a way that I can get an even framerate and access frames individually
  • For each animation request
    • Load the next frame from the animation
    • Draw

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published