0
votes
2answers
44 views

Clipping text in algorithm

I'm looking for an algorithm that can clip a text ( GUI Mesh text ) when it's length is over 20 characters. The problem is I have one background image(textured plane) (orthographic), where I want to ...
0
votes
1answer
33 views

Doing imagemagick like stuff in Unity (using a mask to edit a texture)

There is this tutorial in imagemagick http://www.imagemagick.org/Usage/masking/#masks I was wondering if there was some way to mimic the behavior (like cutting the image up based on a black image ...
0
votes
2answers
62 views

Unity Texture Problem

http://www.gfycat.com/FlawedLimpingGrizzlybear http://www.gfycat.com/UnawareQuerulousHawk Every texture and shader has the same problem. It seems like the problem has nothing to do with either. ...
0
votes
1answer
50 views

Projective texturing and falloff

I quite understand how projective texturing works. I implemented successfully a shader for that following nvidia doc. The major problem I'm facing is that with that implementation the projector ...
0
votes
0answers
38 views

How do I dynamically load a smaller texture in Unity based on the screen size?

I have a Unity application on windows phone which is having problems running on small devices because the HD textures are so huge. What is the best way to test and dynamically use a smaller version on ...
0
votes
2answers
40 views

Using Smaller Textures in Unity on Older/Smaller devices

In Unity, when you have MipMapping selected, will this cause the full size texture to always be brought into memory? I have a game which runs on high end mobile devices with ultra-high resolution ...
1
vote
1answer
51 views

Textures selectively not applying in Unity

On certain imported objects (fbx) in Unity, upon applying a material, only the base colour of the material is applied, with none of the tiled texture showing. This isn't universal; on a test model ...
1
vote
1answer
162 views

Displaying streaming video on dynamic texture

We are working in Unity 3D on pro licence and we are faced with the task to display streaming video as a dynamic texture in out Unity3D web project. We have a standard IP-camera , which is capable of ...
0
votes
1answer
73 views

'Dynamic' textures?

I am creating a 3D game in Unity. The main game mechanic involves a large open world area. In various places throughout this world are billboards and other devices that would show 'adverts' etc in the ...
1
vote
2answers
114 views

Hide part of the GUITexture in Unity

I have a Health Bar in my Unity game and it's implemented as a GUITexture with gradient image from red to green. Now I can reduce it's width from max width to 0, but is still scaled gradient. ...
2
votes
1answer
142 views

How to display Textures, Buttons, Created with Unity's GUI (OnGUI()) to get displayed behind other objects in Scene

I am making a game in which I am using OnGUI() to make Texture. I want this texture to display behind my Regular 3D objects like cube, spheres in the scene. I have tried and searched but I am unable ...
0
votes
1answer
108 views

A problem with texture atlasing in Unity

I have the texture below and I need to get rectangular parts from it. I could finally combine meshes of different quads to improve performance, but I with quads of different tilings, this means ...
1
vote
1answer
75 views

Is this Possible to force gameobjects (coliders etc) to get stretched based on the aspect ratio of the screen?

