Nokola's blog on software and humans.

Make a super-fast blog using Hugo+GitHub+online editor for free

When your site starts responding in the sub-10 millisecond range, something magical happens. It’s so fast, that it almost feels unreal.

Total setup time: ~2-4 hours first time following the info below.

more ›

Windows 8 apps performance helper: Speed at a glance

Coding Performance

image from Windows 8 apps performance helper: Speed at a glance

Windows 8 Apps have this nice awesome property that you can set in order to show framerate counters:

Application.Current.DebugSettings.EnableFrameRateCounter = true;

Just call it in your MainPage() constructor after the InitializeComponent() call.

more ›

AppRating Updated For Mango

Download source code:

more ›

The Fastest Way to Switch Free/Paid and NoDo/Mango App Build in Visual Studio

image from The Fastest Way to Switch Free/Paid and NoDo/Mango App Build in Visual Studio

Edit: Added NoDo/Mango switching as well. Simplified changes to .csproj files

How would you like to be able to switch from Free/Paid and NoDo/Mango  for your Windows Phone 7 projects in VS?

more ›

Moving to BlogEngine.Net 2.5+Disqus to Stop Spam

Deleted 100K+ comments (again!) Noticed that BlogEngine.NET 2.5 supports Disqus. After upgrading I used this tool (http://ithoughthecamewithyou.com/post/Convert-BlogML-comments-to-XWR-for-Disqus.aspx) to move my comments over! And also had to apply this BlogEngine Disqus Comment Count Fix The last part I had to do was update scripts/blog.js to put the div.appendChild(p) below the (ul) in order for the rating text to appear as expected showRating: function (container, id, raters, rating) {     var div = document.
more ›

Detecting if Zune is Connected From Your NoDo/Mango App

Edit 2001/10/10: I noticed that I actually get InvalidOperationException on Mango (seems like all the time now, but I’m not 100% sure). Updated code in CaptureTask_Completed to check for this. Rene had a great blog post about How to detect the Zune software about an year ago. Unfortunately, the method he describes no longer works in Mango. Moreover, when you get the Cancel event from the PhotoChooserTask in Mango, neither OnNavigatingFrom nor OnNavigatedTo is called for your page.
more ›

How I Deleted 100000 Comments!

Finally, no spam! My blog was slowly becoming dysfunctional, after getting more than 2000 spam comments per day! I moved to the new version 2.0 of http://dotnetblogengine.net last night, and it has super easy built in reCAPTCHA which stops spam and helps read books. Pretty cool! The reCAPTCHA settings are accessed by hovering over Tools and selecting Edit in .NET Blog Engine 2.0 – it was very hard and non-intuitive to find the setting, but once I did it worked like a charm!
more ›

App Rating for Windows Phone 7 Source Code Released

I’m releasing the App Rating app source code today, under MS-RL license (http://www.opensource.org/licenses/ms-rl). In summary, you can use the App Rating's source for commercial (even directly competitive) projects and are required to provide updates to the source code back to me and the community. The nice part that you can get from AppRating’s code is the WebApi.cs class, which is optimized for network REST requests, dynamically changing priority of requests, cancelling, etc, and is very lightweight.
more ›

New Fantasia Painter, Windows Phone 7 Source Code Pack 1, New License

I’m back from the fields of Fantasia's [software development]! This post contains: New Fantasia Painter available, with 20 effects, an "alive" Fairy Lights brush, Text, symbols and photo functionality Source code for Fantasia’s high-usability controls tuned for WP7: color pickers, improved slider and easing progress bar. My new license (NNCL), which promotes fair commercial and personal use while protecting IP and ensures giving back to the community New Fantasia Painter The new app has just been released to the marketplace.
more ›

App Ratings Updated with search and 6-10x times faster

I updated App Rating to have search for apps, show rating since last update, and be much faster. Unlike other similar rating apps on the marketplace, App Rating shows a single-screen per-market score so you can compare your app in different markets easily. To use, search the marketplace for “App Rating” or click here to get the app Video of the new functionality: Unless I get strong feedback for new features, I’m not planning to invest more in App Ratings.
more ›

Games for Windows Phone 7 Resources: Reducing Load Times, RPG Kit; Other

Microsoft released the new games education pack including a multi-platform tutorial, RPG starter kit ported to Windows Phone 7. I really like the comparisons of the isostore reads in MB/sec in the “reducing load times paper”, and the game samples that’s why blogging it. Here’s the pack: http://create.msdn.com/en-US/home/news/new_education_dec_2010   Kind of off topic: I got few asks “how do you make the mouse cursor in your videos?” I created my own mouse cursor (just a circle .
more ›

2 New Apps - See Ratings Across Marketplaces and Prevent Phone Locking when Debugging In Visual Studio

Did you know that by default you see only ratings for your marketplace? I didn’t, and was very amazed to find out my apps have more reviews and ratings than what shows up in my phone marketplace or Zune window. Using App Ratings, you can now view the ratings by market on a single screen and access reviews in all markets. Search the marketplace for “App Ratings” or click here to get the app
more ›

Fantasia Painter Released for Windows Phone 7 + Tips

Edit Dec 8, 2010: Updated tips (I was too excited the first release and missed some important info in the “how to speed load/save state tip #3) Yes! See the 1-minute intro HD video of the drawing app below. In this version, you can add makeup to someone’s face, change eye color (or other colors). It also comes with all-new fur smudge, and color reveal/hide brushes as well as rainbow mode for all existing Fantasia brushes.
more ›

Worm Hole and White Hole Space Effects in Silverlight

A good starry background is so much better with a nice wormhole in it. Do you agree?: Download source code (note: I added the free purple “star spiral thingie”.png – see steps 5-6 below - used for the above effect to the source code download) I tried to make a “clean” source code (read: slow, not optimized at all) for the sake of the tutorial and because I didn’t have time to speed it up yet.
more ›

Creating Nebulas and Starscapes in Fantasia + Source Code!

Yes! I just released support for new type of filters in Fantasia that I called Creations. The first, Nebula Creation, allows me do to starry background images like this (source code below): Update: shortly after releasing the source code I noticed the nebula image was fixed (only the opacity mask was varying), fixed it and uploaded again. Or this: If you’d like to try for yourself, open Fantasia now (http://fantasia.
more ›

Anti-aliased Lines And Optimizing Code for Windows Phone 7–First Look

Update Oct 27, 2010: Thanks to Shai Rubinshtein (see comments) for pointing out an issue with AALine(), source code updated below and in link. Some (long) time ago I decided to port Fantasia Painter to Windows Phone 7. When I ran it on an actual device (my friend’s, no I don’t have it yet unfortunately) last week, updating the screen while painting had about 0.5 second lag. This lag is quite unacceptable for a painting app.
more ›

We’re Hiring! 19 jobs in WPF/Silverlight Designer in Expression/Visual Studio

The reason I didn’t post for so long: I was waiting for the public announcement of 19 new job openings in the Expression team! The jobs include QA (Software Design Engineer in Test), PM (Program Manager) and Dev (Software Design Engineer), Writer and few more. You can apply even if you’re not in the US. I moved to this team about 2 months ago. I’m currently part of the core/shared graphics team, which is a nice place to be (knock on wood:)) for a person who likes developing samples and working with technologies and devices such as WPF, Silverlight, Windows Phone 7 and web site stuff :)
more ›

New Directional Rainbow Brush; Smear Effect; EasyPainter Out of Beta and Becomes Fantasia!

Yes! A lot of announcements today: The new Fantasia Painter is here: http://fantasia.nokola.com New Rainbow brush makes ultra cool smooth color transitions, based on stroke direction EasyPainter includes all Fantasia brushes and is now named Fantasia! Fantasia is out of Beta! There is new, enhanced Undo functionality, improved interface. Smear procedural brush effect makes for reallistic paint “feel” when drawing Details below: Rainbow Brush The rainbow brush changes color based on stroke direction.
more ›

Fantasia Lite: New Silverlight Painting Tool

Edit: Fantasia Painter (full version), is now available here: http://fantasia.nokola.com Edit 2: The Fantasia Lite version below, has been updated to include the new Rainbow brush (source code included too). Here’s what I built tonight – a drawing tool that utilizes procedural brushes to enable almost everyone to create fluffy rabbits like this: Note that it took me about 2 minutes to “build the rabbit”. I’m sure someone else can do better.
more ›

Coolest Silverlight Sound Library for Games I’ve Seen Yet

Quite amazing demo: http://prefix.teddywino.com/post/SilverlightMediaKitLiveDemo.aspx  The library has a lot of potential for Silverlight games. It does MP3 decoding in managed code and exposes some cool controls like Pitch, Echo. Duet is my favorite. I’m also a Transformers fan and like how Duet makes explosion and swoosh sounds sound “Transformerish”. I believe it should solve the “short sound” and “looping music” issues with Silverlight without any problem :). The biggest coolness though is that you can now simulate doppler effects and have more “rich” sound in smaller package (for example, by keeping only one explosion.
more ›

Playing The Piano From Scratch

Yes! For the last month or so I have been studying the piano. Here are my first 2 pieces: http://www.jamendo.com/en/album/67446 This is the reason why I haven’t done anything public in Silverlight recently. I’ve been also experimenting with the new Expression Blend and Phone 7 stuff. Note that I started from 0 (zero) :) about 2 months ago, all by myself so coming from “Marry Had a Little Lamb” to the above music was definitely a trip and fun!
more ›

Simple Functions for HTML Interop

I used the below functions on several occasions to transfer data between a server and Silverilght application. The blog integration between .NET Blog Engine and my Silverlight navigation on top of this site is done using this method. You can see the blog title “You Had Me At Hello World” in the Silverlighg navigation window on top. The interop is easy and I tried it in IE, Firefox, Chrome, Opera. Define an HTML like this:
more ›

EasyPainter: Cloud Turbulence and Particle Buzz

Two new effects for EasyPainter with source code! Cloud Turbulence: works great on clouds, but not much anything else I tried (OK on metal – makes it look like liquid). Before: After: Particle Buzz This effect has a lot of potential, since it’s the first displacement effect in EasyPainter based on image. Currently, it just uses random noise (Random.Next(256) for the R,G,B and 255 for the A channels).
more ›

EasyPainter Source Pack 3: Adorners, Mouse Cursors and Frames

Adorners went a long way since their first release few months ago. They integrate with zoom now, have more options for controlling functionality and can use a shared "cursor plane" for displaying mouse cursors consistently across your application. Extensibility is improved allowing definition of custom adorner frames. There are 7 custom cursors and 4 custom frames to get you started :) Download source code I use the same adorner implementation in EasyPainter.
more ›

EasyPainter Source Pack 2: Flickr, ComboCheckBox and more!

Yes! EasyPainter Source Pack 2 is here! This source pack contains Flickr integration sample amongst other also important things (read below). Download Source Code The live demo: Usage Go to http://www.flickr.com/services/api/, sign up and get an API key for your app Put the key in Flickr\FlickrHelper.cs Use the below code behind and XAML: [code:c#] public MainPage() {     InitializeComponent();     Globals.ToolbarRadioButtonStyle = (Style)Application.Current.Resources["ToolbarRadioButton"];     IGenericUserInterface ui = (IGenericUserInterface)openDialog1;     ui.
more ›

EasyPainter Source Pack 1 Refresh

There were several major bugfixes in EasyPainter controls and few updates. Here are the main two: Changing the color the first time when using the API in the color picker now works (heh :)). Editable slider has a new DisplayFormat property allowing you to override the format (e.g. DisplayFormat="X: 0.0" – see below) The sample is also moved to Visual Studio 2010 RC. Here is a refresh of source pack 1 with the changes:
more ›

