I love using 1d texture mapping in
my projects. It is great for
However I need to know the answer
to this question.
Is it possible to texture one quad with
multiple 1dtexture values accross it.
currently I am building a large quad with
2500 seperate quads and for every vertex
assigning a texture value. Can I draw one large quad and assign a texture value at the verticies if the verticies are not there??
hope this makes sense to someone.
You can apply more than one texture to primitives using multitexturing. Don’t expect to be able to use as many textures as you like, cause most comsumer level implementations don’t allow more than two textures at once. Some more advanced hardware might support a few more textures.
And that second question doesn’t make much sense to me. Do you want to assign texture coordinates to vertices without having any vertices?
Texture coordinates are specified per vertex only, and if you don’t have any vertices, you cannot specify any texture coorodinates. On the other hand, if you don’t have any vertices you cannot draw any primitives at all.
Hi Saline. I am currently doing the contour ploting and I am planing to use 1d texture mapping. But I don’t know where to start with 1d texture. Can you give me some tips like what the basic precedure that I have to follow so on…if you have some simples that i can share. that will be great. Thanks alot.
If I understand what your are trying to do…It seems as though you want to take samples from your data and store them in a buffer and then display that on 1 quad. This sounds the same as building your own texture on the fly and then using that texture on the quad. That is the way I would do it.