technical architecture.

Archive for November, 2011

Unity per project compiler options, -unsafe

by on Nov.28, 2011, under csharp, Unity3D

I had to integrate a small set of third party code that calls down to some win32 dllimport bits, to do this I needed to be able to work with some pointers. which in c# need to be declared in an unsafe function, so that it knows to be unmanaged.

Slightly awkward, but it turns out that there is an -unsafe compiler option that needs to be turned on in unity/mono, and that you can do this very easily on a per project basis by adding a file ‘smcs.rsp’ to the root of your assets dir, and in there you can add the text ‘-unsafe’ to add this to the compiler commandline.

Reference threads: Setting Compiler Options, Unsafe code in Unity, How To: Set Project-Wide #pragma Directives with JavaScript

Other apparent uses stated in the threads are setting project wide defines and pragmas

3 Comments more...

A google reader feed of tech art blogs

by on Nov.27, 2011, under TechArt

here’s a little google reader bundle of (currently) 70 tech art blogs, mostly taken from this thread: http://tech-artists.org/forum/showthread.php?t=1514

and thrown into an easy to follow group at: Google Reader Bundle: Tech Arts 2011 

for anyone else thats deeply into this google reader bug, but doesn’t want to add them all by hand.

Leave a Comment more...

ArtBreak, MiLB Stadium

by on Nov.23, 2011, under Architecture, Portfolio, Rendering, Stills

A little Art break, here’s a few shots from a recent set of renderings done for a minor league baseball stadium.

Leave a Comment more...

ignore file for Mercurial and Unity

by on Nov.15, 2011, under Scripting, Unity, Unity3D

here’s a working ignore file for use of Unity and Mercurial simple, but slightly different from the instructions posted in the current docs, so figured i’d pass it on for anyone else who cares to check it out.

placed in a plain text file named .htignore in your project directory

syntax: glob

*.tmproj
*.pidb
*.sln
*.userprefs
*.csproj
*.unityproj

AnnotationManager
assetDatabase3
AssetImportState
assetservercachev3
AssetVersioning.db
BuildPlayer.prefs
BuildSettings.asset
EditorSettings.asset
EditorUserBuildSettings.asset
expandedItems
FailedAssetImports.txt
guidmapper
InspectorExpandedItems.asset
MonoManager.asset
ScriptMapper

cache/*
Temp/*
metadata/*
ScriptAssemblies/*
previews/*

The Mercurial in Daily Use guide seems to be a good list of things that you might wish to do

 

Some notes for myself, but might be useful to someone else getting started also.

edit: To start a local serve on my workstation that my laptop can push to, use the command line

hg serve –config web.push_ssl=No –config “web.allow_push=*”

to pass your changes up from the laptop to the workstation:

hg push http://workstationname:8000

and on the workstation use:

hg update

to get the latest updated file revisions locally..

and you’re sync’d. fun times.

 

4 Comments more...

Looking for something?

Use the form below to search the site:

Still not finding what you're looking for? Drop a comment on a post or contact us so we can take care of it!

Blogroll

A few highly recommended websites...