EasyPainter: Lion Hair styling

I am playing with EasyPainter recently :) There are no new additions to the software (yet). Here's how to apply a hair style to a lion. Original: Hair styled: The original image is from: http://www.flickr.com/photos/wwarby/2404544591/ (search for "lion" in EasyPainter) I'd say the second one looks way cooler, especially with the blue Raiden-like eyes. Raiden is the god of thunder from Mortal Kombat! Effects used: Color shift for the eyes, followed by Brigthness.
more ›

10 New Effects in EasyPainter

Yes! :) After spending about 1 hour last night, here are 10 more shaders in EasyPainter. Since I don't have time to write about each one now, here is a sample image leveraging a few: Original: Manipulated: Zoom Motion in the lower left corner making the trees appear moving fast towards the viewer Ripples in the sea Magnify to enlarge the cloud on the right of the image Pinch to change the shape of the lower coconuts Tint and Color Shift to change the color of the coconuts Sharpen on the houses in the backgroundto make the contrast with Zoom Motion stand out more Magnifier Lens to make the trunk of the palm thinner Life-Like Colors to reveal the missing colors Shaders now have color pickers (such as Tint), and positions (such as Zoom Motion).
more ›

EasyPainter: Watercolor, Blood and Gloom Pixel Shaders

Click here to try the new effects in EasyPainter. Download source code. Original vs Zombie – can you figure out which one is which? :)   The new Blood shader works only on skin colors. To use it, you have to use the selection brush to select skin tones from the image. Here is the Watercolor shader. It's very subtle, but I think it looks nice nevertheless. If anyone has suggestions for improvements, including a proper name for this shader, since it is really subtle - please let me know!
more ›

