basic 3d animation (like walker demo)
Hey,
Sorry if this is a stupid question...first post here.
I was trying to learn how to display and animate a 3d
object like you see in the walker demo on nehe''s site...which was
really cool=;P Got a way to load in .obj files
....using glm by Nate Robbins which you can get from romka''s site (romka.demonews.com) and wrote a small
program just to flip through different frames (not doing
interpolation between key frames yet,just loading a bunch
of frames of a dude walking=
well, my problem is one leg disappears in part of the
animation if i''m viewing the object head on, and then it
comes back in.....So, I made it so at first it could flip through automatically or I could pause it and step through each frame...either way there''s one or two frames where a leg disappears and then comes back to visible again in a later frame.
added ability to rotate the man object when i''m looking at an individual frame....when I rotate one of the man object''s frame, part of the man will disappear and then if you rotate it more it comes back in and another part disappears (not always the leg)....thought it might be something with lighting or something so I''ve tried lots of ambient lighting, then i tried disabling lighting and just displaying it regular to see if it was just a lighting thing, then tried moving the viewpoint.....still always the same problem so i haven''t been able to narrow it down/figure it out.
this was a couple of weeks ago and i kinda gave up in frustration...not sure what''s going on and was hoping somebody might have some ideas to try?
thanks!
Alright... You have to realize first that the skeleton in the Walker demo is just 32 different frames... All drawn as pictures and then textured onto a single quad that moves around the screen...
Next, try to increase the ''far'' portion of your viewport... It may be that the leg is being clipped because it''s farther back or whatever...
S.
Next, try to increase the ''far'' portion of your viewport... It may be that the leg is being clipped because it''s farther back or whatever...
S.
you''re right....i''m not trying to do what the walker
demo did...i''m trying to animate/flip thru
frames of a 3d object.
thanks for your suggestion....it was clipping the leg
(or any part that ended up to far beind) because
my far parameter in the projection was too close/not big
enough.
thanks a lot for your help!
This topic is closed to new replies.
Advertisement
Popular Topics
Advertisement