Skip to main content

Posts

Showing posts from 2017

LIVENODING 797 SV Texture Displacement for Compositor

SONICPI / Ruby, Python, MIDI and OSC

I have a big curiosity on how we can use OSC or MIDI to send message from one app to another app, potentially to generate (realtime) synth sound, visualization, and animation. This is especially a fun area and environment when we wanted to use CODE for CREATIVITY. Sonic Pi (by Sam Aaron) is one app I really love to use when dealing with Synth and Sonic generator. I remember using ChucK in the past by Ge Wang, ChucK is also cool, but Sonic Pi is a lot more friendly. http://sonic-pi.net Sonic Pi multi-threaded ness and LIVE LOOP is really something new for me. But Sam made it easy enough so that we could generate "listener" very easily. MAKING SOUND WITH CODE There are plenty of ways we can "trigger" Sonic Pi to generate sound. Obviously we can just use the built in RUBY language inside Sonic Pi app. Fairly simple and fun language to use and you can generate some noise in no time! Sonic Pi RUBY language documentation is really in depth and a full on progr

SWIFT / Swift Playground on iPad Test

Using Apple  Swift Playground  for the first time is actually quite an interesting experience. There are so many different paths to get HERE, especially when nobody actually guides you. You might be on your own, but you can always try Google Search and look for example and video tutorials on YouTube. Over the past few years, Apple has introduced all these cool tools that probably confuse people at first, but actually make sense today in 2017. I really have to dig into older WWDC as far as 2013 and see what Apple is trying to do. As a total beginner to App Development environment and all kind of actual coding and building interface, control, logics, there are A LOT to make sense. SWIFT PLAYGROUND AS JUMPING STONES I think, THE MOST IDEAL path of actually getting into Apple XCode app development via SWIFT PLAYGROUND is like this: 1) Start with Swift Playground on iPad, not XCode! For beginner coders, whatever your age, maybe even for those who never code before, it

IOS / ARKit and SceneKit Introduction

I am thinking to write a series of article blog on developing iOS app, but in term of experimental and educational level. No aim in particular, but I think documenting my baby steps with iOS app development might actually help others. MORE FUN THAN I THOUGHT Being exposed to Apple XCode for the first time (version 9 beta I am using) and Swift 4, and also iPhone capability to do Augmented Reality , really bring a whole lot of fun area I can explore. Even as 3D artist with little programming knowledge like me, I can say that it just takes a bit of effort and motivation to brave yourself and try the app creation. Even if you are not going to make paid app, the act to actually make your iOS device to work for you using your own custom app is amazing. Making program for desktop computer VS making apps for mobile device is a totally different set of skill, in a sense that for mobile device (comes with powerful camera, wifi, bluetooth, AR capable, GPS capable and a lot more) you hav

IOS / File Sharing via iTunes and Files app (iOS 11)

Saving FILE / DOCUMENT that you generate using your iOS app is an interesting task when developing iOS App. Eventually you also want to know this ability. You can apparently very quickly save out text files, or output all kind of processed files, etc. into Document sandbox of your app, for later to be accessible via iTunes or NEW Files app (iOS 11)! WRITE https://www.hackingwithswift.com/example-code/strings/how-to-save-a-string-to-a-file-on-disk-with-writeto CUSTOM URL You need to prepare your URL Scheme for your app first. This will be handy at later stage. http://jayeshkawli.ghost.io/ios-custom-url-schemes/ PLIST Then we got to deal with PLIST attributions. This is pretty easy once understood. http://pinkstone.co.uk/how-to-enable-itunes-file-sharing-in-your-ios-app/ https://developer.apple.com/library/content/documentation/General/Reference/InfoPlistKeyReference/Articles/iPhoneOSKeys.html#//apple_ref/doc/uid/TP40009252-SW20 https://developer.apple.com/librar

IOS / Time and Date Stamp

At some point, it would be useful to understand how Swift can generate DATE and TIME data for you. Especially when taking a snapshot or screenshot on the fly and wanting to save the file. Quick browsing leads me to this: http://www.globalnerdy.com/2015/01/26/how-to-work-with-dates-and-times-in-swift-part-one/ https://stackoverflow.com/questions/28016578/swift-how-to-create-a-date-time-stamp-and-format-as-iso-8601-rfc-3339-utc-tim Just like MacOS does SCREENSHOT Cmd+Shift+3, this will become handy.

IOS / Animation and Easing

I am interested to use Animation and Easing for Sprite for my experimental iOS App. Quick search and stumbled into this Sprite Kit Easing Swift repository at Github. https://github.com/craiggrummitt/SpriteKitEasingSwift My thought is that we can probably use preset animation action that Apple provided, but this one add more. I should actually try the default first. But eventually I know I will be using some of these extra actions. This is entering yet another NEW things! I am discovering something called CocoaPods . Somekind of way to manage versions of dependency when we are using some kind of extension. Read CocoaPods documentation here: https://guides.cocoapods.org/using/using-cocoapods.html Ok so my step by step is like this: - Install CocoaPods, easy enough, via Terminal - Then create Podfile inside the project - Install the Podfile dependency, etc. - All good, we should have a new XCode Workspace (!) that we open the next time we want to run the project with Pod

STUDY / Swift and iOS App Development

