Coder Social home page Coder Social logo

Only {4,3,6} working about hypvr-ray HOT 4 CLOSED

roice3 avatar roice3 commented on August 26, 2024
Only {4,3,6} working

from hypvr-ray.

Comments (4)

henryseg avatar henryseg commented on August 26, 2024

How is it broken for you? Changing the scene from Sphere_horosphere to Sphere_plane may help for the other values of r?

from hypvr-ray.

roice3 avatar roice3 commented on August 26, 2024

I see, in fragmentInclude.glsl, horosphereSize is hardcoded for the {4,3,6} and planeOffset hardcoded for {4,3,7}. So e.g. Sphere_plane works for the {4,3,7} but gives bad results for the {4,3,8} (pic below). So we'll just need to make those sizes uniforms to pass into the shader. It would probably be nicer for the user to not have separate sphere and plane options, and to default to the correct option depending on the honeycomb.

image

from hypvr-ray.

henryseg avatar henryseg commented on August 26, 2024

Ah I see. In "sphere_plane" the geodesic plane is (I believe) set to give the "head" of the dual cell, no matter what value of p is used. But the sphere radius is hard coded to work reasonably for {4,3,7}. Yes, these should be fed in as uniforms. But what choices should we make for the sphere radius? Is there a natural choice to make?

from hypvr-ray.

roice3 avatar roice3 commented on August 26, 2024

This is fixed now, and works well in most all cases. One example where it doesn't work is Sphere_plane doesn't produce goodness for the 436. What I think would be better would be to not have scenes that pick the cutting from a vertex, because we can automatically pick the correct cut (sphere, horosphere, plane) based on the vertex figure. I think I'll open an issue for that.

from hypvr-ray.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.