Re: [Plib-users] ssgTexture
Brought to you by:
sjbaker
|
From: Curtis L. O. <cu...@me...> - 2002-11-27 01:24:16
|
Does plib produce any complaints when you load the texture?
Curt.
Mat Davidson writes:
> Im having some trouble with ssgTexture and Im not sure what is
> happening. Here is my code:
>
>
> ssgSimpleState *faceState[6];
> ssgTexture *tex;
>
> for( i=0 ; i<5 ; i++ )
> {
> faceState[i] = new ssgSimpleState;
> /*
> bmpImageLoad( gDataManager->facePath[i], &width, &height, &texBytes );
> tex = new ssgTexture ( gDataManager->facePath[i], texBytes, width,
> height, 0 );
> */
> tex = new ssgTexture( gDataManager->facePath[i] );
>
> faceStates[i]-> setTexture( tex );
> }
>
>
> As you can see, Ive tried both my own loader code and ssgTexture() to
> load the image. Once the calls are made I make an ssgVTable, set its
> state and params, give it to an ssgTransform, and then add it to my
> sceneRoot. The final product of this labor is a white square with no
> texture. Is there any kind of advice anyone can give me about how I
> should deal with this, places to look, etc?
>
> mat.
>
> Im having some trouble with ssgTexture and Im not sure what is
> happening. Here is my code:
>
>
> ssgSimpleState *faceState[6];
> ssgTexture *tex;
>
> for( i=0 ; i<5 ; i++ )
> {
> faceState[i] = new ssgSimpleState;
> /*
> bmpImageLoad( gDataManager->facePath[i], &width, &height,
> &texBytes );
> tex = new ssgTexture ( gDataManager->facePath[i], texBytes,
> width, height, 0 );
> */
> tex = new ssgTexture( gDataManager->facePath[i] );
>
> faceStates[i]-> setTexture( tex );
> }
>
>
> As you can see, Ive tried both my own loader code and ssgTexture() to
> load the image. Once the calls are made I make an ssgVTable, set its
> state and params, give it to an ssgTransform, and then add it to my
> sceneRoot. The final product of this labor is a white square with no
> texture. Is there any kind of advice anyone can give me about how I
> should deal with this, places to look, etc?
>
> mat.
>
--
Curtis Olson IVLab / HumanFIRST Program FlightGear Project
Twin Cities cu...@me... cu...@fl...
Minnesota http://www.menet.umn.edu/~curt http://www.flightgear.org
|