Comments (9)
Hi,
I think there's already sort of something like that available - If you go to Utilities and select "GLTF Utilities", there's a button called "Add GLTF Node":
I never really got far with it because I don't have any specific test settings, but if A-Frame isn't too hard to setup, I might give it a go during the weekend, since adding a utility to go through all the materials and rearranging the links shouldn't be too hard.
Did I understand it correctly, that the correct setup would be like this? - Does A-Frame just assume that the UV map for the "main" texture is channel 1 when it's not specified?:
from the_lightmapper.
Oh, I didn't see that!
And yes, that's what I meant!
A-Frame relies on ThreeJS, and thankfully Diego just updated it:
aframevr/aframe#5288
You don't have to set up A-Frame (you can, of course, and I would be very glad to assist!) but you can use Don McCurdy's gltf viewer:
https://gltf-viewer.donmccurdy.com/
If it works there, it works anywhere.
Thank you so much!
PS:
BabylonJS viewer:
https://sandbox.babylonjs.com/
PlayCanvas Viewer:
https://playcanvas.com/viewer
from the_lightmapper.
Thank you very much for these, would save me a lot of time trying to set up viewers for these frameworks! - With a bit of luck, I might be able to have a utility feature added sometime this weekend
from the_lightmapper.
Awesome, thank you!
Let me know if I can assist.
from the_lightmapper.
I've tried a bit on doing this, and I've gotten it working to some extent - The problem is that the .hdr lightmaps are "downgraded" from 32-bit to 8-bit jpg/png files, thus you loose quite a bit of lighting data. While 8-bit works fine to some extent (but it becomes washed out and not fully HDR), I'm looking into if I can make something work with the encoded 8-bit files - The problem with this is that it needs a decoder on the other end too, and I don't know if A-Frame have some way to decode RGBD files?
from the_lightmapper.
Not entirely sure, tbh.
Since A-Frame is a wrapper around THREE, there seems to be a way but not very straightforward:
https://discourse.threejs.org/t/threejs-loader-add-hdr/25758
So, the gltfLoader might support this but I wouldn't know how to test this.
How about a switch?
I could imagine a use case where people would like to directly look into the textures and can't see/edit .hdr files directly.
from the_lightmapper.
For the AddGLTF Node
button, i get this error on Blender 4.1, using the latest 0.6.3 build. I'll try the latest main branch for comparison!
from the_lightmapper.
That's odd, i had downloaded the latest 0.6.3 but in the Add-on preferences dialog it said the previous version had been 0.5.5.0...
in any case, now using the latest master branch, i get a different error:
Python: Traceback (most recent call last):
File "/Users/warren/Library/Application Support/Blender/4.1/scripts/addons/thelightmapper/addon/operators/tlm.py", line 1710, in execute if 'Occlusion' not in gltf_settings_node.node_tree.inputs:
ААААААААААААААААААААААААААААААААЛАЛ
AttributeError: 'ShaderNode Tree' object has no attribute 'inputs'
Thanks for this great add-on!
from the_lightmapper.
Ah just noting i'm also seeing a connection to this issue: #185 (comment)
from the_lightmapper.
Related Issues (20)
- Blender 3.4.1 and Lightmapper finishes bake under a second and no lightmaps are generated HOT 7
- Can't bake object with multiple instances HOT 1
- Possible path issue when cleaning using Linux/Mac
- strange artifacts with denoise activated HOT 5
- Fix OpenCV installation with Blender 3.5+ HOT 1
- Cannot build lightmaps (Blender 3.5) HOT 1
- Background baking not working with AtlasGroups HOT 1
- Add option to build lights with a neutral white color as material
- can i bake multiple matirial into one lightmap with this tool and how can i do it ? HOT 8
- It use CPU insteade of GPU to render HOT 3
- Expose GPU mode when using OIDN 2.0
- Some faces are darker for no reason
- Enabling denoise causes problems Blender 3.6 HOT 1
- Addon renders scene from camera view instead of generating a lightmap. HOT 1
- Update addon for Blender 4.0 HOT 3
- Certain objects don't clean up properly in the "clean lightmaps" step HOT 1
- Support for Flamenco Renderfarm HOT 1
- GLTF Utilities - error - Cannot add socket to built-in node HOT 7
- bpy.ops.tlm.build_lightmaps() failed by python console HOT 2
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 the_lightmapper.