Old Photo, Pastel, and Pencil Sketch Pixel Shaders For Silverlight

EasyPainter has new filters! Source code below! Try them out here Edit: I'd actually like to improve the pastel shader further - real-life pastel is usually on white background, and the shaders are on black... Samples Original (http://www.flickr.com/photos/-arpi/4280428638/): Pastel Drawing: Old Photo: Old Photo ("younger"): [more] Pencil Sketch: Source Code Download shader source code and required images The .zip file contains the old photo shader, and 2 variations of the sketch shader.
more ›

Simplex Noise (like Perlin Noise) in Pixel Shader 2.0 for Silverlight and WPF

Yay! 2D and 3D noise in pixel shaders! After tackling the Hue shader I decided to move to something even more interesting, Simplex noise. You've probably heard of Perlin Noise, if not see Rene's post with realtime 3D noise here and also check out my Living Noise sample and Living Noise blog post . The "Noise" can be used to make effects such as fire, water, marbles, smooth motion, hand-drawn UI, space travel effects, nebulas and a lot more!
more ›

Someone Said it Was Impossible: Hue Shift in Pixel Shader 2.0 (EasyPainter, Silverlight)

I read somewhere online that Hue changes can't be done in pixel shader 2.0, due to limitation of 64 instructions per slot. Here's the sample that proves otherwise: Download source code Indeed the RGB-to-HSL-to-RGB conversion takes about 100 instructions in its typical implementation. PS 2.0 which is the shader model supported by Silverlight 3 only allows for 64 arithmetic instructions, as outlined in this comparison between pixel shaders on Wikipedia
more ›

