Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Show polyline normals #117

Open
mrmalee opened this issue Dec 5, 2011 · 8 comments
Open

Show polyline normals #117

mrmalee opened this issue Dec 5, 2011 · 8 comments
Labels
feature It's a feature, not a bug.

Comments

@mrmalee
Copy link

mrmalee commented Dec 5, 2011

Hi, first off its great that Tiled now has polyline and polygon objects, however, I really need to know what direction my lines are facing, if there could be an option to draw line normals (front and perpendicular) that would make my life so much easier. Right now, I build my lines, compile my game and have to fix up any lines that don't face my desired direction. If I could see this in Tiled I wouldn't have to go through this tedious task.

Thanks.

@bjorn
Copy link
Member

bjorn commented Dec 5, 2011

Could you draw a mockup of what these lines are supposed to look like?

Did you look at the Tiled source code to see whether you may be able to add this feature yourself?

@mrmalee
Copy link
Author

mrmalee commented Dec 6, 2011

Sure, http://boxofsoap.com/work/gamedev/tiled/tiled_line_normals.jpg I'd imagine that from the settings window you can toggle a checkbox "draw line normals". I'd also imagine that the size of the normal's would be defined as something like 10% of the lines length or a fixed value. I'd love to try add the code myself but I'm unfamiliar with C++ and the QT framework and also very busy with my current project.

@bjorn
Copy link
Member

bjorn commented Dec 6, 2011

Hmm, your URL isn't working for me.

@mrmalee
Copy link
Author

mrmalee commented Dec 7, 2011

@bjorn
Copy link
Member

bjorn commented Dec 7, 2011

Ah, that also explains why you need the normal. Well, I guess it shouldn't be too hard to add. Maybe I will find some time after the 0.8 release.

@ghost
Copy link

ghost commented Feb 13, 2012

Hi mrmalee. If you get my version of tiled, you can try out drawing of normals on polylines and polygons. It just draws them by default.

https://github.com/MegaJiXiang/tiled

@jamesrehabstudio
Copy link

Sorry to resurrect an old post, but this is a feature I would like/need. I'd try adding it myself, but I can't write C++.

@bjorn bjorn changed the title [Request] Show polyline normals Show polyline normals Aug 25, 2015
@bjorn
Copy link
Member

bjorn commented Aug 30, 2015

@jamesrehabstudio I'll just note that @MegaJiXiang implemented this feature for orthogonal maps in MegaJiXiang/tiled@7c391f4f184cb74f1e38bbb4ab1fba97b62c923e. Eventually this feature will make it into Tiled, but I wouldn't wait for it (though I would of course support me on Patreon to help me get around to it earlier :-)).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature It's a feature, not a bug.
Projects
None yet
Development

No branches or pull requests

3 participants