Roads are looking blurry in Unity - unity3d

I am trying to make some real looking roads in my game,but the problem is ,when i am using roads so they are little bit blurry at distance and look like a real one.Can any one please guide me to solve this.I have uploaded my pic here
Is there possible solution for this?

Yes, it is a common problem, for textures' rendering at a certain distance/angle. You should enhance the aniso level, in order to apply an anisotropic filtering on the blurry texture (you can also change the aniso level from the texture's component, as in the picture below).
If the road is created via a Terrain component (which I doubt, since you already have a sandy terrain at the bottom), you should change the basemap distance.

Check also Quality settings, it might have Anisotropic textures disabled.

Related

How to color individual parts of curve in unity, real time?

So I have a mesh curve that I've imported from Blender. What I want to do is to place individual points on the curve (at fixed distance) and then based on a specific number, color them.
Let's say for instance number 1000 is color red and number 10 is color blue (based on color gradient). These numbers get updated real time, so I want my color to get updated real time.
I have no idea how to approach this problem. I've looked up some ideas but couldn't find anything useful.
Thank you.
Bad news, it's by no means easy to do this.
Unity is a game engine - it's just not relevant to that type of problem you know?
I believe the only real solution would be to do it at the shader level.
As you know writing shaders is a whole engineering field in itself. I suggest, just google things like "Unity3d color gradient, shader" in the first instance.
For example,
http://answers.unity3d.com/questions/1108472/3-color-linear-gradient-shader.html
One thing you can conceivably do. Make the rope white. Apply lights to it! So, colored narrow beam lights or carefully placed diffuse lights. Perhaps in conjunction with layers for the lighting. It's not inconceivable it could work, enjoy!
Note - in fact the OP solved the problem just using colored lights - a solution in some cases.
Please note, the GL api is perfect here also.
user2299169 gives an outstanding link in the comments above:
http://gamedev.stackexchange.com/questions/96964/how-to-correctly-draw-a-line-in-unity
GL Doco: https://docs.unity3d.com/ScriptReference/GL.LINES.html
Thanks user2299169.

Using tiles as texture when zooming in on Object in Unity3d

I have a problem with an smartphone (android so far) app I am programming in unity3d.
I got the following set up:
I have a sphere on which, so far, I have a texture of the world. It's resolution is already set to the maximum but when I "zoom in" on it it just looks disgusting. I'd like to reload texture tiles like in Google maps to have a higher resolution without having a too big impact on the memory. Is that approach a good one at all? And if so: how do I do that?
Haven't found the right things so far or I just got them wrong.
EDIT: As some people probably get me wrong I try it again with some more details.
What I am trying to set up is the Earth as a sphere with a map. That map is okay as long as you dont zoom in too far, which is obvious because of the textures finit resolution. Now, to still have good graphic quality, when being zoomed in that far that one could see streets in a city I want to load additional "satelite pictures" like Google Maps does it (you know: you zoom in and Google Maps always reloads the images in that specific area to still provide a good graphic quality). How do I achieve that specific behaviour? Providing all the tiles i need is no problem, I got a Vector Graphic from which I could export all the needed tiles, but i don't know how to reload those tiles when zooming in at that specific area (to reduce memory consumption, drawcalls, etc).
Any help is really appreciated as I am a beginner in programming with unity. Thank you very much in advance!
Dustin
Are you actually zooming in or moving the camera physically closer? Unity has some internal filters that make textures easier to load at a longer distance. When zooming, the camera isnt actually moving closer meaning the more detailed version of it will not load correctly.
Also check your Max Texture Size setting for the texture you are using. Maybe it is turned down too low. Try turning it up to a higher resolution.
If it still looks blurry up close with Max Texture Size turned higher, your texture may not be high enough resolution to begin with. Make it a high enough resolution that it looks good up close. Then begin lowering the Max Texture Size resolution until up close it is "good enough".
Next, typically, it will start looking blurry in the distance or have distinct linear transitions from looking good to blurry. You can fix this by turning up the Ansio Level. Use this with caution because it increases the rendering load. Only use what you need, especially for mobile games.

really high resolutions become pixelated, as if the camera is zoomed in too much

I'm working on a Unity 2D project and making the levels at the moment.
For some reason even really high resolutions (higher than 1920x1080) become really pixelated. It's like the camera is zoomed in too much. My player is rendered at a scale of 0.2x0.2.
I've tried changing the z-depth of camera back but everything still becomes very pixelated. Really frustrating because edges of tiles on the screen become really pixelated.
Anyone had any issue or can think of anything that will help solve this?
here's a picture of it in the editor mode. Based on the tile grid you can see everything's really tiny and it's awfully zoomed in. Not sure how to fix this.
In game:
Noticed how pixelated it is. Thanks
On your first screenshot the sprites are also pixelated.
Every time you see bad image quality - checkout import settings. Try to increase max size. Also try different format. You should find the suitable values for yourself.
I find that when I set the export settings to Android, everything gets pixelated, even skies (I suppose it does that in order to adapt to the device's lower capacity). Turning export settings back to web player for example, solves this issue.

Open GL ES Texture image quality

I have been having a bit of trouble with this issue with a while and have decided to ask for help!
I have a textured 1024 x 1024 area in my iphone application. I am texturing it using an image that i converted to .pvr4 format using Apples texturetool.
Now the user has the option of zooming in on this textured object....
The issue is that the quality of the image is not good enough when it is at the highest zoom level.
How can i improve this?
Should i be looking at mip mapping?
Any pointers in the right direction would be greatly appreciated.
Thanks
Tom
If you zoom in enough on any texture, you won't see much detail.
Here are your options:
You can change the magnification filtering mode so that instead of being blocky (nearest filtering), it's blurry (linear filtering). (Or vice-versa.)
Don't use PVR texture compression. This will make your texture more detailed. (But at the usual cost: larger size, slower rendering.)
When zooming in, switch to a more detailed texture for that specific area.
The last option is the most work, but will likely give the best results. (But try the other two, they're easy.)
Also, mip-mapping likely won't help your situation. In general, enabling mip-mapping can make textured objects far away from the camera look better. It usually doesn't have any effect when the camera is close to a textured object.
PVR4-compression is rather destructive. Simply choose another format if texture quality is crucial.

Dynamically create sprite images for Cocos2d-iPhone

I'm working on a platformer, and looking for a way to create a sprite for an arbitrarily sized platform. For example, I may know I have a platform that should appear 200 pixels wide by 32 pixels high, and, say, I have a texture of bricks that I can tile to fill that area. I may also want to draw a black border around the platform. Is this possible at all? Anyone have any ideas for how I might go about doing this? I could always try generating the image on the fly and building a sprite with that image, but I sincerely doubt (hope) that this isn't the most efficient way of doing something like this.
Cheers,
Alex
You can use tiled maps for the platform. It will require you to plan your textures a bit differently, but it will probably yield better results.
You can read more about tiled maps here.