[android-developers] Re: business card design in opn gles

2010-04-24 Thread Lance Nanek
Multi-texturing is when you have multiple textures for the same
geometry. A single triangle, for example, with two images mapped to
it. It isn't needed for the method I recommended. That uses one
texture for each geometry. Textures can have transparent areas.
Depending on how you set your depth testing and blending, you can see
through them to geometries at the same location but drawn previously,
or geometries located behind them. So you can have a pair of triangles
with a character from the font mapped to them, but see through the
parts that don't have the actual character to a different geometry
behind them, say a larger pair of triangles with the business card
background color.

I've never used multi-texturing myself so don't know much about it. I
think it is normally used for having one texture with the colors for
an object, but then another texture with say some precalculated
lighting or something to modify that. One issue with it is that
Android phones aren't guaranteed to support multi-texturing. The
OpenGL ES 1.0 spec says implementations are only required to have at
least one texture unit. That said, I think I queried
GL_MAX_TEXTURE_UNITS on a G1 once, and saw two texture units. So maybe
they all happen to have at least 2 for the time being. If they don't
you'd have to write a compatibility mode for the phones without that
many.

On Apr 21, 8:09 am, tina lincon tina.theresalin...@wipro.com wrote:
 i mean to ask whether it is possible to superimpose 1 texture upon
 another..Like here in my application,acc to wat u say,i shud be having
 a big rectangle and 1 small rectangle with photo textured onto it and
 another small rectangle with text textured onto it and we need to
 superimpose dose 2 small textured rectangles on the bigger
 rectangle.so i mean to ask wheter itz possible to superimpose
 multiple textures on another?

 On Apr 21, 4:49 pm, tina lincon tina.theresalin...@wipro.com wrote:



  taaanx lance but is it possible to superimpose one texture upon
  another?wat u talkng isnt it concept abt multitexturing

  On Apr 21, 2:47 pm, Lance Nanek lna...@gmail.com wrote:

   Creating a texture with the whole text for eachbusinesscardwould be
   slow and take up a lot of texture memory. Instead you should create
   one texture that has all the characters needed from the font. To draw
   the whole text for anybusinesscardyou then, for each character of
   that text, use a pair of triangles with texture coordinates such that
   they display one character from the texture. There are countless tools
   and tutorials out there for doing text in OpenGL in this manner.

   Similarly, to have the photo on one half of thecardand the text on
   the other, you would just use more triangles, or in your case, pairs
   of triangles to make rectangles. Thecardis one large rectangle,
   perhaps not even textured, just colored white to start with. Then a
   smaller rectangle in front of that to show the picture. This rectangle
   needs to be drawn with the texture object with the picture bound and
   have the texture coordinates to show the picture. Then on the other
   half a bunch of small rectangles for each character of the text, also
   in front of the large rectangle that makes up thecard. This ones
   needs the texture object with the font bound, although that can be the
   same one if you are using an atlas texture and all photos and font
   characters happen to fit into it.

   On Apr 20, 2:41 am, tina lincon tina.theresalin...@wipro.com wrote:

any idea???

On Apr 15, 4:47 pm, Yahel kaye...@gmail.com wrote:

 Sorry to be that guy

 Most people on the list including me are not native english speakers.

 Your text seems to be in some kind of text message gibberish, can you
 try that again ?

 Yahel

 On 15 avr, 12:45, tina lincon tina.theresalin...@wipro.com wrote:

  Hi,
  I'm presently working with 3d contacts in open gles..the contact
  photos are being takn frm contacts via content provider and is being
  displayed as 3d contacts like a stack of cardsd pattern is 
  wrking
  fine but presently in my application,the whole contact photo is 
  being
  mapped into one square using texturing.What i want is to have a
  buisinesscardlike effect for my application like the photo size shud
  reduce n come on left side and on the right side of thecardi shud
  have the details like  name,phoneno,email,ringtone,officeno
  etc..since der is image n text to b textured @ d same time 
  in
  a single square or rectangle,shud i use the concept of 
  multitexturing
  for this or is der any other  simpler way todesignthecardin open
  gles???pls help me out.
   thanks in advance...- Hide quoted text -

 - Show quoted text -

