I have looked for TextureTransformChunk but I didn't understand which method
I have to use.

>...
> way VRML does, but rather as an attribute of the Material.
>...

When do you speak about attribute do you refer to an OpenSG field?
I'm using OpenSg 1.2.0 library and I have a doubt: the vrml loader doesn't
translate textureTransform maybe (?).

An example: if I have this simple VRML what is the osg graph?

DEF Box01 Transform {
  translation -4.304 100.4 20.63
  children [
    Shape {
      appearance Appearance {
        material Material {
          diffuseColor 0.5882 0.5882 0.5882
          ambientIntensity 1.0
          specularColor 0 0 0
          shininess 0.145
          transparency 0
        }
        texture ImageTexture {
          url "texture.jpg"
        }
        textureTransform TextureTransform {
          center 0.5 0.5
          rotation 1.571
        }
      }
      geometry DEF Box01-FACES IndexedFaceSet {
      ...
      }
   ]
}



Thank you very much

Daniele



On Fri, 13 Feb 2004 09:27:17 -0600, Dirk Reiners <[EMAIL PROTECTED]> wrote :

> 
>       Hi Daniele,
> 
> On Fri, 2004-02-13 at 08:19, [EMAIL PROTECTED] wrote:
> > Thanks,
> > and now I have another simple (I think) question. Do you know if it is
> > possible that if I use SceneFileHandler::the().read("file.wrl") in order to
> > load a VRML97 SceneGraph with transformTexture node than I cannot find the
> > TextureTransformChunk into OSG Scene Graph?
> > And if this sound starnge to you, then how can I find it?
> 
> OpenGS doesn't store the texture transforms as nodes in the graph, the
> way VRML does, but rather as an attribute of the Material. So toy find
> the TextureTransformChunks you need to traverse the graph and for
> MaterialGroups and Geometries check their Materials whether they contain
> a TextureTransformChunk.
> 
> Hope it helps
> 
>       Dirk
> 
> 
> 
> 
> -------------------------------------------------------
> SF.Net is sponsored by: Speed Start Your Linux Apps Now.
> Build and deploy apps & Web services for Linux with
> a free DVD software kit from IBM. Click Now!
> http://ads.osdn.com/?ad_id=1356&alloc_id=3438&op=click
> _______________________________________________
> Opensg-users mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/opensg-users
> 
> 
> 


-------------------------------------------------------
SF.Net is sponsored by: Speed Start Your Linux Apps Now.
Build and deploy apps & Web services for Linux with
a free DVD software kit from IBM. Click Now!
http://ads.osdn.com/?ad_id=1356&alloc_id=3438&op=click
_______________________________________________
Opensg-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/opensg-users

Reply via email to