EasyPainter Source Pack1: Color Picker, RangeSlider, Small Expander, Fast Drop Shadow and more!

I'm very happy to publish the EasyPainter source code pack. The controls in the pack are optimized for usability, speed and size. All of them have been succesfully used in real-life apps which is the best way to test if something works. Download Source Code Here's a live demo: This pack contains the following controls: Color Picker - feature complete control that allows to pick any color, transparency or type in hex color Editable, auto-formatting slider - if you want to give the user the ability to quickly choose values with previews, this control is for you.
more ›

EasyPainter Beta: Top Secret Online Image Editor Announced

Today I am announcing EasyPainter Beta: The Artist Within. An online image editor that is: Fast. Easy. Made for non-designers. And FREE! :) Click here to open EasyPainter Note: send feedback in the comments section of this post. Unlike other online (or many offline) image editors, EasyPainter offers online effects comparable to powerful desktop apps, integrated search for millions of free-for-commercial or -personal use photos, and instant previews of any changes you make.
more ›

The Most Important Silverlight WriteableBitmap Gotcha - Does It Lose/Change Colors?

Edit Nov 21, 2011: changed 256/a to 255/a due to Gert’s comment – thanks Gert! The first time I tried saving WriteableBitmap to png, the transparencies didn't look right. The color was "washed out" and replaced with gray:  Moreover: Let's say you wanted to set a half-opaque red pixel color inside a WriteableBitmap. To my biggest surprise this didn't work: bitmap.Pixels[i] = (255 << 24) + (255 << 16) I got a redder pixel than expected!
more ›

