Hello Jie Liu,
Jie Liu wrote:
> But what if I want to write volume rendering program? Volume rendering
> might involve Cg shaders, or can not be organized in a regular scene...
OpenSG 1.8 has volume rendering support (see
Source/System/NodeCores/Drawables/VolRen and the test*.cpp programs in
that directory). However, this was written before programmable hardware
became widely available.
> Can I control my rendering processes? Or, In other words, can I
> customize the rendering action for a special data set?
the RenderAction runs essentially a callback for each type of node core
it encounters and you can add new types or replace (or wrap) existing
callbacks to modify the behaviour. On the other hand there are some
things that may not be easily customized in this way, but if you could
tell us what you need we can give you a more definitive answer.
> To greater extent, what if I want to write customized OpenGL programs?
> How can I achieve this goal?
I'm not sure I fully understand the question, what do you mean by
customized OpenGL program?
If you have a bunch of OpenGL code that you want to use and make work
with OpenSG, you might want to write your own node core, if it is only
something small for testing and you don't need it to work in a cluster
take a look at Contrib/DrawFunctorCore
Cheers,
Carsten
------------------------------------------------------------------------------
Register Now for Creativity and Technology (CaT), June 3rd, NYC. CaT
is a gathering of tech-side developers & brand creativity professionals. Meet
the minds behind Google Creative Lab, Visual Complexity, Processing, &
iPhoneDevCamp as they present alongside digital heavyweights like Barbarian
Group, R/GA, & Big Spaceship. http://p.sf.net/sfu/creativitycat-com
_______________________________________________
Opensg-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/opensg-users