Giter Site home page Giter Site logo

Comments (6)

hecomi avatar hecomi commented on July 23, 2024

Thanks for reporting. I've just started trying to fix it.

from uraymarching.

hecomi avatar hecomi commented on July 23, 2024

Fixed! Please try the latest .unitypackage from the release page (https://github.com/hecomi/uRaymarching/releases/tag/v1.0.2).

In my environment, it worked.

inline float DistanceFunction(float3 pos)
{
  float x = Box(pos, 1);
  pos -= float3(0.5, 0.5, 0.5);
  float y = Box(pos, 1);
  return max(-y, x);
}

bug-fix

w/ self shadow
with-shadow

from uraymarching.

Seremonik avatar Seremonik commented on July 23, 2024

Works! But right now im unable to zoom into object because its dissapearing,
And when im changing material to "Follow Object Size"
this happens with your code above:
image

Can you confirm if you can see this cubes subtraction from inside?

from uraymarching.

hecomi avatar hecomi commented on July 23, 2024
  1. Zoom into object
    Please check Camera Inside Object in the Conditions section and set Culling as Off in the Material Properties section. Camera Inside Object generates a code to check whether the start position of a ray is inside the object or not.

  2. Follow Object Size
    Ummm, it seems to be an another bug. I'll start trying to fix it soon, but if possible could you create a new issue for this problem?

from uraymarching.

Seremonik avatar Seremonik commented on July 23, 2024
  1. You are right, thank you :)
  2. of course, here you go
    #18

from uraymarching.

hecomi avatar hecomi commented on July 23, 2024

Thanks a lot!

from uraymarching.

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.