• Advertisement

Archived

This topic is now archived and is closed to further replies.

Multitextures

This topic is 6031 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

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

Share this post


Link to post
Share on other sites
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

Share this post


Link to post
Share on other sites
Get ATI:s OGLMulTex and play around with it. http://www.ati.com/na/pages/resource_centre/dev_rel/sdk/Rage128sdk/Prog3D.html

Share this post


Link to post
Share on other sites
Thanks...
zedzeek: I''m having problems accesing your site. Anywhere else I can find similiar information?

Share this post


Link to post
Share on other sites
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

Share this post


Link to post
Share on other sites
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?

Share this post


Link to post
Share on other sites
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

Share this post


Link to post
Share on other sites
Have you considered using some pre-computational algorithm to combine the textures in a nifty way beforehand?

-Mezz

Share this post


Link to post
Share on other sites
Guest Anonymous Poster
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...

Share this post


Link to post
Share on other sites
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

Share this post


Link to post
Share on other sites

  • Advertisement