Comments (5)
Sounds like an interesting problem!
Are the little cubicle volumes on a voxel grid?
I'd have used instancing for the little volumes, but then every cube would be raytraced seperately. Since the handling of transparency is suboptimal outside the ray tracer (when combining the little volumes), this appraoch might not work out very well.
So all the cubes should be ray traced in the same pass.
If the little volumes are all on a grid, we should be able to reuse the ray tracing that is already implemented in GLVisualize (volume.frag). If not, we also need to do hit detection of the smaller volumes on the whole screen. This is definitely a bit more challenging.
You can look at the examples from https://github.com/SimonDanisch/ShaderToy.jl/tree/next2, to get a feel of how some other people implemented ray tracing in the fragment shader. It might be a bit cluttered for your purpose ;)
I'll see if the people from FireRender respond and tell me how to ray trace volumes with their API.
I got going with this tutorial:
http://prideout.net/blog/?p=64
from glvisualize.jl.
Are the little cubicle volumes on a voxel grid?
Yes. Sounds like it might be best to render a complete volume image first, then do the raytracing.
You can look at the examples from https://github.com/SimonDanisch/ShaderToy.jl/tree/next2
Ooh! Did not know about this repo at all! Incredibly helpful (as always), many thanks.
from glvisualize.jl.
Great to hear :) I just realised the install commands are outdated... If you have next2 already running, you should be fine as is!
from glvisualize.jl.
I've updated the README for next2
.
Okay if they're on a grid I can create a little snippet to get you started ;) It might take until Monday though, since I'll be off the grid pretty soon!
I guess it will just be a quick adaptation of the current volume tracer... You put the base alpha values in the volume texture and then create the life alpha values on the fly... For the color you could just add another texture from which you can sample.
from glvisualize.jl.
Thanks a ton. I myself have other priorities, but I probably won't be able to entirely prevent myself from playing with ShaderToy as a fun diversion.
from glvisualize.jl.
Related Issues (20)
- How to use rotations?
- Make deleting an object easier by returning the output of extract_renderable from _view HOT 3
- 1) Orthographic camera example, 2) Default camera too close, and 3) Custom camera disrupts zooming and rotation HOT 7
- Scoping error with `filter` function in camera.jl when running GLPlot HOT 7
- cubecamera error HOT 8
- line_segment.vert will not link HOT 8
- Google Summer of Code 2018
- The glvisualize.com web site is gone (domain expired) HOT 4
- Color of an object changing in time HOT 3
- FFmpeg-converted video not showing properly in some of the standard players HOT 2
- Test failed on volume.jl, warnings in build HOT 4
- Doc examples out of date?
- Dynamically adjust the number of rendered objects HOT 6
- test errors on MacOS HOT 5
- ERROR: GLVisualize test HOT 2
- Julia 0.7 / 1.0 HOT 9
- ERROR: Unsatisfiable requirements detected for package GLVisualiz HOT 1
- Info about upcoming removal of packages in the General registry
- Unsatisfiable requirements with julia 1.2.0 on Ubuntu 18.04 HOT 1
- More volume rendering algorithms 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 glvisualize.jl.