# Unable to display text..plz Help

**URL:** <https://forums.imgtec.com/t/unable-to-display-text-plz-help/465>\
**Category:** PowerVR Insider\
**Created:** [September 2, 2009, 5:29am UTC](https://forums.imgtec.com/t/unable-to-display-text-plz-help/465 "2009-09-02T05:29:43Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![rassall\_jubair](https://avatars.discourse-cdn.com/v4/letter/r/8e7dd6/32.png) [@rassall\_jubair](https://forums.imgtec.com/u/rassall_jubair)\
**Post date:** [September 2, 2009, 5:29am UTC](https://forums.imgtec.com/t/unable-to-display-text-plz-help/465/1 "2009-09-02T05:29:43Z")

</div>

Im trying to&nbsp; display text using&nbsp; **Print3D** function. so i just add following lines into my program and also added Image.cpp file into Simplecube.mmp file
  

&nbsp;
  

  
 

const **char** c\_szImageTexFile[] = "Image.pvr";

  

  
 

void **CSimpleCube::AppInit** ( **void** )

  

{
  

.....................
  

....................
  

  

m\_Print3D. **SetTextures** (0,iScreenWidth,iScreenHeight, bRotate = false);

  

  
 

PVRTTextureLoadFromPVR(c\_szImageTexFile, &m\_ui32Texture);

  

}

  

&nbsp;

  

  
 

void **CSimpleCube::AppCycle** ()

  

{

  

...........

  

...........
  

&nbsp;
  

  

**glEnable** ( **GL\_TEXTURE\_2D** );

  

  

m\_Print3D. **DisplayDefaultTitle** ("IntroducingPVRTools", "Description", _ePVRTPrint3DLogoPVR_);

  

m\_Print3D. **Print3D** (8.0f, 30.0f, 1.5f, **PVRTRGBA** (64, 64, 170, 255), "example");

  

  

m\_Print3D. **Flush** ();

  

&nbsp;
  

}
  

&nbsp;
  

this is basically a Nokia symbian opengles example program (simplecube). here i trying to implement powervr coding to &nbsp;display text&nbsp;reference one of powerVR example (Introduction to PVRTools). 
  

&nbsp;
  

After compile the code program can install successfully into phone.But when i try to run the program in&nbsp;my Nokia N95 only Powevr **logo** is displaying.but&nbsp;the **text** is not display.&nbsp;I added image.cpp file in my source folder.&nbsp;the example coding usage **pvrshell.** but i don't using pvrshell headers files.So&nbsp;above lines is enough for display text. or any other configaration needed?
  

&nbsp;
  

I think, my program can't load the texture(image.pvr). but any other way to load this texture use my above codestyle..
  

&nbsp;
  

So plz help me about this isssue...
  

&nbsp;
  

Thanks
rassall\_jubair2009-09-02 08:24:26

---

<div class="post-metadata">

**Author:** ![rassall\_jubair](https://avatars.discourse-cdn.com/v4/letter/r/8e7dd6/32.png) [@rassall\_jubair](https://forums.imgtec.com/u/rassall_jubair)\
**Post date:** [September 17, 2009, 6:56am UTC](https://forums.imgtec.com/t/unable-to-display-text-plz-help/465/2 "2009-09-17T06:56:14Z")

</div>

Hello…

&nbsp;
  

Untill there is no response abt this issue..I m&nbsp;desperately waiting for usefull comments/response to solve this problem.... after some examination Im&nbsp;little bit sure&nbsp;only following&nbsp; lines is enogh to display text and even do need image.pvr and c\_szImageTexFile, &m\_ui32Texture to display only fonts/texts..&nbsp;
  

&nbsp;
  

  

m\_Print3D. **DisplayDefaultTitle** ("IntroducingPVRTools", "Description", _ePVRTPrint3DLogoPVR_);

  

m\_Print3D. **Print3D** (8.0f, 30.0f, 1.5f, **PVRTRGBA** (64, 64, 170, 255), "Hello");

  

  

m\_Print3D. **Flush** ();

  

  

  

  

Here, even logo is displaying but still text not display..what is the problem in my program?
  

&nbsp;
  

Plz suggest me ...
  

&nbsp;
  

&nbsp;
  

Thanks
  

Rassall

---

<div class="post-metadata">

**Author:** ![Scott](https://sea1.discourse-cdn.com/flex015/user_avatar/forums.imgtec.com/scott/32/256_2.png) [@Scott](https://forums.imgtec.com/u/Scott)\
**Post date:** [September 24, 2009, 12:33pm UTC](https://forums.imgtec.com/t/unable-to-display-text-plz-help/465/3 "2009-09-24T12:33:58Z")

</div>

Hi,

&nbsp;
  

I modified Nokia's SimpleCube example in a very similar way to you and can see the text and logo.
  

&nbsp;
  

Code:

void CSimpleCube::AppInit( void )  
{

....  
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; m\_Print3D.SetTextures(0, iScreenWidth, iScreenHeight);

}

&nbsp;

void CSimpleCube::AppExit( void )  
{  
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; m\_Print3D.ReleaseTextures();  
}

&nbsp;

void CSimpleCube::AppCycle( TInt aFrame )  
&nbsp;&nbsp;&nbsp; {  
....

&nbsp;&nbsp;&nbsp; m\_Print3D.DisplayDefaultTitle("IntroducingPVRTools", "Description", ePVRTPrint3DLogoPVR);

&nbsp;&nbsp;&nbsp; m\_Print3D.Print3D(8.0f, 30.0f, 1.5f, PVRTRGBA(64, 64, 170, 255), "example");

  
&nbsp;&nbsp;&nbsp; m\_Print3D.Flush();  
}

  

&nbsp;
  

The only difference is my call to SetTextures. 
  

&nbsp;
  

Thanks,
  

&nbsp;
  

Scott

---

<div class="post-metadata">

**Author:** ![rassall\_jubair](https://avatars.discourse-cdn.com/v4/letter/r/8e7dd6/32.png) [@rassall\_jubair](https://forums.imgtec.com/u/rassall_jubair)\
**Post date:** [September 24, 2009, 1:13pm UTC](https://forums.imgtec.com/t/unable-to-display-text-plz-help/465/4 "2009-09-24T13:13:39Z")

</div>

Scott wrote:

Hi,  

&nbsp;
  

I modified Nokia's SimpleCube example in a very similar way to you and can see the text and logo.
  

&nbsp;
  

Code:

void CSimpleCube::AppInit( void )  
{

....  
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; m\_Print3D.SetTextures(0, iScreenWidth, iScreenHeight);

}

&nbsp;

void CSimpleCube::AppExit( void )  
{  
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; m\_Print3D.ReleaseTextures();  
}

&nbsp;

void CSimpleCube::AppCycle( TInt aFrame )  
&nbsp;&nbsp;&nbsp; {  
....

&nbsp;&nbsp;&nbsp; m\_Print3D.DisplayDefaultTitle("IntroducingPVRTools", "Description", ePVRTPrint3DLogoPVR);

&nbsp;&nbsp;&nbsp; m\_Print3D.Print3D(8.0f, 30.0f, 1.5f, PVRTRGBA(64, 64, 170, 255), "example");

  
&nbsp;&nbsp;&nbsp; m\_Print3D.Flush();  
}

  

&nbsp;
  

The only difference is my call to SetTextures. 
  

&nbsp;
  

Thanks,
  

&nbsp;
  

Scott

&nbsp;
  

  

  

  

Thanks Scott...but i have already add SetTextures&nbsp;in my coding(plz see my1st post)&nbsp;and also noted im trying to implement this&nbsp;text coding using&nbsp;Artoolkitplus s60 for Augmented Reality where camera is on.&nbsp;&nbsp;  

&nbsp;
  

  

I tried to follow your way to add SetTextures..
  

&nbsp;
  

m\_&nbsp;Print3D.SetTextures(0,iScreenWidth,iScreenHeight);
  

&nbsp;
  

&nbsp;
  

but result is same...only logo display but text not display yet....but i want to display the text...
  

&nbsp;
  

so, how we can solve this?plz suggest me..
  

&nbsp;
  

Thanks...
  

&nbsp;
  

&nbsp;
  

&nbsp;

rassall\_jubair2009-09-24 15:37:33

---

<div class="post-metadata">

**Author:** ![Scott](https://sea1.discourse-cdn.com/flex015/user_avatar/forums.imgtec.com/scott/32/256_2.png) [@Scott](https://forums.imgtec.com/u/Scott)\
**Post date:** [September 24, 2009, 2:24pm UTC](https://forums.imgtec.com/t/unable-to-display-text-plz-help/465/5 "2009-09-24T14:24:28Z")

</div>

rassall\_jubair wrote:

so, how we can solve this?plz suggest me..

&nbsp;
  

The above code snippets were the only changes I made to simplecube to get print3D to work. If you send your code to [devtech@imgtec.com](mailto:devtech@imgtec.com)&nbsp;we can take a look and compare it with my changes to see if we can figure out your problem.
