3 Replies - 764 Views - Last Post: 13 January 2011 - 06:08 PM Rate Topic: -----

#1 cutecutekid  Icon User is offline

  • New D.I.C Head

Reputation: 0
  • View blog
  • Posts: 21
  • Joined: 07-November 10

OpenGL Textures Applying

Posted 13 January 2011 - 07:45 AM

Hi. Can anyone give me some pointer on how to apply many textures on the same surface? I mean, right now, if i have a 2D square and i want to apply 2 different texture on the square, i will have to divide it into 2 parts, and apply it individually to the 2 part. So i had to actually render 2 quads, apply texture to those 2 quads to make up my square. Hence i was wondering if there are other ways around this problem?
Is This A Good Question/Topic? 0
  • +

Replies To: OpenGL Textures Applying

#2 anonymous26  Icon User is offline

  • D.I.C Lover

Reputation: 1
  • View blog
  • Posts: 3,638
  • Joined: 26-November 10

Re: OpenGL Textures Applying

Posted 13 January 2011 - 10:06 AM

Why can't you have a texture whose dimensions are a power of two and apply that to the quad?
Was This Post Helpful? 0
  • +
  • -

#3 Tom9729  Icon User is offline

  • Segmentation fault
  • member icon

Reputation: 180
  • View blog
  • Posts: 2,641
  • Joined: 30-December 07

Re: OpenGL Textures Applying

Posted 13 January 2011 - 05:34 PM

You can use the ARB_multitexture extension to bind several textures simultaneously. I think this is what you are asking?

There is a powerpoint with more information here. You could of course also do this with shaders.
Was This Post Helpful? 1
  • +
  • -

#4 cutecutekid  Icon User is offline

  • New D.I.C Head

Reputation: 0
  • View blog
  • Posts: 21
  • Joined: 07-November 10

Re: OpenGL Textures Applying

Posted 13 January 2011 - 06:08 PM

View PostTom9729, on 13 January 2011 - 04:34 PM, said:

You can use the ARB_multitexture extension to bind several textures simultaneously. I think this is what you are asking?

There is a powerpoint with more information here. You could of course also do this with shaders.

Yes yes exactly what i'm asking about. Thanks alot. I'll take alook at the link
Was This Post Helpful? 0
  • +
  • -

Page 1 of 1