Advertisement

Math for writing my own screen to world conversion

Started by March 17, 2015 01:16 AM
2 comments, last by Khatharr 9 years, 9 months ago

I am learning some new concepts in game dev, and I am have written classes that have the capability to move sprites around on the screen autonomously. However, I now need to figure out a way to convert screen points to world points. How do I do that?

Are you talking 3d or 2d? If 3d, i have some algorithms I used way back in my AVR days...
I develop to expand the universe. "Live long and code strong!" - Delta_Echo (dream.in.code)
Advertisement


How do I do that?

Invert the process you use to convert world points to screen points.

For anything more specific, you'll have to describe your specific process.

Please don't PM me with questions. Post them in the forums for everyone's benefit, and I can embarrass myself publicly.

You don't forget how to play when you grow old; you grow old when you forget how to play.

Sounds like you may be asking about "mouse picking". Google that term and you should find a handful of articles on the subject.

void hurrrrrrrr() {__asm sub [ebp+4],5;}

There are ten kinds of people in this world: those who understand binary and those who don't.

This topic is closed to new replies.

Advertisement