--
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to 

[android-developers] Re: business card design in opn gles

2010-04-21 Thread Lance Nanek
Creating a texture with the whole text for each business card would be
slow and take up a lot of texture memory. Instead you should create
one texture that has all the characters needed from the font. To draw
the whole text for any business card you then, for each character of
that text, use a pair of triangles with texture coordinates such that
they display one character from the texture. There are countless tools
and tutorials out there for doing text in OpenGL in this manner.

Similarly, to have the photo on one half of the card and the text on
the other, you would just use more triangles, or in your case, pairs
of triangles to make rectangles. The card is one large rectangle,
perhaps not even textured, just colored white to start with. Then a
smaller rectangle in front of that to show the picture. This rectangle
needs to be drawn with the texture object with the picture bound and
have the texture coordinates to show the picture. Then on the other
half a bunch of small rectangles for each character of the text, also
in front of the large rectangle that makes up the card. This ones
needs the texture object with the font bound, although that can be the
same one if you are using an atlas texture and all photos and font
characters happen to fit into it.

On Apr 20, 2:41 am, tina lincon tina.theresalin...@wipro.com wrote:
 any idea???

 On Apr 15, 4:47 pm, Yahel kaye...@gmail.com wrote:



  Sorry to be that guy

  Most people on the list including me are not native english speakers.

  Your text seems to be in some kind of text message gibberish, can you
  try that again ?

  Yahel

  On 15 avr, 12:45, tina lincon tina.theresalin...@wipro.com wrote:

   Hi,
   I'm presently working with 3d contacts in open gles..the contact
   photos are being takn frm contacts via content provider and is being
   displayed as 3d contacts like a stack of cardsd pattern is wrking
   fine but presently in my application,the whole contact photo is being
   mapped into one square using texturing.What i want is to have a
   buisinesscardlike effect for my application like the photo size shud
   reduce n come on left side and on the right side of thecardi shud
   have the details like  name,phoneno,email,ringtone,officeno
   etc..since der is image n text to b textured @ d same time in
   a single square or rectangle,shud i use the concept of multitexturing
   for this or is der any other  simpler way todesignthecardin open
   gles???pls help me out.
    thanks in advance...- Hide quoted text -

  - Show quoted text -

 --
 You received this message because you are subscribed to the Google
 Groups Android Developers group.
 To post to this group, send email to android-developers@googlegroups.com
 To unsubscribe from this group, send email to
 android-developers+unsubscr...@googlegroups.com
 For more options, visit this group 
 athttp://groups.google.com/group/android-developers?hl=en

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en


[android-developers] Re: business card design in opn gles

2010-04-21 Thread tina lincon
taaanx lance but is it possible to superimpose one texture upon
another?wat u talkng isnt it concept abt multitexturing

On Apr 21, 2:47 pm, Lance Nanek lna...@gmail.com wrote:
 Creating a texture with the whole text for eachbusinesscardwould be
 slow and take up a lot of texture memory. Instead you should create
 one texture that has all the characters needed from the font. To draw
 the whole text for anybusinesscardyou then, for each character of
 that text, use a pair of triangles with texture coordinates such that
 they display one character from the texture. There are countless tools
 and tutorials out there for doing text in OpenGL in this manner.

 Similarly, to have the photo on one half of thecardand the text on
 the other, you would just use more triangles, or in your case, pairs
 of triangles to make rectangles. Thecardis one large rectangle,
 perhaps not even textured, just colored white to start with. Then a
 smaller rectangle in front of that to show the picture. This rectangle
 needs to be drawn with the texture object with the picture bound and
 have the texture coordinates to show the picture. Then on the other
 half a bunch of small rectangles for each character of the text, also
 in front of the large rectangle that makes up thecard. This ones
 needs the texture object with the font bound, although that can be the
 same one if you are using an atlas texture and all photos and font
 characters happen to fit into it.

 On Apr 20, 2:41 am, tina lincon tina.theresalin...@wipro.com wrote:





  any idea???

  On Apr 15, 4:47 pm, Yahel kaye...@gmail.com wrote:

   Sorry to be that guy

   Most people on the list including me are not native english speakers.

   Your text seems to be in some kind of text message gibberish, can you
   try that again ?

   Yahel

   On 15 avr, 12:45, tina lincon tina.theresalin...@wipro.com wrote:

