vertex shader textures
Re: vertex shader textures
Probably not in irr, since I get pink?
Re: vertex shader textures
Which version of Irrlicht do You use? Some time ago (~3-4 months) we had a bug with mipmaps in OpenGL but it's already fixed.
Library helping with network requests, tasks management, logger etc in desktop and mobile apps: https://github.com/GrupaPracuj/hermes
-
- Posts: 48
- Joined: Sun Apr 22, 2012 11:55 pm
- Location: Vienna
- Contact:
Re: vertex shader textures
I am using the latest trunk version right now. I will write an OpenGL example and test it again.
Re: vertex shader textures
So it looks like a driver bug because I also see a pink quad (Radeon HD3870 + Catalyst 12.4).
Library helping with network requests, tasks management, logger etc in desktop and mobile apps: https://github.com/GrupaPracuj/hermes
-
- Posts: 48
- Joined: Sun Apr 22, 2012 11:55 pm
- Location: Vienna
- Contact:
Re: vertex shader textures
Yes I tested it, there is a bug with glGenerateMipmap(), it seems that it doesn't like 1px textures. In Irrlicht this method only gets called until the EVDF_FRAMEBUFFER_OBJECT and EVDF_MIP_MAP_AUTO_UPDATE features are available and GL_SGIS_generate_mipmap was defined (last one was of course defined in glext.h). Otherwise it will fall back to either calling glTexParameteri(GL_TEXTURE_2D, GL_GENERATE_MIPMAP, GL_TRUE) or doesn't use mipmaps at all.
Interestingly enough with GL_TEXTURE_MIN_FILTER set to GL_LINEAR_MIPMAP_NEAREST, the 1px texture will be used at all mipmap levels, while a 2x2 px texture will cause the driver to disable texturing. Very strange *lol*
If somebody wants to test this: glGenerateMipmap has been core since OGL3.0 but on Windows I had to use the latest glew lib (1.7.0), the old version had a bug where the compiler didn't find the reference to that function. I am using Catalyst 12.6.
Interestingly enough with GL_TEXTURE_MIN_FILTER set to GL_LINEAR_MIPMAP_NEAREST, the 1px texture will be used at all mipmap levels, while a 2x2 px texture will cause the driver to disable texturing. Very strange *lol*
If somebody wants to test this: glGenerateMipmap has been core since OGL3.0 but on Windows I had to use the latest glew lib (1.7.0), the old version had a bug where the compiler didn't find the reference to that function. I am using Catalyst 12.6.
Re: vertex shader textures
I'm using 1.7 branch + various changes, FWIW.
Anyway, if you have a small GL-only example that reproduces it, please post it to AMD's bugzilla.
Anyway, if you have a small GL-only example that reproduces it, please post it to AMD's bugzilla.
-
- Posts: 48
- Joined: Sun Apr 22, 2012 11:55 pm
- Location: Vienna
- Contact:
Re: vertex shader textures
I just filed a bug report.
Re: vertex shader textures
http://msdn.microsoft.com/en-us/library ... p/bb206339
I found this about how vertex texture works in dx9 but i don't see how that is usefull to integrate them into irrlicht
I found this about how vertex texture works in dx9 but i don't see how that is usefull to integrate them into irrlicht
Last edited by Granyte on Sun Jul 08, 2012 4:01 pm, edited 1 time in total.
Re: vertex shader textures
Could you fix the link? Just hover on it an you will see what I mean.
Re: vertex shader textures
remove the (v=vs.85) and you're good
here's the link: http://msdn.microsoft.com/en-us/library ... p/bb206339
here's the link: http://msdn.microsoft.com/en-us/library ... p/bb206339
-
- Admin
- Posts: 14143
- Joined: Wed Apr 19, 2006 9:20 pm
- Location: Oldenburg(Oldb), Germany
- Contact:
Re: vertex shader textures
Looks like we only need to have a proper texture bind, which should usually be automatically. Maybe you just need the correct texture sample call?!
Re: vertex shader textures
Vertex texture are indeed working in DX9 the issue was not irrlicht but the way vertex texture are handeled in DX9
http://robertwrose.com/2005/05/vertex-t ... notes.html
http://robertwrose.com/2005/05/vertex-t ... notes.html
Re: vertex shader textures
Yikes, weird and limited. Just compare to how easy it was in opengl
Re: vertex shader textures
that's why i'm tryng to port a dx11 driver to the svn
dx9 is way outdated
Edit finaly NOP vertex texture fetch is not working even if the code compile it seem no texture is assigned to the register
dx9 is way outdated
Edit finaly NOP vertex texture fetch is not working even if the code compile it seem no texture is assigned to the register
Re: vertex shader textures
Damnit 4 days later and i still can't find the place where the texture a are binded to thier register in the current dx9 driver
The vertex texture register are diferent then the pixel ones and need to be assigned separatly but i can't even find where they are originaly assigned to pixel shader
The vertex texture register are diferent then the pixel ones and need to be assigned separatly but i can't even find where they are originaly assigned to pixel shader