Re: [Plib-users] ssgTexture
Brought to you by:
sjbaker
|
From: Mat D. <mdd...@en...> - 2002-11-27 02:16:08
|
nope, none.
m.
On Tuesday, November 26, 2002, at 08:24 PM, Curtis L. Olson wrote:
> 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
>
>
> -------------------------------------------------------
> This SF.net email is sponsored by: Get the new Palm Tungsten T
> handheld. Power & Color in a compact size!
> http://ads.sourceforge.net/cgi-bin/redirect.pl?palm0002en
> _______________________________________________
> plib-users mailing list
> pli...@li...
> https://lists.sourceforge.net/lists/listinfo/plib-users
|