Quick and Dirty Output of WriteableBitmap as TGA Image

If you ever needed to save a WriteableBitmap to an image file without too much hassle (e.g. for debugging purposes), you could use this simple source code to save it as TGA and then open with Paint.NET: From Wikipedia: "TGA files are in widespread use due to their simplicity and ease of implementation and lack of encumbering patents." [code:c#] public static class TgaWriter {     public static void Write(WriteableBitmap bitmap, Stream output) {
more ›

Calculating Shader Effects in WriteableBitmap (Fast Float Computations And More)

Here's a small code snippet that allows you to calculate any pixel shader and get the output into a WriteableBitmap! [code:c#] Stream stream = Application.GetResourceStream(new Uri("SilverlightApplication1;component/Images/test.jpg", UriKind.Relative)).Stream; WriteableBitmap result = new WriteableBitmap(1, 1); // avoid creating intermediate BitmapImage result.SetSource(stream); Image image = new Image(); image.Effect = new BlurEffect(); // any pixel shader effect image.Source = result; // set the image to the original result.Render(image, null); result.Invalidate(); // render the pixel shader
more ›

Game Cutscenes Part 1 - The Sequencer (No Code Yet, Just Concept)

This post is a call for initial feedback, before I go deeper into coding and stuff, just to make sure I'm not missing anything and capture cool ideas... I've been working on a new game recently, and thought it would be really nice to have some cutscenes in the game. Here's a sample frame such a scene:  Obviously, the above frame is not too advanced, but it looks pretty exciting and fun to create, especially when combined with the right soundtrack
more ›

Improving Download Time (2-3x) for Full Screen Background Images

Getting your backgrounds quickly is very important for games, especially at startup time when you're downloading a lot of stuff anyway (like menu buttons, simple effects, such as explosions and other things that didn't make it into the "core" xap to reduce initial load time). Since you are full screen, it is a good idea to detect the resolution (that would be the ActualWidth and ActualHeight properties of your root control) and programatically return a suitable sized background.
more ›

Tips/Tricks: Short Sounds, Fireworks and BitmapCache Speed

This blog post is a follow-up of the previous one dedicated to the Shock improvements. I'll just list all tips or other interesting findings/updates in no particular order: Playing Short Sounds in Silverlight (Improved) You probably know by now that Silverlight (2,3) has an annoying issue with short sounds - sometimes the sound is not played correctly. The simple workaround is here.  If you happen to play too many sounds/sec, the above workaround can cause your memory usage to grow more than you want to for short time.
more ›

Shock Game got new character - Old Man (the one with the raindeer)

Now with music (again), special effects. Read more about the effects and other improvements here: Yes! Thanks to few donations and some out-of-pocket money, I was able to buy back some of Shock's music. Each character has a theme song now. The new character - Old Man, is named after that guy that flies raindeers and distributes gifts through his Christmas distribution chain. The music has new engine now, with "
more ›

Fast Tile Brush in Silverlight, And Easiest Way to Shader Effects

