Jump to content

  • Log In with Google      Sign In   
  • Create Account


Multitextures


Old topic!
Guest, the last post of this topic is over 60 days old and at this point you may not reply in this topic. If you wish to continue this conversation start a new topic.

  • You cannot reply to this topic
9 replies to this topic

#1 Rudan   Members   -  Reputation: 158

Like
Likes
Like

Posted 14 July 2001 - 01:54 AM

I''ve got a small problem with multitexturing in OpenGL. I''ve managed to get to texures to be blended together on a quad (like lightmaps), but what if I want to do something similiar to using different glColor on each vertex? For example: I have one quad where I want the left side to be textured with grass and the right side to be textured with rock, and I want a smooth change in the middle... This probably isn''t a very good explanation, sorry about that... Thanks

Sponsor:

#2 zedzeek   Members   -  Reputation: 528

Like
Likes
Like

Posted 14 July 2001 - 04:37 PM

theres a few ways of doing this depending on exactlly what u want see my site 4 a couple of methods. under the combine extensions

http://members.xoom.com/myBollux

#3 Obelix   Members   -  Reputation: 122

Like
Likes
Like

Posted 15 July 2001 - 01:47 AM

Get ATI:s OGLMulTex and play around with it. http://www.ati.com/na/pages/resource_centre/dev_rel/sdk/Rage128sdk/Prog3D.html

#4 Rudan   Members   -  Reputation: 158

Like
Likes
Like

Posted 15 July 2001 - 08:45 AM

Thanks...
zedzeek: I''m having problems accesing your site. Anywhere else I can find similiar information?

#5 zedzeek   Members   -  Reputation: 528

Like
Likes
Like

Posted 15 July 2001 - 11:10 AM

sorry im with xoom and they do seem to have access problems (must be using ms server like this site ) demos are there just gotta keep trying

http://members.xoom.com/myBollux

#6 Rudan   Members   -  Reputation: 158

Like
Likes
Like

Posted 16 July 2001 - 03:50 AM

Ok, I got it working now. Thanks, great example.

If I want four different textures (one for each vertex) should I just do the same thing four times but with different alpha textures, or is there a faster way to do it?

#7 zedzeek   Members   -  Reputation: 528

Like
Likes
Like

Posted 16 July 2001 - 12:27 PM

4 textures is gonna require a lot of passes. perhaps theres something u can do with register combiners actually im pretty sure that''ll help (though it''ll still take a few passes) but as i dont have a geforce i dont know how, sorry.

http://members.xoom.com/myBollux

#8 Mezz   Members   -  Reputation: 570

Like
Likes
Like

Posted 16 July 2001 - 01:14 PM

Have you considered using some pre-computational algorithm to combine the textures in a nifty way beforehand?

-Mezz

#9 Anonymous Poster_Anonymous Poster_*   Guests   -  Reputation:

Likes

Posted 17 July 2001 - 01:17 AM

quote:
Have you considered using some pre-computational algorithm to combine the textures in a nifty way beforehand?

You mean create a unique texture for each different way the textures can be blended? That may turn into a lot of textures...

How do people usually do to texture landscapes? Sometimes there must be more than two textures that needs to be blended...

#10 masterg   Members   -  Reputation: 100

Like
Likes
Like

Posted 17 July 2001 - 01:47 AM

For my terrain demo, which I''m near done with, I combine the amount of textures the user specifies all into one texture. I have a function which is used to specify each individual texture''s minelevation,max,minslope,maxslope,etc... Based on these values and a few other factors, I generate my own texture, which is then stretched across my terrain. If you want a pic look here http://www.geocities.com/tryforfulluse/water_lil_jpg.jpg
I read about generating my own textures from an article on flipcode.com and wella looks pretty damn good good luck




Old topic!
Guest, the last post of this topic is over 60 days old and at this point you may not reply in this topic. If you wish to continue this conversation start a new topic.



PARTNERS