Comments (5)
How does the 'Set position from Map' node get position information from a render texture and which render Texture format must it be?
It simply interprets R, G, B color component values as X, Y, Z component values, so that the render texture format should be RGBAHalf or RGBAFloat to support a wide range of real value.
I am not sure what is being done with the remapBuffer. Why is remapping required?
It's just used to transfer data acquired from RealSense (which is on the CPU memory) to the GPU memory.
Is there a way to directly use the arrays received ( RGB8 color and Vector3 position) arrays into the 'Set Position/Color' nodes of VFX graph or is the only way to bake this data into render textures which can be used in the 'Set Position/Color from Map' nodes?)
You have to transfer data to GPU in any way to utilize GPU. There might be another way to do it (e.g. using compute buffers instead of render textures), but it's not possible to use those managed arrays without transferring.
from rsvfx.
I'm closing the issue now. Please feel free to reopen for further questions.
from rsvfx.
Thanks @keijiro for your answers. They were very useful in baking pos/color to the render textures and visualising with VFX graph.
However, at the moment I am experiencing a huge performance drop. I am passing an array to Unity's computeBuffer.SetData function with the pos/color per pixel data.
In your implementation, you have used an unsafeUtility.SetUnmanagedData function and I think this makes the difference in improving performance. But upon looking into the Utility.cs class I see a disclaimer saying "Do not try this at home" :). If this improves performance over the SetData method, apart from it not being future-proof are there any other cons of using this method?
from rsvfx.
There is no known issue with it, it’s strongly discouraged to use it though.
from rsvfx.
@akashcastelino Did you ever figure this out? I'm interested in doing something similar. If I have a color image and an array of the depths for those pixels, do I really need a remapBuffer or can I replace it with something else?
from rsvfx.
Related Issues (20)
- How to solve this problem? HOT 6
- Work with Spout HOT 4
- How can I import external package via git? HOT 1
- Maximum distance from the camera HOT 9
- question and not an issue HOT 1
- Rsvfx doesn't use full frame data HOT 5
- Using RealSense recordings HOT 2
- Rotation issue HOT 8
- Merge to colored pointcloud HOT 2
- External Data Question HOT 3
- ARKit HOT 3
- Not seeing anything using playback with .bag files. No D400 connected HOT 1
- No device connected when using D455 HOT 6
- Support for Intel RealSense L515 (LiDAR scanner) HOT 11
- Update to 2020? HOT 16
- Nothing on screen, using D435 HOT 1
- Apple Silicon support
- Reverse movement HOT 1
- Using URP HOT 1
- Device not detected while using Intel RealSense D455 Model HOT 6
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 rsvfx.