Re: [osg-users] Combing Texture

2008-07-21 Thread ka Ming
One Additional Information the only thing I see is that texture one is half transparent, but cannot see anything from texture two!! Why!! __ Gesendet von Yahoo! Mail. Dem pfiffigeren Posteingang. http://de.overview.mail.yahoo.com

[osg-users] Combining Textures

2008-07-21 Thread ka Ming
Hi, I am trying to combine two or more Textures. I read an OSG File in. After that I try to add a new Texture Attribute to my StateSet. E.g. the first Texture is a RGB Texture in the second one has some Alpha values. As result I want to see only the first texture at the texel where texture two t

Re: [osg-users] adding Texture State

2008-07-18 Thread ka Ming
search for texture2D. For instance osggeometry has a textured quad. Robert. On Fri, Jul 18, 2008 at 9:43 AM, ka Ming <[EMAIL PROTECTED]> wrote: > Hi, > I'am trying to add a texture attribute to a existing stateSet. If I try to > add the attribute with setTextureAttributeAndMode

[osg-users] adding Texture State

2008-07-18 Thread ka Ming
Hi, I'am trying to add a texture attribute to a existing stateSet. If I try to add the attribute with setTextureAttributeAndModes the list size increased but the Image I set is null. How do I correctly add a texture attribute?? Thanks Ming ___

[osg-users] get a Texel from an osg::Image

2008-07-11 Thread ka Ming
Hi, is there any possibility to get, for example the rgb value, out of an osg::Image. data() returns only an unsigned char* I need or I want an vec3 or with alpha value a vec4 as retrun value. Is there any solution. ming __ Gesendet

Re: [osg-users] osg::Texture and stateSets

2008-07-10 Thread ka Ming
DataAfterApply FALSE internalFormatMode USE_IMAGE_DATA_FORMAT } } } .. Some Ideas?? 冯晨 wrote: Hi, I think osgUtil::optimizer::TextureVisitor should solve your problem.:) Good luck. 在2008-07-09 22:53:21,"ka Ming" <[EMAIL PROTECTED]&

[osg-users] osg::Texture and stateSets

2008-07-09 Thread ka Ming
Hi, I got a Probel with osg Files, the File structure looks like: Group{ Geode{ Geometry{ StateSet{ Texture{ } } } } Geode{ Geometry{ StateSet{ Texture{ }

Re: [osg-users] combining Opacity Maps with Effects

2008-05-21 Thread ka Ming
Hi, again the question, In front of my bump Map i got an opacity map. Bump map works. Opacity maps works also. But on the transparent areas in my opacity map, I cannot see the Bumpmap instead of that the I the background color is displayed. Here is an excerpt of the osg File: Group { nodeMask

[osg-users] combining Opacity Maps with Effects

2008-05-18 Thread ka Ming
Hallo, I got a Problem with a BumpMap und a OpacityMap. In my SceneGraph there two Nodes. A BumpMapping Node, this already works fine. But in Front of this Node is an additional Node, which should be an Opacity Map. Can I combine the Opacity Map with the behind Node? The problem is that i'm need

[osg-users] osgFx Effects

2008-04-29 Thread ka Ming
Hallo, I have problem to get the effects of my Objects. I read in a 3ds File. I know, that in this file bumpmapping is used. Now I want to traverse my scenegraph and wanted to know which object have a bumpmap (or another effect). How can I implement that? I trying to cast the Group or Node to a