agentfx
can it be done. I've tried a few things nothing works. 

Test spotty nebula preset (no density, vel anything dynamic) 
can we get points where they is density based on the texture/opacity graph? I don't think so. 
I'm trying to make a galaxy map, and I need natural clumping stars. I was thinking itd be neat to mix a fluid shader with that for both color and added detail. But can it be done? Not sure. I tried a few things, but nothing to show for it yet. 

Closest thing was convert fluids to poly scatter on that which is ok but pretty even across the surface. 
--Dave
Reply 0 0
pshipkov
There is no voxel data in this case. I really don't like how we cannot touch the shading aspect of the fluids. Big draw back.
At some point i was about to start on tool that will reverse engineer that, but realized that it will be messy and probably never working right.
The idea is that the fluid textures are basically based on the volumeNoise3D texture (or at least very similar to it). So we can easily extract data from the 3D textures. Remember they have this originXYZ attribute. By setting it to some world position and reading the .outColor attribute we get the color value at that point.
So we can match the settings of the volumeNoise to those of the fluid texture and then for each voxel we pass its XYZ coordinates to the volumeNoise.origin attribute and then read the volumeNoise.outColor data. The only problem is that fluids have bunch of other stuff on top of that - like implode, falloff, gain ramp, etc. I can probably accommodate for all of that, but that's a "nice little" project that i don't feel jumping in :)
On the same note the overburn script can do the opposite can pump voxel properties based on standard 3D texture.

Reply 0 0
agentfx
ok lets try this
VolumeNoise>TextureArray>attributeTransfer?>scatter
No I can't think of the missing connection of transfering the rgb or alpha to point position? 

I didn't really understand this "By setting it to some world position and reading the .outColor attribute we get the color value at that point."
--Dave
Reply 0 0
pshipkov
Yes you can do that, but you have to turn on the accurateSampling option.

Network should be like that:
baseGeo->scatter->pointCloudToCurve->textureToArray-> textureToArray.outRgbaPP has the right colors
                                                                                   |
                                                                           volumeNoise (or other texture node)


---------------------------------

createNode volumeNoise;
getAttr volumeNoise.outColor; // prints some values that relate to point with coordinates 0 0 0
setAttr volumeNoise.origin 5 5 5;
getAttr volumeNoise.outColor; // prints color values different than the ones above, because that's the color for point with coordintates 5 5 5

Hope that makes sense.

Reply 0 0
Reply