As you can see on the screenshot, the soldier should carry only one weapon. But on some systems the weapon is drawn using all sprite animation files at once.
http://npshare.de/files/fa267672/screen ... -06-05.jpg
Normally it uses just one. This is how the sprite file looks like:
http://npshare.de/files/2e0fe9a3/um_sniper.png
This happens on Radeon x1650 with latest Omega drivers. Any idea how to fix this?
Any idea why this sprite bug happens?
-
- Posts: 109
- Joined: Tue Jan 09, 2007 1:18 pm
Any idea why this sprite bug happens?
Crimson Glory full Irrlicht game source code!
What I Do - my blog & dev log
Currently developing Link-Dead
What I Do - my blog & dev log
Currently developing Link-Dead
Looks like the rifle is being draw from all the texture space, not only the part where it should be restricted to.
You could draw a quad whose mapping coordinates corresponded to those of the sprite you need at each time.
You could draw a quad whose mapping coordinates corresponded to those of the sprite you need at each time.
"There is nothing truly useless, it always serves as a bad example". Arthur A. Schmitt
-
- Posts: 109
- Joined: Tue Jan 09, 2007 1:18 pm
Yeah that's what I do I just map UV coordinates to the frame. However it doesn't work on that specific system.Mel wrote:You could draw a quad whose mapping coordinates corresponded to those of the sprite you need at each time.
Crimson Glory full Irrlicht game source code!
What I Do - my blog & dev log
Currently developing Link-Dead
What I Do - my blog & dev log
Currently developing Link-Dead
-
- Posts: 109
- Joined: Tue Jan 09, 2007 1:18 pm
The size of the gun sprite is 77x70.
The frame size is 77x14.
I use texture coords in vertices.
The coordinates are calculated from the sprite size.
Based on Texture->getSize().Height
This might be the problem... I remember this function giving different results on some systems. Why would it do that?
The frame size is 77x14.
I use texture coords in vertices.
The coordinates are calculated from the sprite size.
Based on Texture->getSize().Height
This might be the problem... I remember this function giving different results on some systems. Why would it do that?
Crimson Glory full Irrlicht game source code!
What I Do - my blog & dev log
Currently developing Link-Dead
What I Do - my blog & dev log
Currently developing Link-Dead
probably if you query hardware features on that system you will notice that NQuad textures are not supported. First you must try giving as input a square texture (possibly a power of 2.. so 128x128?)..
http://irrlicht.sourceforge.net/phpBB2/ ... hp?t=40497
http://irrlicht.sourceforge.net/phpBB2/ ... hp?t=40497
Junior Irrlicht Developer.
Real value in social networks is not about "increasing" number of followers, but about getting in touch with Amazing people.
- by Me
Real value in social networks is not about "increasing" number of followers, but about getting in touch with Amazing people.
- by Me
-
- Posts: 109
- Joined: Tue Jan 09, 2007 1:18 pm
Omega drivers, no idea, I can find out.
Could it a possible fix be a different texture wrapping?
Could it a possible fix be a different texture wrapping?
Crimson Glory full Irrlicht game source code!
What I Do - my blog & dev log
Currently developing Link-Dead
What I Do - my blog & dev log
Currently developing Link-Dead