Dear OpenSG users,

I would like to use the volume rendering in OpenSG with OpenGL shading language.
I have to admit that I have difficulties to figure out how the different
components work together so I try to avoid writing my own components by
subclassing or extending etc ...

I followed the "testSimpleVolumeNode" example checked in on sourceforge. I added
a ChunkMaterial (with an SHLChunk) as RenderMaterial to the DVRVolume and this
seems "somehow" to work. Unfortunately it seems that from my 4 component image
only one component makes it into the shader ....

Going back to the original example I realized that it seems to be the same
there. It looks like the first component (red ????) is copied into the other
components. The image is declared as 4 component image.
"imageP->set(Image::OSG_RGBA_PF,res,res,res)"

Has somebody a hint how I can fix this, or may be a better way to use shading
language with the volume rendering?

Kind regards,
Bjoern Zehner

--------------------------------------------
Dr. Bjoern Zehner
UFZ Centre for Environmental Research - CHS
Permoserstraße 15
D-04318 Leipzig
Germany
Phone: +49 (0)341 235 3979

----------------------------------------------------------------
This message was sent using IMP, the Internet Messaging Program.



-------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc. Do you grep through log files
for problems?  Stop!  Download the new AJAX search engine that makes
searching your log files as easy as surfing the  web.  DOWNLOAD SPLUNK!
http://ads.osdn.com/?ad_idv37&alloc_id865&op=click
_______________________________________________
Opensg-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/opensg-users

Reply via email to