Hi,
I know this should not be an issue, but I did not find direct examples to
demonstrate the right way to do blending
OK, here is the thing. I have a quad geometry, my background is solid, say,
green.
The color of each vertex of the quad is a Color4f variable, they have the
same values, like Color4f(1.0, 0.0, 0.0, 0.5)
However, when displaying the scene, the quad is pure red. What could be the
problem? Will OpenSG blend the scene and the background?
Or there are additional options to enable blending?
=====================
BTW, what is the right way to change the values of a GeoColors4f object.
I checked some tutorial code, the manners to change the value of Nodecore
objects are very confusing. Below are some examples.
For a GeoTexCoords2f object, we can change its values in this way:
tex->push_back(tex_value); // this seems the most common way, quite
intuitive
however, for a GeoTexCoords1fPtr object, in this way:
tex->*getField().*push_back(tex_value); // we have to get field before we
push back values, why?
As a constrast, for a GeoColors4f object, We have to do like this
color->*getFieldPtr()->*push_back(color_value); // this time, we have
to get the *pointer* of its field before we add values...
So how can I know what is right way to change values of a Nodecore object?
Thanks~~
--
Jie Liu
Visualization Research Group
Center for Information Science, School of EECS,
Room 2104, Science Building No.2,
Peking University, Beijing 100871, China
------------------------------------------------------------------------------
Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day
trial. Simplify your report design, integration and deployment - and focus on
what you do best, core application coding. Discover what's new with
Crystal Reports now. http://p.sf.net/sfu/bobj-july
_______________________________________________
Opensg-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/opensg-users