Hi,
I'm presently working with 3d contacts in open gles..the contact
photos are being takn frm contacts via content provider and is being
displayed as 3d contacts like a stack of cardsd pattern is wrking
fine but presently in my application,the whole contact photo is being
mapped into one square using texturing.What i want is to have a
buisinesscardlike effect for my application like the photo size shud
reduce n come on left side and on the right side of thecardi shud
have the details like  name,phoneno,email,ringtone,officeno
etc..since der is image n text to b textured @ d same time in
a single square or rectangle,shud i use the concept of multitexturing
for this or is der any other  simpler way todesignthecardin open
gles???pls help me out.
 thanks in advance...- Hide quoted text -

   - Show quoted text -

  --
  You received this message because you are subscribed to the Google
  Groups Android Developers group.
  To post to this group, send email to android-developers@googlegroups.com
  To unsubscribe from this group, send email to
  android-developers+unsubscr...@googlegroups.com
  For more options, visit this group 
  athttp://groups.google.com/group/android-developers?hl=en

 --
 You received this message because you are subscribed to the Google
 Groups Android Developers group.
 To post to this group, send email to android-developers@googlegroups.com
 To unsubscribe from this group, send email to
 android-developers+unsubscr...@googlegroups.com
 For more options, visit this group 
 athttp://groups.google.com/group/android-developers?hl=en- Hide quoted text -

 - Show quoted text -

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en


[android-developers] Re: business card design in opn gles

2010-04-21 Thread tina lincon
i mean is it possible to superimpose 1 texture upon another?like d
card is 1 rectangleu take anothr small rectangle n texture d photo
in it...and anothr rectangle with text textured in it...and we goto
superimpose these two tiny rectangles into d big rectangle..so wat i
mean to ask is is it possible to place des two textured rectangles on
d bigger rectangle that is is it possible to superimpose multiple
textures on another?

On Apr 21, 2:47 pm, Lance Nanek lna...@gmail.com wrote:
 Creating a texture with the whole text for eachbusinesscardwould be
 slow and take up a lot of texture memory. Instead you should create
 one texture that has all the characters needed from the font. To draw
 the whole text for anybusinesscardyou then, for each character of
 that text, use a pair of triangles with texture coordinates such that
 they display one character from the texture. There are countless tools
 and tutorials out there for doing text in OpenGL in this manner.

 Similarly, to have the photo on one half of thecardand the text on
 the other, you would just use more triangles, or in your case, pairs
 of triangles to make rectangles. Thecardis one large rectangle,
 perhaps not even textured, just colored white to start with. Then a
 smaller rectangle in front of that to show the picture. This rectangle
 needs to be drawn with the texture object with the picture bound and
 have the texture coordinates to show the picture. Then on the other
 half a bunch of small rectangles for each character of the text, also
 in front of the large rectangle that makes up thecard. This ones
 needs the texture object with the font bound, although that can be the
 same one if you are using an atlas texture and all photos and font
 characters happen to fit into it.

 On Apr 20, 2:41 am, tina lincon tina.theresalin...@wipro.com wrote:





  any idea???

  On Apr 15, 4:47 pm, Yahel kaye...@gmail.com wrote:

   Sorry to be that guy

   Most people on the list including me are not native english speakers.

   Your text seems to be in some kind of text message gibberish, can you
   try that again ?

   Yahel

   On 15 avr, 12:45, tina lincon tina.theresalin...@wipro.com wrote:

