I am working on a game where I have turned on Skybox and put Blue sky material present in standard assets. But it is neither showing up in the editor or on the iphone. Is it not supported on iphone ??
Also the road that I have in the game. It seems to be shimmering or vibrating slightly on the iphone. It does not do that in the editor. The texture im using for the road is a 512 x 256 jpg image with no alpha. Do all textures need to be squares(256x256,512x512, etc.). What else could be the issue?
This is very common (shimmering). Size does need to be power of 2, and a square texture.
Mipmaps sometimes help eliminate shimmering, but this is really a combined effort between mipmaps (and its filtering), texture filtering and camera (angle, plus fov).
Don’t try to get a perfect rendering from every possible angle. Make sure you tweak and optimize for the 90% use case of your camera. It’s ok to have weird artifacts at some angles.
Its also very common to notice artifacts when you have only a few things on screen. But once you get going, and have your screen filled will all types of things, artifacts may escape the entertained eye.
How do I get the standard assets for Unity iphone. There is no standard package or prostandard assets package in unity iphone installation. When I create new project just an assets folder is created :shock:
As for the mipmaps I am looking through them but currently don’t know how to use them TT_TT. going thru tutorials
There was some breakthrough on the shimmering front finally!!
there r basically 2 things:
The original world fbx was very high poly so our artist made it low poly and made the textures also power of 2 which they earlier weren’t.
2)Also the original as well as the new (low poly) world fbx is originally very small. So to match it with the car size I had to scale it 20 times.
Now I used the old high poly world fbx with both textures (power of 2 nonpower of 2). The more I scaled the more the shimmering increased.
Do the above 2 things affect the rendering on iphone a lot? In what way?Could scaling be the only issue here? Or is it possible that the artist messed up somthing while making the high poly model low poly. If the artist is converting the high poly model to low poly model what care must he take to ensure that such shimmering/vibrating does not happen(with regards to UV mapping and other stuff)? Any help in this regard would be greatly appreciated.
As you seem to be figuring out, if this shimmering is a ‘vibration’ in the texture, it’s a float issue due to scaling and uv mapping. I had this bad on my lunar terrain on Moonbase: Lander. Play with your scale and uv mapping to keep the floats somewhere safe, and it should decrease or go away altogether.
I think something has gone seriously wrong when the high poly model was made low poly. As per the artist the uv mapping does not need to be done again as it takes automatically. Could that be the issue?
I used the normal scale version of the map (that is artist remade part of the model as per correct scale in 3ds max), even that didn’t work.
Does the mapping(or not mapping!!) create issues when changing polygons of the model?
Note: I have no experience in 3ds max!! Just programming…
I’d suggest you and your 3D artist do some hard and obvious testing. When I was investigating this issue at the beginning of the year, I ended up creating checkered black and white textures to see what worked and what didn’t. I messed with the way that Unity applied the textures. I messed with the UV mapping in Blender. I messed with the mesh scale in Blender. I finally found settings that worked without vibrating.
This is (if it’s the same problem I had and it sounds like it) a float issue.
Floating point gains its range and versatility - to make incredibly huge numbers and incredibly small numbers - by being able to move the decimal point around in a limited number of digits. This gives it a great range from Super Small to Super Tall, but it can’t be both.
One of the biggest ways to display float errors is with wild swings of scale - from Tall to Small and Back.
One of the things that helped remove this problem for me was to make sure that all of my scales stayed in the same range in Blender, the UVs and Unity. (No importing a model and using Unity’s scale on import function to scale the mesh by 1000 or .0001 to make it work - scale should be 1:1 from your 3D source…) Make sure that your models and meshes are near the origin, so there is no wild number issues with your mesh placement (eg: if you have a tiny and detailed texture uv mapped on a mesh that’s far away from origin, the float needs to be LARGE to deal with the placement of the mesh, yet tiny to deal with the placement of the texture and the number runs out of accuracy…).
Test, test, test. Test now and test early. You may feel like you are wasting your time, but if you don’t have the time to do it right, you’ll use the time to do it over and over again. Don’t trust what your artist says. The two of you should prove it together - either way. I’ve been on both sides of that fence - Supervisor, Producer, Artist. No one should trust what the other says at face value. Everyone thinks they know something but this business is too big to know everything. Don’t waste your time remapping your entire game - as your artist may be correct. Make a test case. Large detailed model, simple texture. Follow the steps you’ve taken - see where it breaks. Just like testing code.
Thanks man. Ill do just that. I guess a little time invested in some R&D with a test case will help in the long run too rather than trying different things directly on the project itself and trying to rush it and not getting anywhere.