When you are self taught in programming, and starting to make your own app, you will soon reach this part where there are so much more to learn all at the same time. Just like when you are entering a new world while playing game. So far, my exploration and study is really only involving the trivial areas that interest me mostly: ARKit and trying to put 3D contents, animation that some day will make a real app that I could probably sell or maybe I can make apps that can be useful for many iPhone users. I am currently using the beta version of XCode 9, the latest update is improving the app, much faster and does not crash much. My iOS App development journey is pretty fun so far, so many new things to learn. Basically the process begins from WWDC 2017. And then I got curious and checking out the Swift Playground app and the iBooks offered by Apple on Swift. That is a good start. Soon enough, once you jump into XCode, things started to get real. Actually a lot of nice starting p

STUDY / iOS SCNKit and ARKit from Zero

MY INTEREST in learning Apple Swift and developing iOS app grows sky high as I started to understand the true iOS device capability, especially when Apple announced ARKit for Augmented Reality content creation at WWDC 2017 just few weeks ago. This is actually really huge, for me, especially because as indie 3D Artist, I always have this urge to deliver 3D directly into real life environment. Ideally this AR experience can be presented in realtime by web service like Sketchfab 3D, or perhaps being authorized by Unity or Unreal Engine can be easily transferred and presented as a full 3D render using mobile device like iPhone and iPad, or other smart mobile devices. And apparently yes, with iOS 11, finally Apple says: let's deliver AR. Free / Paid Apple Developer and XCODE I am fairly new with the XCODE environment, but starting to be familiar with it and in fact quite enjoyable, especially with Swift language and introduction of Swift Playground , it seriously gives me an ext

WIP / iPhone ARKit Realtime 3D Tracking

IOS / Touch and UI Study - Buttons

Just recently, I am starting to dig into XCode and iOS app development with Swift language. For me, as beginner, my curiosity really revolves around Touch interface and how I can actually use it for things like the ARKit, maybe it will involve the SceneKit and SpriteKit. I am probably going to try the generic and premade UI that is provided with XCode and iOS API. The version of XCode I am using is either 8 or 9 Beta. SOURCE OF STUDY I am self taught with Swift and programming. So far, I am reading Apple's provided iOS development and Swift programming iBooks. There are some resources online dated from 2014, some are using older Swift and XCode. It is a good idea I think to invest on full course or proper books on iOS development, this way, you have some kind of hollistic approach, a guide of some sort from start to the end. Although you can always randomly crawling for interesting topics. I guess the most important step is to get used to XCode environment and Swift codin

LIVENODING / SV Grease Pencil Face Replacement (LIVENODING466)

LIVENODING / SV Tetris Pattern Tile

LIVENODING / Four Grease Pencil Strokes for Teapot using Sverchok Add-On

LIVENODING / SV Pineapple Topology

LIVENODING / SV Text ID String Basic

LIVENODING / SV Grease Pencil Cyclop Spider

LIVENODING / SV Grease Pencil Spider

DEMO / SV Send Nodes

LIVENODING / SV Texture Viewer Update

LIVENODING / SV Quirky Tile with Grease Pencil

DEMO Grease Pencil and Sverchok

LIVE NODING / SV Grease Pencil Clonings

LIVENODING / SV Grease Pencil Cross Hatching and Art of Wickering

LIVENODING / SV Grease Pencil Circles

FUNDAMENTAL / ANSV Procedural Get and Set Attr

PYTHON PROCESSING / Working with Image

IMAGE being drawn on top of each other on every loop. Each image is drawn on the position of mouse X and Y. Can you guess what image is this? Continuing with my Python Processing study. I wanted to touch on IMAGE object real soon because it is one of the most fun topic we can do pretty quickly and easily. While doing this, I am also looking at the provided example on IMAGE topic and also this YouTube video tutorial by John Park on Processing 3 (Java):  https://youtu.be/ddtdPO3m1hw What I am showing here is pretty basic however important for beginners and I am familiarizing myself with Python language for Processing. Instead of Java. The whole code looks like below, with some parts commented for you to try yourself: //Your code here //Be sure you escape your tags with < and > when displaying things like HTML. Few important notes: With Python, we do not seem have to explicitly specify the TYPE of object instance we are creating, in

PYTHON PROCESSING / It only really begins ...

Back into Processing again, with Python! While Daniel Shiffman is continuously inspiring us with his CODING TRAIN series on YouTube, using Processing with Java and Javascript language, I decided to free my mind and trying to really do something using Processing and Python language. Installing Python language version on Processing 3 is easy enough, just first download the latest Processing and install the Python language mode via Add Mode button. Other link that might help: https://github.com/jdf/processing.py http://py.processing.org/tutorials/ BLANK MODE As soon as Processing Python Mode, opens up and running I am presented with a  blank environment. Suddenly I recalled my journey in learning programming from zero until now... With Python, outside Processing, commonly people will be introduced to Python IDE or IDLE environment. Something that looks like Console Window or Command Prompt, where we type single liners command. Python Command Line and IDE normally have t

music21 / MIDI and Python

If you like to generate music with Python, the last time I checked, we have module for ChucK and also for Pi Sonic. They both require server to talk to Python, there might be slight latency and delay, but they are quite fun and easy to setup. And... there is also this fully Python module that deals with music: (a bit hard to use I found) http://ajaxsoundstudio.com/software/pyo/ I like the idea of being able to generate music on the fly via Python. Would be nice if realtime, and if I could connect it to ... Blender 3D for example. Anyhow, I remember apart from SYNTH there is also MIDI, and maybe Music Generation does not have to be realtime, if we can code certain BEAT and TRIGGER to match the animation or sampling of other stuff that we can visualize. PYTHON AND MIDI By some kind of magic I actually stumbled into this 'music21' module for Python. http://web.mit.edu/music21/doc/about/what.html I look through this 'music21' quickly and found lots of interesti