- Home /
Drawing tiny objects (grid problem)
I have the following environments:
- Ground - A cube with scale (10,0.2,10)
- Tiny objects - A cube with scale (0.028, 0.056, 0.013)
- Looking the scene from top view
- Draw grid lines using LineRenderer on top of the ground
Everything works as expected except some of the grid lines do not show up or too thick.
I tried with the following:
- lineRenderer.SetWidth(0.01, 0.01). Result: Some of the grid lines do not show up
- lineRenderer.SetWidth(0.02, 0.02). Result: Some of the grid lines are too thick
I appreciate any advice. Thanks in advance for your help.
That won't really work anyway, since different people will be running at different resolutions. If you want to have exact control over pixel thickness of lines, I'd recommend http://www.starscenesoftware.com/vectrosity.html
Does Vectrosity require Unity Pro? I am using the free Unity.
Answer by pion · Jul 31, 2011 at 05:26 PM
I bought Vectrosity from Star Scene Software. It solves my grid problem.
Great product and GREAT support! It has saved hours even days of my time.
Answer by Waz · Jul 29, 2011 at 04:03 AM
Use a (repeating) texture for the ground that has the grid lines on it, that way the Bilinear filtering will ensure you get something at any scale.
Your answer
Follow this Question
Related Questions
How to draw a line in unity3d 3 Answers
Collider is not working... 2 Answers
What is the best way to draw a border around a viewport? 1 Answer
line renderer help 1 Answer
LineRenderer GetPosition? not there. 2 Answers