Jump to content
  • Advertisement

Stuck at coordinate system

Recommended Posts

So i am trying to draw some waypoints on earth - each waypoint is ansphere but thats not the point whenever incrementing x value of the waypoint position waypoint goes left instead of right. This is like i would need to use left haned coords instead of right handed ones

Imagine camera position is at 0,0,0 and its looking toward z+ lets say at 0,0,10

Now im looking at twonspheres one pink at 0.0, 0.0, 0.1 and red at 0.1, 0.0, 0.0

Red should be at right

Anyeay this is the issue that i need different coord system. Well at least i think that will do, but now how do i do that

What would be the easiest solution?

Negating x coord of object doesnt count cause i just described a relative situation which never occurs ( no camera and objects sitting on axis aligned planes)

I would like to leave everything like it is however i can't duento this partucular problem im having.


Lets say i have a gps position and a waypoint now whenever i face that waypoint i would like to see it on the screen - its something similar to google ar street view but i somehow cant place objects where they should be

Share this post

Link to post
Share on other sites

Yes, the simplest would probably be two coordinate systems, a cartesian (x,y,z with the planet's core in the centre) and a geodetic (lat/lon/height, elliptical coordinates) for world positions on the surface. And conversions between them. Converting geodetic to cartesian is less involved, but the other way round involves some scaling.

Edited by Green_Baron

Share this post

Link to post
Share on other sites

I'd rather want to change view or projection matrix to compute final output instead of changing coordinates, for now i have a bypass where i changed camera.class that z points at positive z and in vertex shader output of the x component is switched to -x but it just does not seem right

Share this post

Link to post
Share on other sites

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!