Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How to implement Oracle-type operations? #5

Open
VokerZJ opened this issue Sep 3, 2024 · 2 comments
Open

How to implement Oracle-type operations? #5

VokerZJ opened this issue Sep 3, 2024 · 2 comments

Comments

@VokerZJ
Copy link

VokerZJ commented Sep 3, 2024

I would like to use the Tree constructed with Libfive's Oracle API for rendering with MPR, taking full advantage of the GPU's acceleration capabilities. However, I found that the code does not seem to support this kind of operation. I want to know how to implement it. Can anyone give me some advice and help?
image

@mkeeter
Copy link
Owner

mkeeter commented Sep 3, 2024

This will not be particularly easy!

As you've seen, MPR only supports pure math operations. Implementing a fully generic oracle for MPR would probably be overkill; in libfive, it was important to allow others to extend the library with closed-source components.

It would be simpler to add a specific new opcode (e.g. ORACLE_MESH), then write the CUDA code to implement that operation. The actual implementation — as well as how to pass in data and whether to support tape simplification — are left as an exercise to the reader.

@VokerZJ
Copy link
Author

VokerZJ commented Sep 4, 2024

Thank you so much,sir . I

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

No branches or pull requests

2 participants