Comments (11)
Thanks everyone, I can see a lot of interest in this and I think there is a way to expose the necessary internals so that anyone can use them without React "at their own risk". July was super busy with work for me (I have been neglecting a few different feature/bug reports unfortunately 😭), but hopefully August will be more chill for me to revisit this. Thanks for waiting!
from react-three-lightmap.
Hey, this is a good question! I just recently finished a rewrite that decouples a lot of this code from React, so it is conceivable to expose completely a non-React API. I can take a look at it, but it will still take more work and planning, so I wouldn't expect this to happen soon, sorry!
If you are curious re: what this could look like, this is the entry point to main non-React-based baking logic:
The requestWork
function (it schedules slices of computation onto a responsive RAF loop) is currently provided via a React hook, but could be separated out as well.
from react-three-lightmap.
Well, that's one way to look at it :P
from react-three-lightmap.
I'd also love to see this useable without React! Such a cool project
Not real-time but might be a solution to anyone finding this issue
Blender Lightmaps https://github.com/Naxela/The_Lightmapper
from react-three-lightmap.
@unframework I also wish your awesome tech was decoupled from React ! 🙋🏼♂️ 🙏🏼
In fact, I would have expected it to belong in the exemples considering it has no equivalent ( beside this GI exemple: https://threejs.org/examples/?q=global#webgl_simple_gi ), and the
react-three-lightmap
repo would have been a wrapper around it.I hope you find time to decouple it, otherwise I'm sure someone will do it eventually ! 😄
the problem with these examples is that they're often just that, not something readily usable or applicable or even sharable. i've spent so much time with that demo you linked and gave up making it re-usable. my finding are here: https://codesandbox.io/s/adaptive-lightmaps-wsg13 the biggest problem was mutation, it starts to dismount scene contents. things are usually hard to share because they need awareness of the environment they're in, lifecycles, etc, or else it will be limited. this may not apply to this use case i don't know but it's usually the case sadly.
tbh would rather like to see a react thing that's stable and actually usable, as opposed to yet another example that's being thrown into jsm where nobody uses and maintains it.
from react-three-lightmap.
bump on this!
from react-three-lightmap.
Is there any update on this? Hopefully it can be used for non react project.
from react-three-lightmap.
Thank you for your response, I'll check it out.
from react-three-lightmap.
@unframework I also wish your awesome tech was decoupled from React ! 🙋🏼♂️ 🙏🏼
In fact, I would have expected it to belong in the exemples considering it has no equivalent ( beside this GI exemple: https://threejs.org/examples/?q=global#webgl_simple_gi ), and the react-three-lightmap
repo would have been a wrapper around it.
I hope you find time to decouple it, otherwise I'm sure someone will do it eventually ! 😄
from react-three-lightmap.
@drcmda life would be very boring if everything where super-polished, cohesive and readily usable... there would be nothing left to fix and improve ! 😄
from react-three-lightmap.
Related Issues (6)
- Update to work with latest r3f (^6) and drei (^4) HOT 1
- Rewrite to work with React's Concurrent Suspense mode HOT 8
- Question: What is the internal basis of the "generatePixelAreaLookup" function HOT 3
- scene not rendered in latest react-three/fiber HOT 14
- AutoUV does not unwrap the sphere geometry well HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from react-three-lightmap.