Here is one monster, tiled as 6 monsters down here: This is actually 1 monster, tiled twice horizontally and 3 times vertically using a Silverlght Tile brush shader effect. Download source code I'm not 100% sure if this is the fastest way, but it's definitely worth it (fast). There are 2 other possible ways to do fast tiling: Do it manually or "hardcoded" - if your tile will never change, just do it in any image editor and then display the tiled result using an Image tag Display several images next to each other - relatively harder, but might end up being faster than the pixel shader (this is just a speculation on my side since I haven't tested it yet, but it is worth a try).
more ›

Appeal for Donations - Keep Games Going, Not Ads!

Please take some time to read this appeal completely and eventually donate. I don't like ads, and there's high possibility that you don't too! At the same time having an ad-sponsored web site means that ad programs "share" some of people's time (and time is money) spent on my site. Should I force anyone of the thousands people who view this site to pay for ads? No, I shouldn't and that's one reason to make today's appeal.
more ›

Glass Command Prompt in Windows 7

Everybody needs some glass in their life (or was it love? ) Anyway, here's a small project I did today out of love for glassy things. This one is in pure C++, a completely glassy command prompt: Source code: Glassy.zip (34.05 kb) Usage Download the source Glassy.zip (34.05 kb) and run Glassy\Debug\Glassy.exe, or compile and run. Run it as Administrator (right-click the .exe, Run as Administrator) Open command prompt and enjoy the glass!
more ›

Adorners in Silverlight - Move, Size, Rotate, Custom Mouse Cursor

This adorner took me few days to get right! Edit Dec, 15: Andrej Tozon created an updated source supporting Behaviours (and drag-drop without code in Blend). Here's a link to his version. Thanks Andrej! This is work in progress, but the base functionality is there and stable! Download source code View Sample   The adorner currently has the following features: Shows custom mouse cursors that get rotated and aligned to the object being rotated/sized in realtime.
more ›

Super Cool Silverlight Game (Not Mine) + Source

This is mind blowing!! A desktop-like RPG Chinese game in Silverlight: http://silverfuture.cn/  It's 10.7 MB but worth the wait! It's in Chinese. I'm sure in future versions it can be much less (e.g. Shock is 17 MB, but 680KB in order to play with the rest being downloaded as you play) And!! The source code is here: http://code.msdn.microsoft.com/QXGameEngine Some notable things (other than the graphics, implementation and overall coolness): 1. The map is made of PNG's sized 400x300, it is pre-drawn.
more ›

Realtime Bump Mapping in Silverlight

Ah yes! Bump mapping is an effect that makes "plain" textures - such as stone wall, appear bumpy under a light. Even for a 2D game, bump mapping has a lot of uses. For example, if you're building a space shooter, it would be 10000 times cooler if lights from explosions illuminate the ship, showing it's ridged surfaces. I've seen the effect used in games in the main menu as well, where the light of the cursor illuminated a rough surface.
more ›

OpenID Login for ASP.NET

And, eventually, Silverlight :) Here is the "hello world" OpenID login using DotNetOpenAuth. If you don't know what's OpenID, it's a way to use your existing Google, Yahoo, AOL, Blogger and many more credentials (eventually Live too), to login to an OpenID website. The source code allows you to login using Google, Yahoo, MyOpenID, or other provider and returns a state containing a friendly name and database unique ID of the user that is authenticated!
more ›

Keep Track Of Links Using RSS

Imagine having all your links whenever you go available on your browser bar, without having to install any custom software like a toolbar. Imagine having a way for people that share your interests to access your links with the same ease and edit them in-place. Imagine going to a new pc and populating your links at your browser with 2 or 3 clicks, without installing software. Is it possible? Yes it is!
more ›

Silverlight 4 Improvements for Gaming

Yes! Silverlight 4 Beta is here! And it comes with quite a few improvements, mostly LOB, but there are some cool things for game developers as well! The full list of Silverlight 4 features is here. Also check http://video.microsoftpdc.com/ - the keynote at 1:47:09, showing a cool Facebook app (1:47:56). Here is a quick overview of some of the new features that I think will improve gaming in Silverlght 4: Faster Silverlight 4 has better performance than Silverlight 3.
more ›

4 Sites With Free Graphics For Commercial Use and Other Resources

Here is the new, categorized links view: http://www.nokola.com/links/. It contains a small but soon-to-be-expanded list of graphics, sound, icons, coding, etc resources. I took a first stab at the content, adding few of the sites I use most often. Please feel free to submit your own links! And I would love it if you use this for your personal link storage as well! (just add it to your favourites bar)
more ›

Detect the CPU Core Count From Silverlight

If you're are writing an application that is heavy on multi-threaded computations (e.g. full screen blur, game, or scientific data processing), you will want to know how many threads to run optimally. Edit: just fixed a bug reported where the initial assesment woult be 0 msec, thanks Morten for reporting it! The answer is easy: run as many threads as the CPU cores. For example, on Dual Core, you should run 2 threads and on Quad Core 4 threads.
more ›

