Quantcast
Channel: Latest Questions by frogsbo
Browsing all 90 articles
Browse latest View live

Automatic GUI generation systems?

HELLO! Complicated Topic Alert! :) I want to make 100ds of similar GUI boxes, each with 3-4 sliders and 2-3 text input boxes, in the same screen position, to adjust different functions. The functions...

View Article



How to use shader _SinTime?

_SinTime alledgedly supports various speeds of oscillation. how to specify which one is used? if i wanted to have an oscillation at 100 frames per second, i would have to use sin(_Time*100)? No...

View Article

Tesselation Shading only in U3d Professional?

It seems my tesselated sphere has still got shading from the base vertices prior to tesselation. Am i missing a unity pro feature? Do i have to construct new normals for the mesh somehow? ![alt...

View Article

Surface Shader If Condition W = :( A == B ? V syntax

i found some strange syntax in a surface shader, but i can't find any documentation on what it is. can't i just write if... else in a void surf()? what is :(a==b ? syntax and where can i learn it?...

View Article

Fragment Bumpmap Shader Doesn't Work

There is some cool code on this page to render bumpmaps using CG code, except... it doesn't render anything when i add a bumpmap....

View Article


Sometimes Shader CG doesn't listen to if condition, Why?

i had an if condition which works, if (_Mode

View Article

Find a script by name and add it to gameObject?

to make it simpler, i want users to be able to use one script, and that script loads a mouseOrbit onto the camera when a button is pressed, and unloads it when it's pressed again. can i do "if button...

View Article

Self Illumination shader without Ambient Lighting?

How can i take out ambien lighting from the standard unity shader? The object changes color as the light rotates and i would like a static color. I'd love some help for resources/ examples. Shader...

View Article


Can i use ReadAllBytes instead of GetPixels?

I am creating a texture editor for many textures, and i wish to read them without setting all the textures to IsReadeable. Can i get a color Vector[4] using ReadAllBytes instead of GetPixels?

View Article


AddComponent can't find script name MouseOrbit?

i moved a folder with 2 .JS from angry bots demo to character customization demo. the scripts are CameraScript and MouseOrbit. in Angry Bots, no errors, and in Character Customization unity demo, i get...

View Article

code to access submesh materials 1,2,3,4 etc?

A woman has various submeshes to make her eyes, hair, etc. i can only select the entire woman, and all the materials are on her GameObject, and i would like to know how to access her different...

View Article

GetAssetPath(texture1.instance)?

is it possible to find the path of a texture, using a gameObject that has an instance of that texture on it?

View Article

.Net Error: System.IO.Directory.GetDirectories($, $, searchoption);

in .JS I try to get string and string[] using GetDirectories, var path1 : String[] = System.IO.Directory.GetDirectories(Application.dataPath, title, System.IO.SearchOption.AllDirectories); i have this...

View Article


find type of asset by path? (to check if file is Texture2D?)

GetFiles returns a list of strings[] of asset paths, and i have girl_hair.tga.meta, i wish to check if an asset is a texture at given path prior to loading it to a tex2d. how can i?

View Article

how to convert absolute path to relative Application.DataPath

GetFiles function returns this path: **E:/Users/Tuone/Downloads/CharacterCustomization/CharacterCustomization/Assets\DressingroomExample\dressing_room\textures\floor_wood.tga** how do i convert it to...

View Article


how to color programatically created plane?

i have these lines to create a plane, and then i attempt to place a texture on it in game, and to change the color, but it stays dark grey even with blue texture on it. zfightingplane =...

View Article

Why is Vector3.Lerp slower than function Lerp (a,b,c):Vector3{...

When i was editing marching cubes, i found that Mathf.Lerp seemed a bit slower than a function of Lerp written in the same script as the marching cubes code. (Unless someone shows otherwise) Could you...

View Article


Simple Voronoi Code not working

I tried to convert a fast voronoi code on [this page][1], I tried so many different combinations of code and there is always the same error, can anyone see what is wrong with my code? it looks like the...

View Article

maxiumum instantiantions per frame?

instantiating is slow because it uses alot of memory for quaternions etc, it seems to slow frames very fast. (there is a way to instantiate raw mesh) A)What is the maximum instantiations per frame /...

View Article

TerrainCollider.terrainData on custom mesh

Meshcolliders are slow, and updating them makes the game lag when an object has more than 1000 2000 vertices. So i would like to use TerrainCollider.terrainData on custom mesh, and i think only someone...

View Article
Browsing all 90 articles
Browse latest View live




Latest Images