Welcome,
Guest
. Please
login
or
register
.
1 Hour
1 Day
1 Week
1 Month
Forever
Login with username, password and session length
News:
Home
Help
Search
Login
Register
www.jpct.net
»
jPCT-AE - a 3d engine for Android
»
Support
»
lost texture when do animating
« previous
next »
Print
Pages: [
1
]
Go Down
Author
Topic: lost texture when do animating (Read 2136 times)
guillaume
int
Posts: 67
lost texture when do animating
«
on:
December 21, 2011, 01:56:37 pm »
I do a setTexture on my model , and setup keyframe animation for it,
but after animate, the model become black, seems lost its texture ,
how can I keep the texture ? should re setTexture after each frame ?
thanks.
Logged
EgonOlsen
Administrator
quad
Posts: 12295
Re: lost texture when do animating
«
Reply #1 on:
December 21, 2011, 02:03:48 pm »
Actually there's no relation between animations and textures. The data structures corresponding to textures are not even touched when animating a model. Maybe you forgot to calculate normals for the meshes, so that the texture is actually there but lighting is missing? Try to increase ambient lighting in the world to see if something shows up then.
Logged
guillaume
int
Posts: 67
Re: lost texture when do animating
«
Reply #2 on:
December 22, 2011, 05:56:07 am »
ah, yes. I do a calcNormals(), and it shows up. thanks.
Logged
Print
Pages: [
1
]
Go Up
« previous
next »
www.jpct.net
»
jPCT-AE - a 3d engine for Android
»
Support
»
lost texture when do animating