Hi,
I'm presently working with 3d contacts in open gles..the contact
photos are being takn frm contacts via content provider and is being
displayed as 3d contacts like a stack of cardsd pattern is wrking
fine but presently in my application,the whole contact photo is being
mapped into one square using texturing.What i want is to have a
buisinesscardlike effect for my application like the photo size shud
reduce n come on left side and on the right side of thecardi shud
have the details like  name,phoneno,email,ringtone,officeno
etc..since der is image n text to b textured @ d same time in
a single square or rectangle,shud i use the concept of multitexturing
for this or is der any other  simpler way todesignthecardin open
gles???pls help me out.
 thanks in advance...- Hide quoted text -

   - Show quoted text -

  --
  You received this message because you are subscribed to the Google
  Groups Android Developers group.
  To post to this group, send email to android-developers@googlegroups.com
  To unsubscribe from this group, send email to
  android-developers+unsubscr...@googlegroups.com
  For more options, visit this group 
  athttp://groups.google.com/group/android-developers?hl=en

 --
 You received this message because you are subscribed to the Google
 Groups Android Developers group.
 To post to this group, send email to android-developers@googlegroups.com
 To unsubscribe from this group, send email to
 android-developers+unsubscr...@googlegroups.com
 For more options, visit this group 
 athttp://groups.google.com/group/android-developers?hl=en- Hide quoted text -

 - Show quoted text -

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en


[android-developers] Re: business card design in opn gles

2010-04-21 Thread tina lincon
i mean to ask whether it is possible to superimpose 1 texture upon
another..Like here in my application,acc to wat u say,i shud be having
a big rectangle and 1 small rectangle with photo textured onto it and
another small rectangle with text textured onto it and we need to
superimpose dose 2 small textured rectangles on the bigger
rectangle.so i mean to ask wheter itz possible to superimpose
multiple textures on another?

On Apr 21, 4:49 pm, tina lincon tina.theresalin...@wipro.com wrote:
 taaanx lance but is it possible to superimpose one texture upon
 another?wat u talkng isnt it concept abt multitexturing

 On Apr 21, 2:47 pm, Lance Nanek lna...@gmail.com wrote:





  Creating a texture with the whole text for eachbusinesscardwould be
  slow and take up a lot of texture memory. Instead you should create
  one texture that has all the characters needed from the font. To draw
  the whole text for anybusinesscardyou then, for each character of
  that text, use a pair of triangles with texture coordinates such that
  they display one character from the texture. There are countless tools
  and tutorials out there for doing text in OpenGL in this manner.

  Similarly, to have the photo on one half of thecardand the text on
  the other, you would just use more triangles, or in your case, pairs
  of triangles to make rectangles. Thecardis one large rectangle,
  perhaps not even textured, just colored white to start with. Then a
  smaller rectangle in front of that to show the picture. This rectangle
  needs to be drawn with the texture object with the picture bound and
  have the texture coordinates to show the picture. Then on the other
  half a bunch of small rectangles for each character of the text, also
  in front of the large rectangle that makes up thecard. This ones
  needs the texture object with the font bound, although that can be the
  same one if you are using an atlas texture and all photos and font
  characters happen to fit into it.

  On Apr 20, 2:41 am, tina lincon tina.theresalin...@wipro.com wrote:

   any idea???

   On Apr 15, 4:47 pm, Yahel kaye...@gmail.com wrote:

Sorry to be that guy

Most people on the list including me are not native english speakers.

Your text seems to be in some kind of text message gibberish, can you
try that again ?

Yahel

On 15 avr, 12:45, tina lincon tina.theresalin...@wipro.com wrote:

 Hi,
 I'm presently working with 3d contacts in open gles..the contact
 photos are being takn frm contacts via content provider and is being
 displayed as 3d contacts like a stack of cardsd pattern is wrking
 fine but presently in my application,the whole contact photo is being
 mapped into one square using texturing.What i want is to have a
 buisinesscardlike effect for my application like the photo size shud
 reduce n come on left side and on the right side of thecardi shud
 have the details like  name,phoneno,email,ringtone,officeno
 etc..since der is image n text to b textured @ d same time in
 a single square or rectangle,shud i use the concept of multitexturing
 for this or is der any other  simpler way todesignthecardin open
 gles???pls help me out.
  thanks in advance...- Hide quoted text -

