Jump to content
  • Advertisement
Sign in to follow this  
LiziPizi

What is offset?

This topic is 481 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

Pretty simple question and I didn't find any place that explains it in the context of game development, wiki explains offset in the context of geometry (parallel curves) and I am pretty sure its not the same offset in game development. I use Unity, and I encounter this term a lot.

Please explain it to me, thank you in advance.

Share this post


Link to post
Share on other sites
Advertisement

It's the same concept and is applied to various things. Commonly it refers either to a geometric offset or to an offset from a memory address. If you explain where you're seeing it then it can be explained more directly.

Share this post


Link to post
Share on other sites
An offset generally just means the same thing it means in math, it is the distance between two things.

When talking about a memory address offset, it is the distance from the starting pointer, with zero meaning it starts at the same place.

When talking about a graphics offset, it is the distance from the original, with zero meaning it is at the same place.

For curves, it might be the distance from the original for control points, or for parametric joints, or other things. But even so, offset still generally means the distance from the original.

Share this post


Link to post
Share on other sites

It's the same concept and is applied to various things. Commonly it refers either to a geometric offset or to an offset from a memory address. If you explain where you're seeing it then it can be explained more directly.

 

I currently make 2D mobile games and I see it a lot when I read tutorials, not about memory address but on other stuff, graphics in general.

Share this post


Link to post
Share on other sites

If it's in the context of graphics then it's a geometric offset of some kind. Probably a texture offset or just a model displacement.

Again, with a specific example you can get a specific explanation.

Share this post


Link to post
Share on other sites

Below is an example of an offset, it involves two objects, where one is constantly is setting its position to the other objects position + a small amount in a direction (this is the offset)

point A (position) <--------------------------> Camera (position)

                                     The offset

So, if you imagine in a RPG the camera is always a set amount behind you character, this distance would be the offset between the camera and the character.

 

This is just example; an offset can be used for lots of different things as you have seen in your travels. But it generally means the constant difference between the value of something, to the value of something else.

Hope that helps  

Share this post


Link to post
Share on other sites
Sign in to follow this  

  • Advertisement
×

Important Information

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

We are the game development community.

Whether you are an indie, hobbyist, AAA developer, or just trying to learn, GameDev.net is the place for you to learn, share, and connect with the games industry. Learn more About Us or sign up!

Sign me up!