Sign in to follow this  

2 questions

This topic is 4389 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

Hey guys, i have 2 questions. 1) I did the NeHe tutorial 14, and learned how to make 3d text, which is pretty cool :) How can i "fix" it to the camera so that it ALWAYS stays in one place on the screen? 2) I have altered a 3ds loader i downloaded to load multiple 3ds models i have made. How can i do skeletal animation? Thanks :) Mike

Share this post


Link to post
Share on other sites
Well, the easiest way i can think of would be to

render scene
push a modelview matrix,
set it to identity,
move your text into position
render text
pop matrix

(of course if your scene transform changes every frame as i suspect it does, you could instead of pushing and popping the modelview matrix, simply set the current matrix to identity and then move your text. since theres no sense in saving a state that wont be used again anyways)

i have a question for you though: Unless you have your text at a little angle so you can see the bottom of the text, whats the point of having 3d text anyways? you might as well use bitmap fonts if you ask me.

as far as the 3ds skeletal animation question goes, i'm sure there are some tutorials out there, though i gotta ask, why do 3ds anyways? there are other formats far more suited for games anyways

cheers (hope that helps)
-Dan

Share this post


Link to post
Share on other sites
Quote:
Original post by Ademan555
Well, the easiest way i can think of would be to

render scene
push a modelview matrix,
set it to identity,
move your text into position
render text
pop matrix

(of course if your scene transform changes every frame as i suspect it does, you could instead of pushing and popping the modelview matrix, simply set the current matrix to identity and then move your text. since theres no sense in saving a state that wont be used again anyways)

i have a question for you though: Unless you have your text at a little angle so you can see the bottom of the text, whats the point of having 3d text anyways? you might as well use bitmap fonts if you ask me.

as far as the 3ds skeletal animation question goes, i'm sure there are some tutorials out there, though i gotta ask, why do 3ds anyways? there are other formats far more suited for games anyways

cheers (hope that helps)
-Dan




ok. It's working. Only problem is this - when i turn the camera with the mouse or keyboard, the text doesn't turn with it - meaning that if i turned the camera 90 degrees for example, i see the side of the 3d text

Share this post


Link to post
Share on other sites
Well if you're setting the modelview to identity, and then translating your text into position (in screen space), it should stay anchored to the camera, because the translations and rotations associated with the camera arent applied

hope that helps
-Dan

Share this post


Link to post
Share on other sites

This topic is 4389 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

Sign in to follow this