Volumetrics / Ray Marching

Volumetrics / Ray Marching

Postby Skinnytorus » Wednesday, 14.May 2014, 16:59

Hi there,
I wonder if there is a potential to do Volumetrics / Ray marching stuff in wz4. On one hand we have all sorts of density fields (ADF, SDF, PDF) and no proper way to render their effect... Maybe a volumetric material modulated by a 3d texture or something?... Any ideas?
Skinnytorus
Operator
Operator
 
Posts: 1300
Joined: Monday, 06.February 2012, 17:46

Re: Volumetrics / Ray Marching

Postby ikam » Wednesday, 14.May 2014, 17:32

it seems complicated :p, I never done this kind of thing.
ikam
Operator
Operator
 
Posts: 911
Joined: Friday, 14.October 2011, 13:00
Location: France

Re: Volumetrics / Ray Marching

Postby Skinnytorus » Wednesday, 14.May 2014, 17:37

Skinnytorus
Operator
Operator
 
Posts: 1300
Joined: Monday, 06.February 2012, 17:46

Re: Volumetrics / Ray Marching

Postby Skinnytorus » Wednesday, 14.May 2014, 17:50

OK. Then maybe a basic fog material modulated by a 3d noise texture? I don't see any way to modulate fog for now...
Skinnytorus
Operator
Operator
 
Posts: 1300
Joined: Monday, 06.February 2012, 17:46

Re: Volumetrics / Ray Marching

Postby ikam » Thursday, 15.May 2014, 06:43

I found into the deep of wz4 code, a piece of code (commented) that seems destined to display adf as rendernode.
Code seems correct but it mess the 'ops' (script code that define operators) part.

I'll try to do someting with that, maybe it could be a first step.
ikam
Operator
Operator
 
Posts: 911
Joined: Friday, 14.October 2011, 13:00
Location: France

Re: Volumetrics / Ray Marching

Postby Skinnytorus » Thursday, 15.May 2014, 07:07

Cool. Was that the last remmed out part of adf.cpp?
Skinnytorus
Operator
Operator
 
Posts: 1300
Joined: Monday, 06.February 2012, 17:46

Re: Volumetrics / Ray Marching

Postby ikam » Thursday, 15.May 2014, 07:40

yes, the RNRenderADF code
ikam
Operator
Operator
 
Posts: 911
Joined: Friday, 14.October 2011, 13:00
Location: France

Re: Volumetrics / Ray Marching

Postby Skinnytorus » Thursday, 15.May 2014, 08:10

There are pointers to MakeRay and TraceRay functions necessary for raymarching. Any success yet?
Skinnytorus
Operator
Operator
 
Posts: 1300
Joined: Monday, 06.February 2012, 17:46

Re: Volumetrics / Ray Marching

Postby ikam » Thursday, 15.May 2014, 08:46

I successfully write the operator and bind it to the RNRenderADF code and it runs correctly but it display nothing except a big box colored at edges.
All interesting render stuff is made by the associated shader in file adf_shader.asc, there is some part of code disabled and some errors, I need to works on this part to get something usefull...
ikam
Operator
Operator
 
Posts: 911
Joined: Friday, 14.October 2011, 13:00
Location: France

Re: Volumetrics / Ray Marching

Postby Skinnytorus » Thursday, 15.May 2014, 08:51

OK. Good luck there!
Skinnytorus
Operator
Operator
 
Posts: 1300
Joined: Monday, 06.February 2012, 17:46

Re: Volumetrics / Ray Marching

Postby ikam » Thursday, 15.May 2014, 10:39

Ok I pushed on github a restored version of the RenderADF code with its new operator.
It render an adf volume (fromMesh ADF) but need some tweaks to do something better, and for now I don't see cleary what we can do with that...
You do not have the required permissions to view the files attached to this post.
ikam
Operator
Operator
 
Posts: 911
Joined: Friday, 14.October 2011, 13:00
Location: France

Re: Volumetrics / Ray Marching

Postby Skinnytorus » Thursday, 15.May 2014, 11:04

Yeah... Not much. Besides, It blacks out the rest of the scene and makes other meshes transparent... As if it didn't do a z-buffer check...
You do not have the required permissions to view the files attached to this post.
Skinnytorus
Operator
Operator
 
Posts: 1300
Joined: Monday, 06.February 2012, 17:46

Re: Volumetrics / Ray Marching

Postby ikam » Thursday, 15.May 2014, 11:55

at worst, we can use it for debugging adf volumes as this render is better than the default previewer for adf operators :)
ikam
Operator
Operator
 
Posts: 911
Joined: Friday, 14.October 2011, 13:00
Location: France

Re: Volumetrics / Ray Marching

Postby Skinnytorus » Thursday, 15.May 2014, 12:29

OK. I wonder if fog material can be modulated by texture. That would be great! :)
Skinnytorus
Operator
Operator
 
Posts: 1300
Joined: Monday, 06.February 2012, 17:46

Re: Volumetrics / Ray Marching

Postby ikam » Thursday, 15.May 2014, 14:17

you mean something like that (2nd example) ?

I prefer the particles volume (first example)
You do not have the required permissions to view the files attached to this post.
ikam
Operator
Operator
 
Posts: 911
Joined: Friday, 14.October 2011, 13:00
Location: France


Return to New Feature Suggestions



Who is online

Users browsing this forum: No registered users and 3 guests

cron