🔒 Locked
Detail texture
Advertisement
Original Post
Hi All, Two questions: 1. Does anyone know of any PC graphics cards that support detail texture? 2. Does anyone have a sample OpenGL program that does detail texture that I can try running on my PC (I am running Pentium 3, Windows 2000, ATI Radeon 9800 Pro)? Thanks.
Detail texture is just a name for a regular texture that is repeated many times over a larger mesh with another texture under it (multitextures), ie a heightfield mesh.
To try this, just draw a simple quad with texture coords 0.0 and 5.0. This will repeat the texture 5 times over the quad.
EDIT:
...and you must set texture wrap to GL_REPEAT.
glTexParameteri( GL_TEXTURE_2D, GL_TEXTURE_WRAP_S, GL_REPEAT );
glTexParameteri( GL_TEXTURE_2D, GL_TEXTURE_WRAP_T, GL_REPEAT );
[Edited by - skanatic on February 24, 2005 4:01:03 PM]
To try this, just draw a simple quad with texture coords 0.0 and 5.0. This will repeat the texture 5 times over the quad.
EDIT:
...and you must set texture wrap to GL_REPEAT.
glTexParameteri( GL_TEXTURE_2D, GL_TEXTURE_WRAP_S, GL_REPEAT );
glTexParameteri( GL_TEXTURE_2D, GL_TEXTURE_WRAP_T, GL_REPEAT );
[Edited by - skanatic on February 24, 2005 4:01:03 PM]
Thanks for your reply, Skanatic.
Multitexturing does not work on my computer. Are there any other alternatives?
Multitexturing does not work on my computer. Are there any other alternatives?
Quote:
Original post by skanatic
I'm pretty sure your graphics card has support for multitextures. Update your graphics card's driver to the latest.
It's a long story. I did try to download and install the latest driver but got an error "Zero Display Error" while installing it. I posted a message about this a few weeks ago.
I installed the latest driver on another computer (win XP, AMD), and it installed fine.
I ran a multitexturing sample program from the OpenGL Performer API on both computers, and the program claims that my graphics card doesn't support multitexturing, on both computers.
Well... something is wrong. Perhaps it's a hardware error. The 9800 is a pretty modern card and does support OpenGL 1.5. So if you get the same error on both computers perhaps the card is broken. Try it in a third computer. If the problem still prevail you could contact your supplier and ask them.
EDIT:
Can you run the latest games without any problems?
EDIT:
Can you run the latest games without any problems?
I know that a 9800 supports multi-texuring I had one.
you need to setup the correct functions in windows before you can use them even with 1.5 installed you can't just say
you need to setup the texture units correclty and setup the functions ahead of time...
PFNGLMULTITEXCOORD2FARBPROC glMultiTexCoord2fARB = NULL;PFNGLACTIVETEXTUREARBPROC glActiveTextureARB = NULL;PFNGLCLIENTACTIVETEXTUREARBPROC glClientActiveTextureARB = NULL;you need to setup the correct functions in windows before you can use them even with 1.5 installed you can't just say
glBegin(GL_QUADS);glMultiTexCoord2f(); glVertex3f();//blah blahglEnd();you need to setup the texture units correclty and setup the functions ahead of time...
There is information on using extensions in the Forum FAQ if you want to do multitexturing on your own. If you're having driver problems, try uninstalling them completely before installing the new ones. If you're still having problems, contact ATI.
Thanks everybody for your feedbacks. I'll look into this more and try the various things you suggested.
Topic Locked
This topic has been locked by a moderator. New replies are not allowed.
Sign in to reply to this topic.
Advertisement