Jump to content
  • Advertisement
Sign in to follow this  
  • entries
  • comments
  • views

Making good progress

Sign in to follow this  


I now have the first steps of the texteffect class working... and it is even more flexible than I realised... I now have the text rotate around 3 times scaling the height so the text is flattened into a line. The text stops rotating and then grows to full height. This basically gives te text a futuristic feel, a line spins around and then grows into the desired text.

I haven't got individual characters to work yet, but I have written an inherrited texteffect class that should work correctly to give a random direction individual character flyin. I set keyframes so that each character is placed between 2 and 3 screenspace units in a random direction from word screen position. The characters then interpolate back to their original position so each character flys in from a random direction and each character arrives at a different speed.

With a little further work, I might even consider stacking effects, so I could combine a rotation effect with the fly-in effect.

Ideally I'd like to be able to incorporate special shader based effects and particle effects to create a really good text effect system, but I think realistically it's overkill for my simple portfolio project.

Anyhoo, tonights work will be to try to finish the texteffect class and also start (and hopefully finish) the final scoring system.


Sign in to follow this  


Recommended Comments

Write the effects so that they can be applied to arbitrary polygons and not only will you get more use from them, but the code will probably be better too.

Share this comment

Link to comment
Well, technically, in all but name, the class could apply the effects to any given polygon, You simply use the class by setting keyframes and calling the GetMatrix function whenever you want a matrix to apply a transformation.

For multiple characters in a string there is an overloaded GetMatrix function which takes an index value. If the index value is larger than the number of matrices maintained, a new matrix is created and it has its' own set of keyframes initiated.

So essentially, nothing would change if you were to use the class on an arbitary polygon. Perhaps I should renamed the class cKeyframedTransformationMatrix or something!



Share this comment

Link to comment

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
  • Advertisement

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

GameDev.net is your game development community. Create an account for your GameDev Portfolio and participate in the largest developer community in the games industry.

Sign me up!