PDA

View Full Version : texture disappearing on pickup?



karancevic
09-29-2003, 10:45 AM
ooookkkk, this has to be the weirdest thing i've seen...

i'm implementing a routine to pick up objects and hold them. so far so good, minus one tiny problem; if you pick up objects which have a texture, they look kinda...funny...check out these pix:

no texture:
on the floor: http://virtual.ne.uiuc.edu/nick/debug20030929/notexturedown.jpg
held: http://virtual.ne.uiuc.edu/nick/debug20030929/notextureheld.jpg

with texture:
on the floor: http://virtual.ne.uiuc.edu/nick/debug20030929/texturedown.jpg
held: http://virtual.ne.uiuc.edu/nick/debug20030929/textureheld.jpg

any ideas what's causing this?

jwatte
09-29-2003, 07:23 PM
A bug in your OpenGL state management, most likely.

dorbie
09-29-2003, 07:37 PM
Blending is being enabled when the chair is picked.

I expect you have it attached at a different place in your code when picked and the effect is blend state, blendfunction and/or alpha is therefore different when you enter the code to draw the model.

[This message has been edited by dorbie (edited 09-29-2003).]

karancevic
09-29-2003, 11:33 PM
dorbie, i don't know how you did it, but you were right about every bit that you said...thanks http://www.opengl.org/discussion_boards/ubb/smile.gif