Best Way To Clear WriteableBitmap?

If you're doing a lot of custom drawing using WriteableBitmap (e.g. full screen game), it will be extremely important to be able to clear the WriteableBitmap or "screen" quickly. Lets assume you want to clear the screen to specific color. What is the best way to do it? Here is a short comparison of few methods to clear a 512x512 bitmap: Clear with for loop: 1000 FPS Clear with Array.Copy: 4100 FPS Clear with Array.
more ›

Fast DrawLine() in Silverlight

How fast can you make it go? How about this loop that draws the line:[code:c#] int inc = incy1 * w + incx; for (int i = 0; i < lenY; i++) {     pixels[index >> PRECISION_SHIFT] = color;     index += inc; }[/code] 40FPS * 10000 lines = 400,000 lines/sec Note: in my perf tests I did a single-threaded version, so if you have multiple cores (2-4), you might be able to get to more than 0.
more ›

2x-4x Faster Living Noise

I wasn't quite satisfied with almost 50% CPU for v1 of the Living Noise here, so made some improvements. The new version runs at 15-20% in low quality and about 30% in high quality..could be better but I tried... :) The new version replaces the old one here: http://nokola.com/livingnoise If you don't see the "High Quality" checkbox, please refresh/delete your browser cache. The source code is updated as well: http://nokola.com/sources/livingnoise.zip
more ›

Special Effects: Living Noise

The Living Noise is an animated “flow” of particles. The particle trajectory is changed by using Perlin Noise (long live Ken Perlin!) I’m so excited. Perlin noise is used pretty much in all special effects – explosions, texture generation, water, clouds, mountains, terrain generation, twinkling stars, halo/weapon effects, etc.. Click below to see the Living Noise sample, which is just one way to use Noise: Living Noise Download the source code for Living Noise
more ›

Top 3 Silverlight Features? Add Your Own

Click here to add your own and see what other people added: http://silverlight.uservoice.com/pages/4325-feature-suggestions are: 1. Printing 2. Right-click 3. Full Databinding What are yours? If you have anything in mind, the above link for customer feedback can help get your feature more visibility.   
more ›

Two Ways to Create High-Quality Glassy Controls in XAML

 “However, there is one design trick that I'd love to master to give my applications that killer look -- the ability to give a control, be that a logo, a menu bar, or whatever, the ultra-glossy appearance, and especially the appearance that I've seen in these water ripples applications of the control having a shiny layer of water on them..  I don't necessarily need to achieve the ripple effect, but I'd love to know how to achieve the water layer appearance.
more ›

WPF/Silverlight Tutorials From My Previous Blog

This is the list of all posts I consider interesting from my old blog at http://blogs.msdn.com/nikola This blog now replaces the old one :) Here's the list...hope you like it: Gaming: Exposed: 5 methods to create game loop: which is the best? Anatomy of a Silverlight Game: Avoid Common Mistakes When Building Online Games Play this Silverlight Game Online: Shock v2 Design and Effects: Nice background image Large Star Field - Take 2, how to make it look "
more ›

The Cool Windows 7 Selection in XAML

Here's the XAML to make a selection rectangle similar to the one in Win7:         <GridHeight="22"Width="300" >             <RectangleStroke="#FF7DA2CE"RadiusX="2"RadiusY="2">                 <Rectangle.Fill>                     <LinearGradientBrushEndPoint="0.5,1"StartPoint="0.5,0">                         <GradientStopColor="#FFDCEBFC"Offset="0" />                         <GradientStopColor="#FFC1DBFC"Offset="1" />                     </LinearGradientBrush>                 </Rectangle.Fill>             </Rectangle>             <RectangleMargin="1"Stroke="#FFEBF4FD"RadiusX="2"RadiusY="2"Fill="{x:Null}">             </Rectangle>         </Grid>  
more ›

Welcome

Please send me constructive or destructive feedback about anything (blog, nokola.com, etc) in the comments section for this post! This is my first blog post...how nice! :) I'm finally using BlogEngine.NET - http://blogengine.codeplex.com/ Thank you
more ›
© 2020 System Failure