Multitextures

Started by
8 comments, last by Rudan 22 years, 10 months ago
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
-----------------------------Reporter: Are they slow-moving, chief?Sheriff: Yeah, they're dead. They're all messed up.-Night of the living dead
Advertisement
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
Get ATI:s OGLMulTex and play around with it. http://www.ati.com/na/pages/resource_centre/dev_rel/sdk/Rage128sdk/Prog3D.html
Thanks...
zedzeek: I''m having problems accesing your site. Anywhere else I can find similiar information?
-----------------------------Reporter: Are they slow-moving, chief?Sheriff: Yeah, they're dead. They're all messed up.-Night of the living dead
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
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?
-----------------------------Reporter: Are they slow-moving, chief?Sheriff: Yeah, they're dead. They're all messed up.-Night of the living dead
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
Have you considered using some pre-computational algorithm to combine the textures in a nifty way beforehand?

-Mezz
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...
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
masterghttp:/masterg.andyc.org

This topic is closed to new replies.

Advertisement