Well with unity3D, I am in big trouble whenever I use sprites. As for textures I compensate for a evener look by Stretching it (Screen.width & Screen.height- that's fine for low end 2D games). Now ...
-2
votes
1answer
107 views

Why is my Snake' tail rendering the wrong sprite? [closed]

I am making a snake game in Unity. The game is simple, using Texture2D to display the head, tail and body parts. I am stuck with this problem: I stored 4 textures (each one for one of the four ...
2
votes
0answers
53 views

How can I switch between texture atlases based on the iOS version?

How can I switch between atlases (with different resolutions) in Unity based on the runtime iOS version?
0
votes
2answers
870 views

How do I randomly spawn objects in 2D game?

How do I randomly spawn few different sprites on screen so they're not overlapping or half visible on render. The sprites should immediately start shrinking until they disappear. I've tried to ...
2
votes
1answer
307 views

Unity UV map, tint / change color of texture

I have an array of vertices with texture coordinates for a UV map in Unity: newUV.Add(new Vector2 (0, 1)); // FACE 1 newUV.Add(new Vector2 (1, 1)); newUV.Add(new Vector2 (1, 0)); newUV.Add(new ...
0
votes
0answers
128 views

Sprite Rendering Cost Calculation

First of all asking before asking this question I have already read following post for the clearance of my mind. Sprite Renderer Texture 2D I want to change my background texture as per device ...
2
votes
1answer
434 views

Paint with soft brush (logic)

During the last few days I was coding a painting behavior for a game am working on, and am currently in a very advanced phase, I can say that I have 90% of the work done and working perfectly, now ...
1
vote
2answers
798 views

textures in tilemap games: use 2d planes or 3d objects? (example with Dragons of Atlantis)

How to create the textures in games such as Dragons of Atlantis? I was thinking about 2 ways: using 2d planes to save space and memory, using the color from the 3d software adding a very simple ...
2
votes
0answers
200 views

What's the proper way to set up texture atlas in Unity 3D?

I am using Unity3d (free) to make a game with user-defined content (i.e., load in a map, it'll build the level for you). Everything is working as expected, except for the rendering. Note the ...
-3
votes
1answer
1k views

How can I import a Google Sketchup model with textures?

I'm using Unity 4 and trying to import a SketchUp Model into Unity and other Engines - but I can't get it to import correctly. Can anyone help me out?
3
votes
1answer
129 views

How to categorize textures into atlases

I am going to use texture atlasing for the first time in my games, and at first it seemed like a great idea to split textures into atlases by categorizing them by terrain themes e.g ForestTextures, ...
2
votes
1answer
291 views

What happens when a texture is too large for a device

The question is two fold: What happens on a device when a texture is too large for it to handle? Will it crash or simply downsize it? In Unity if I use texture atlases of size 4k and then set ...
0
votes
0answers
276 views

Trouble with textures in Unity and Android

I am trying to dynamically create textures of a single (random) color via script. In the Windows Editor it works, but in Android it fails and my Quad gets a magenta color (i.e. missing texture). I am ...
1
vote
1answer
2k views

Texture atlasing in Unity

I'm researching new ways to optimize games for better performance. Currently I am working on texture atlasing, which is giving me a hard time. I made the atlas using Texture2D.PackTextures and saved ...
0
votes
0answers
1k views

Normal mapping for Android and iOS

I'm making a mobile game for Android and iOS on Unity. At the moment I am researching and designing the technical aspects of the game. Since it is not plausible to use highly detailed models for ...
3
votes
0answers
232 views

Is there a way to start (not) caching textures *now*?

Procedural textures with substance seem to update very quickly if you turn off caching, modify one exposed variable at a time, modify it frequently, and even then only after you've attempted to modify ...
0
votes
1answer
269 views

UV mapping: Untextured faces?

Im currently trying to texture a (transparent) cylinder. I want the texture image to wrap sideways around the cylinder but not the top and bottom faces, they are supposed to just stay untextured (so ...
0
votes
1answer
2k views

In Unity3D, try to load a png into a Texture2D in an Editor script and then run PackTextures, but they need Readable flag to be set

I am trying to automatically create a texture atlas from a set of generated png files in an Editor script. The problem is that I can't seem to be able to load a png into a Texture3D without it being ...
6
votes
1answer
1k views

Mip Maps on 2D Sprite causing black line above. Why is this?

I am new to Unity. I'm trying it out and using Futile for a code-first approach, but still importing textures using the Unity system. The problem I'm having is that when I use mip maps to scale large ...
1
vote
2answers
488 views

Dynamic Textures

I am pretty new to this 3D designing and animating, and as an indie developer I need to do everything on my own I have created this simple box character And I want to texture it, have looked around ...
5
votes
1answer
2k views

How can I prevent seams from showing up on objects using lower mipmap levels?

Disclaimer: kindly right click on the images and open them separately so that they're at full size, as there are fine details which don't show up otherwise. Thank you. I made a simple Blender model, ...
0
votes
0answers
11 views

Show 3d object on device live camera in Unity3d for iOS [duplicate]

Possible Duplicate: How to add render able Texture in Unity 3d for iOS How render a 3d or 2d(.jpg or .png )object at device live camera in Unity3d, and this 3d object shouldn't stuck with ...
0
votes
0answers
270 views

How to add render able Texture in Unity 3d for iOS

I want to render an image on texture which should be stuck at one point, not stuck with Camera. I don't know how to accomplish this task because I started unity a week ago but I want to do this task ...
1
vote
1answer
663 views

Unity3D and Texture2D. GetPixel returns wrong values

I'm trying to use Texture2D set and get colors, but I encountered a strange behavior. Here's the code to reproduce it: Texture2D tex = new Texture2D(2,2, TextureFormat.RGBA32 ,false); Color col = ...
2
votes
2answers
4k views

Unity Android: Truecolor texture performance hit and alternatives for truecolor

After integrating the graphics assets to my application, I noticed that when the textures are compressed they look very bad compared to truecolor. This happens to all the textures and it did not seem ...
3
votes
1answer
2k views

Unity: how to apply programmatical changes to the Terrain SplatPrototype?

I have a script to which I add a Terrain object (I drag and drop the terrain in the public Terrain field). The Terrain is already setup in Unity to have 2 PaintTextures: 1 is a Square (set up with a ...
3
votes
1answer
4k views

Can I use an animated gif as a texture?

I want to have a plane that shows an animated Gif as it's texture, so essentially it will be a movie. Can I apply an animated Gif as a texture? If so, does it apply like a normal texture? Note: I know ...
0
votes
1answer
957 views

Making a surface transparent from blackness of texture

I am making a "halo" shader in unity using GLSL. And I've come to a roadblock. What I need to do is take a texture, like the following, and make it transparent according to the darkness of it. And I ...
12
votes
1answer
3k views

Procedural Mesh: UV mapping

I made a procedural mesh and now I want to apply a texture to it. The problem is, I cannot get it to stick the way I want it to. The idea is to have the texture painted only once over the whole ...
4
votes
1answer
4k views

Can I make a mirror with Unity Free?

If I understand correctly, render textures are a feature of Unity Pro, and that is the best way to create mirrors, TV screens, and so forth. If I am wrong, please tell me. What I would like to know is ...
2
votes
1answer
491 views

Trouble with UV Mapping Blender => Unity 3

For some reason I am getting nasty grey edges around the edges of rendered 3D models that are not present in Blender. I seem to be able to solve the problem by reducing the size of the UV coordinates ...
2
votes
1answer
1k views

How can I create my mesh so that textures applied to it are NOT rotated 90 degrees in Unity 3D?

I'm trying a really simple test in Unity 3D. I want to render a texture on the simplest plane possible. So, I've created a two-triangle plane in Blender, then imported it into Unity. From there, I ...
0
votes
1answer
670 views

Other procedural material generators for Unity?

In the new version of Unity 3.4, unity announced that they would now support procedural materials (which is awesome, by the way). While I was researching it, I found this in the manual: ...
3
votes
1answer
2k views

How to create mipmap for Unity3d textures loaded with www?

When I load a texture using the code below: WWW www = new WWW(textureName); yield return www; renderer.material = new Material(Shader.Find("Diffuse")); Texture tex = www.texture; ...
4
votes
2answers
4k views

[Unity] Render an animated texture to a screen

I'm looking for a way to write a typed text on a texture, and then render it on a screen: in the game it's just the screen of a computer where a scientist is typing text on. The texture will be ...
3
votes
1answer
2k views

Is it possible to import UV-maps in Unity3D without manually importing the associated texture?

When i import an object from Maya with a defined UV-map i have to manually import the texture (image) and assign it to the material. Is there a way to keep the materials texture reference from Maya ...
6
votes
5answers
3k views

Non-destructive way to edit alpha channel in Photoshop/Gimp image

Looking to make textures for Unity3d, and I'm stuck at what seems to be a simple stage. My goal is to create an RGBA image, with color information for every pixel, and a separate alpha channel. These ...