- Show quoted text -

   --
   You received this message because you are subscribed to the Google
   Groups Android Developers group.
   To post to this group, send email to android-developers@googlegroups.com
   To unsubscribe from this group, send email to
   android-developers+unsubscr...@googlegroups.com
   For more options, visit this group 
   athttp://groups.google.com/group/android-developers?hl=en

  --
  You received this message because you are subscribed to the Google
  Groups Android Developers group.
  To post to this group, send email to android-developers@googlegroups.com
  To unsubscribe from this group, send email to
  android-developers+unsubscr...@googlegroups.com
  For more options, visit this group 
  athttp://groups.google.com/group/android-developers?hl=en-Hide quoted text -

  - Show quoted text -

 --
 You received this message because you are subscribed to the Google
 Groups Android Developers group.
 To post to this group, send email to android-developers@googlegroups.com
 To unsubscribe from this group, send email to
 android-developers+unsubscr...@googlegroups.com
 For more options, visit this group 
 athttp://groups.google.com/group/android-developers?hl=en- Hide quoted text -

 - Show quoted text -

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en


[android-developers] Re: business card design in opn gles

2010-04-20 Thread tina lincon
any idea???

On Apr 15, 4:47 pm, Yahel kaye...@gmail.com wrote:
 Sorry to be that guy

 Most people on the list including me are not native english speakers.

 Your text seems to be in some kind of text message gibberish, can you
 try that again ?

 Yahel

 On 15 avr, 12:45, tina lincon tina.theresalin...@wipro.com wrote:



  Hi,
  I'm presently working with 3d contacts in open gles..the contact
  photos are being takn frm contacts via content provider and is being
  displayed as 3d contacts like a stack of cardsd pattern is wrking
  fine but presently in my application,the whole contact photo is being
  mapped into one square using texturing.What i want is to have a
  buisinesscardlike effect for my application like the photo size shud
  reduce n come on left side and on the right side of thecardi shud
  have the details like  name,phoneno,email,ringtone,officeno
  etc..since der is image n text to b textured @ d same time in
  a single square or rectangle,shud i use the concept of multitexturing
  for this or is der any other  simpler way todesignthecardin open
  gles???pls help me out.
   thanks in advance...- Hide quoted text -

 - Show quoted text -

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en


[android-developers] Re: business card design in opn gles

2010-04-15 Thread tina lincon
does android support multitexturing as presently android supports only
open gles1.0 n multitexturing is der only on open gles 1.1..so
hw is it possible widout multitexturing to design dis buisiness card?


On Apr 15, 3:45 pm, tina lincon tina.theresalin...@wipro.com wrote:
 Hi,
 I'm presently working with 3d contacts in open gles..the contact
 photos are being takn frm contacts via content provider and is being
 displayed as 3d contacts like a stack of cardsd pattern is wrking
 fine but presently in my application,the whole contact photo is being
 mapped into one square using texturing.What i want is to have a
 buisiness card like effect for my application like the photo size shud
 reduce n come on left side and on the right side of the card i shud
 have the details like  name,phoneno,email,ringtone,officeno
 etc..since der is image n text to b textured @ d same time in
 a single square or rectangle,shud i use the concept of multitexturing
 for this or is der any other  simpler way to design the card in open
 gles???pls help me out.
  thanks in advance...

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

To unsubscribe, reply using remove me as the subject.


[android-developers] Re: business card design in opn gles

2010-04-15 Thread Yahel
Sorry to be that guy

Most people on the list including me are not native english speakers.

Your text seems to be in some kind of text message gibberish, can you
try that again ?

Yahel





On 15 avr, 12:45, tina lincon tina.theresalin...@wipro.com wrote:
 Hi,
 I'm presently working with 3d contacts in open gles..the contact
 photos are being takn frm contacts via content provider and is being
 displayed as 3d contacts like a stack of cardsd pattern is wrking
 fine but presently in my application,the whole contact photo is being
 mapped into one square using texturing.What i want is to have a
 buisiness card like effect for my application like the photo size shud
 reduce n come on left side and on the right side of the card i shud
 have the details like  name,phoneno,email,ringtone,officeno
 etc..since der is image n text to b textured @ d same time in
 a single square or rectangle,shud i use the concept of multitexturing
 for this or is der any other  simpler way to design the card in open
 gles???pls help me out.
  thanks in advance...

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

To unsubscribe, reply using remove me as the subject.