387 reputation
214
bio website ccoder.co.uk
location
age
visits member for 2 years, 2 months
seen 9 hours ago

I first got in to programming for a hobby, then it led to a career, now it's just an excuse to make a mess in my head.

Strangely though its easy to get addicted to the mess.

So here I am, confused as ever, asking questions.

You can't know it all though, something's gotta give ;)


9h
comment Conditional Defines and HLSL
thats true, i hadnt noticed that subtle syntax difference. That measn the solution is to compile a different shader rather than trying to put this condition in the shader code.
Jul
27
comment Conditional Defines and HLSL
ouch !! overkill !! f he has to go that far I wouldn't use pre processor instructions at all I would have versioning in my types to pick the right components to init ... maybe using dependency injection or something ... if he followed a naming convention this could be fairly swish.
Jul
27
revised Conditional Defines and HLSL
added 163 characters in body
Jul
27
answered Conditional Defines and HLSL
Jul
27
answered Why does this no longer render the “test tri”?
Jul
27
comment Why does this no longer render the “test tri”?
hmmm I didn't know about creating a debug device, thanks for that ... good call !! its the same tri data and shader code literally the only code I changed was this and defined the new struct to hold a position and a colour "VertexPositionColour" I maybe replicating sharpDX toolkit behaviour here though.
Jul
26
asked Why does this no longer render the “test tri”?
Jul
21
awarded  Popular Question
Jul
2
awarded  Curious
Jun
24
revised C#Script select GameObject
The question changed so i changed my answer to match it
Jun
23
comment C#Script select GameObject
Obviously you wouldn't put this code in Start but in some other method you might call like maybe in update you could do some sort of key press check then call a method with this code in it.
Jun
23
comment C#Script select GameObject
ok updated my answer to fit this
Jun
23
answered C#Script select GameObject
Jun
23
comment C#Script select GameObject
Find() is used to find objects that already exist in your unity scene.
Jun
23
comment C#Script select GameObject
you can also just say object = new GameObject("Some name"); then start adding components to it with object.AddComponent<T>()
Jun
23
comment C#Script select GameObject
i believe what you want is the Instantiate() method Enzo
Jun
17
comment Unity/VS debugging only with UnityVS?
UnityVS doesnt let you run the game from VS just attach to the Unity debugger ... and lately all I seem to do is give them chunks of my code to help them figure their bugs in it ... so yeh it's a bit of a robbery on that basis but I do prefer VS to mono dev, that said maybe v5 will fix my woes with both unity and monodev
May
27
comment How do I put different textures on different walls? LWJGL
google around for minecraft style "voxel engines" they may tell you a lot about how to generate cubes and texture them
May
21
answered What data am I allowed to collect for statistical purpose ?
May
20
awarded  Outspoken