archive-com.com » COM » D » DRAWLOGIC.COM

Total: 771

Choose link from "Titles, links and description words view":

Or switch to "Titles and links view".
  • *drawlogic » SYNDICATION - web, mobile, game + interactive development » SYNDICATION » SYNDICATION
    SWFObject who works at YouTube now and allows much more script control and embedding of the youtube player chromeless with just the video canvas The sample Rostislav at Asual has shows how you can incorporate SWFAddress now that the youtube player can be embedded by script and thus how it can have deep linking to sections of the video from the url So today I spent some time trying to integrate SWFAddress with the sample YouTube video and the result is now available online There were some tricky parts and probably the code can be encapsulated better but overall I m satisfied with the result Every pause action or significant jump in the playback produces a deep link which will definitely make sense for long videos or specific scenarios If you want to automatically start the video from the second verve just try this deep link For this case I decided that it will be better to disable the generation of browser history and the SWFAddress strict mode The sample is available in the SWFAddress repository and will become a part of the upcoming 2 1 release The cool part about all this is is makes it extremely easy to add commenting at moments in time throughout youtube videos enables deep linking allows snapshots of not just the flash application but also the video that might be playing in that chapter This is done on services like viddler and others but now you can do it for youtube videos and this will also possibly start a standard way to do this across media players so that a platform of video commenting emerges The integration of SWFAddress is simple on the normal onSWFAddressChange you just pass in the value to the seekTo call function onSWFAddressChange event time seek parseInt event value ytplayer document getElementById myytplayer ytplayer seekTo time true Google video always had jump to time params like http video google com videoplay docid 5830318882717959520 01m30s this is a classic hilarious Erlang video but this is not very workable with the google video player also you can always add this to other players but having this ability for youtube is a great leap in allowing a more integrated commenting chapter and community like feel to video Since youtube is so big finally having some more control with the YouTubeAPI will allow much more great additions to the capabilities of using youtube video in many more ways and integration of more great javascript kits like SWFAddress The YouTube API is really quite useful Here are some links of interest Sample Javascript Chromeless Player Actionscript Sample Code Loading Chromeless Player Tags chapter dvd swfaddress swfobject VIDEO video commenting video state youtube youtubeapi Posted in ACTIONSCRIPT ACTIONSCRIPT3 AJAX API APPLICATIONS AS3 FLASH FLEX JAVASCRIPT LIBRARIES MARKET PROGRAMMING SYNDICATION TECHNOLOGY USER EXPERIENCE Comments Off Recent Posts Unity 5 WebGL and the Plugin pocalypse Lime OpenFL Haxe Cross Platform Development Breakouts Comparison of JavaScript Game Engines via Breakout Snap svg SVG Vector Javascript Library Unity 4

    Original URL path: http://drawlogic.com/category/syndication/ (2016-02-09)
    Open archived version from archive


  • *drawlogic » AS3 CASALib Useful Library of Common Functions and Tools for Flash - web, mobile, game + interactive development » AS3 CASALib Useful Library of Common Functions and Tools for Flash » AS3 CASALib Useful Library of Common Functions and Tools for Flash
    a value range RatioUtil Provides utility functions for ratio scaling RemovableEventDispatcher Extends EventDispatcher to allow for simple and quick removal of event listeners RetryEvent An event dispatched when a load request is retried after previously failing ReversibleMovieClip Provides additional timeline controlling functions reverse and gotoAndReverse Sequence Creates a sequence of methods calls that wait for a specified event and or delay SequenceEvent An event dispatched from Sequence StageReference Stores a reference to Stage for classes that cannot easily access it Stopwatch Simple stopwatch class that records elapsed time in milliseconds StringUtil Utilities for manipulating and searching Strings TextFieldUtil Utilities for working with TextFields Tween Simple and easily extendable tween transition class TweenEvent An event dispatched from Tween UniqueList An ordered or sequence collection that contains no duplicates ValidationUtil Utilities for validating common string formats VideoInfoEvent An event dispatched when meta data or cue point is received from the VideoLoad VideoLoad Provides an easy and standardized way to load video files VideoLoadEvent An event dispatched from VideoLoad Tags ACTIONSCRIPT ACTIONSCRIPT3 AS3 casalib library TOOLS utility This entry was posted on Thursday December 4th 2008 at 7 42 pm and is filed under ACTIONSCRIPT ACTIONSCRIPT3 ARCHITECT AS3 CODE DEVELOPMENT FLASH FLEX GAMEDEV LIBRARIES OPEN SOURCE PROGRAMMING TECHNOLOGY TOOLS You can follow any responses to this entry through the RSS 2 0 feed Both comments and pings are currently closed http blog hexagonstar com sascha hdrs Looks like a nice helpful library When looking at their code though again I m wondering why so many programmers use tons of this where it s not necessary It seems they don t fully understand where and where not this is actually needed I d say get rid of those damn this es where they aren t needed http drawk com drawk Hey Sascha Yeh that actually really bothered me looking at the code However there are some great ideas in the library that even the observance of the classes even if you want to recreate them The and the this references were not needed not my style but to each his her own http flashion ru Ventur Thanks it great news Pingback Glue Blog Blog Archive Glue s favoriete weblinks deel 2 http casalib org Aaron Clinger Hi Ryan Wanted to thank you for the write up I hope you and your readers find the library helpful Now for why I use this A lot of people find it unnecessary but we do it for clarity and to help with scoping If you have a bunch of properties variables in a large function you can easily tell if the variable is a temporary variable or a class level variable if it s prefixed with this It s a readability thing I know in a lot of cases it s pretty clear but we find it easier to uphold a constant rule then make cases for when it should or shouldn t apply Prefixing function calls with this is also more of a consistency thing then

    Original URL path: http://drawlogic.com/2008/12/04/as3-casalib-useful-library-of-common-functions-and-tools-for-flash/ (2016-02-09)
    Open archived version from archive

  • *drawlogic » casalib - web, mobile, game + interactive development » casalib » casalib
    FLASH FLEX GAMEDEV LIBRARIES OPEN SOURCE PROGRAMMING TECHNOLOGY TOOLS 6 Comments Recent Posts Unity 5 WebGL and the Plugin pocalypse Lime OpenFL Haxe Cross Platform Development Breakouts Comparison of JavaScript Game Engines via Breakout Snap svg SVG Vector Javascript Library Unity 4 2 Includes New Platforms Features Windows Phone New Micro Game Consoles TV Apps Games Controlled with Phones Tablets and Handhelds Unity 4 1 Apple TV AirPlay and the New Consoles Unity 4 Live Unity 4 Public Beta Cocos2d x C Port of Cocos2d for iOS Android Desktop Unity 3 5 Available Awesome Flash Export NaCL Export Needed Pipeline Improvements Unity 3 5 Preview Available Includes Unity to Flash Stage3D Export HTML5 Market Ready A Gift to html5 Web Developers and Web Users from Microsoft Silent Automatic IE Updates Onward Unreal Engine 3 Exporting to Flash 11 Stage3D Unity Exporting to Flash 3D Molehill now called Stage3D Preview Hardware Acceleration on the Web The Next Interactive Web is Materializing Microsoft s Answer to WebGL Silverlight 5 3D Hardware Acceleration XNA RageSpline for Unity 2D Spline Vector Tool cocos2d Now 1 0 and New Project cocos3d WebGL Spec 1 0 Now Final From Khronos Adobe AIR and Flash 3D API Molehill Preview Released Unity Building In Flash 3D Molehill Export Support Cocos2D Javascript Javascript Port of Cocos2D Game Engine Firefox 4 WebGL enabled Hardware Acceleration Faster Javascript WebConsole Adobe Flash Vs Unity The Near Future Of Hardware Accelerated Web Games EaselJS html5 Flash like Javascript Library by Grant Skinner WebGL Will Be Part of Chrome 9 Regular Releases WebSockets Now Available Across iOS Devices with 4 2 Update Adobe Illustrator AI to Canvas Exporter for html5 Adobe Demos Flash to HTML5 Conversion Tool Is Silverlight Done Microsoft Shift in Strategy to html5 Adobe Finally Hardware Accelerating Flash for 3D Impact

    Original URL path: http://drawlogic.com/tag/casalib/ (2016-02-09)
    Open archived version from archive

  • *drawlogic » TOOLS - web, mobile, game + interactive development » TOOLS » TOOLS
    need to debug Papervision or even for inclusion as a debug console in all your papervision apps and games It is a good base for your own consoles or debug panels It is also a great tool to help out with focus and zoom issues and understanding with camera placement The code is really easy to drop in and you can get lots of info on the PV3D scenes and camera manipulation Check out PV3DDebug Posting on the project Tags AS3 console debug DEBUGGING FLASH panel PAPERVISION TOOLS utility Posted in 3d 3D ENGINES ACTIONSCRIPT ACTIONSCRIPT3 ARCHITECT AS3 BENCHMARK DEBUGGING DEVELOPMENT FLASH FLEX GAMEDEV PAPERVISION PERFORMANCE PROGRAMMING TECHNOLOGY 6 Comments Moock Mentions XFL for Open Flash IDE Source Formats Sunday March 9th 2008 Colin Moock an actionscript brain since the great Flash 4 advances that brought all sorts of fun to flash like games has mentioned XFL an open format for flash from a discussion with Adobe product managers This would be a format that would be able to import export and allow compile to SWF MXML for Flex does this now but bringing the two together into one common format and allowing for all sorts of open source and third party contributions to making flash will let it literally explode in support I recently met with Flash authoring product manager Richard Galvan to talk about Diesel the next version of Flash i e Flash CS4 or version 10 for those counting Adobe has already demonstrated a bunch of high impact features for Diesel including inverse kinematics a new tweening model 3D postcards in space and advanced text components see MAX 07 keynote FOTB 07 keynote and FITC Amsterdam 08 keynote But Richard was keen to talk about a lesser known feature quietly percolating behind the scenes XFL Since its inception the Flash authoring tool has stored documents in a binary source file called fla Historically interchanging source with the Flash authoring tool has been virtually impossible for third party software because the specification for fla has never been public But things are changing in the next version of Flash Flash CS4 will be able to export and import a new source format called XFL An XFL file is a zip file that contains the source material for a Flash document Within the zip file resides an XML file describing the structure of the document and a folder with the document s assets graphics sounds etc The exact details of the XFL format are not yet available but Richard assures me that Adobe intends to document them publicly allowing third party tools to import and export XFL If this is a market test or check of interest I think that everyone I know working with flash would be very excited about opening and unifying the flash format and allowing great IDEs and tools to help produce better flash content more quickly Also with the competition Silverlight using XAML uncompressed this also allows a competitive advantage maybe making Silverlight add better

    Original URL path: http://drawlogic.com/tag/tools/ (2016-02-09)
    Open archived version from archive

  • *drawlogic » utility - web, mobile, game + interactive development » utility » utility
    is also a great tool to help out with focus and zoom issues and understanding with camera placement The code is really easy to drop in and you can get lots of info on the PV3D scenes and camera manipulation Check out PV3DDebug Posting on the project Tags AS3 console debug DEBUGGING FLASH panel PAPERVISION TOOLS utility Posted in 3d 3D ENGINES ACTIONSCRIPT ACTIONSCRIPT3 ARCHITECT AS3 BENCHMARK DEBUGGING DEVELOPMENT FLASH FLEX GAMEDEV PAPERVISION PERFORMANCE PROGRAMMING TECHNOLOGY 6 Comments HOWTO Using AS3 to Get Age from Birthday Birthdate Wednesday April 16th 2008 I had to implement a get age method for something we were working on I was surprised to not find an AS3 version easily so busted one out I thought maybe this would be in as3corelib but nope So posting this in case anyone else is looking for a get age script in AS3 It was quick so any improvements just post them It will be added to my utilities classes on google code soon it is in quick form so you can jsut plop in an fla or a class The pseudo code is the same for getting age in any language Get current date get birthdate to compare Subtract the current years from the birthday years then subtract one more year if the day or month is less than today s day and month function calculateAge birthdate Date Number var dtNow Date new Date gets current date var currentMonth Number dtNow getMonth var currentDay Number dtNow getDay var currentYear Number dtNow getFullYear var bdMonth Number birthdate getMonth var bdDay Number birthdate getDay var bdYear Number birthdate getFullYear get the difference in years var years Number dtNow getFullYear birthdate getFullYear subtract another year if we re before the birth day in the current year if currentMonth Tags ACTIONSCRIPT age AS3 date utility Posted in ACTIONSCRIPT ACTIONSCRIPT3 AS3 DEVELOPMENT FLASH PROGRAMMING TECHNOLOGY Comments Off Recent Posts Unity 5 WebGL and the Plugin pocalypse Lime OpenFL Haxe Cross Platform Development Breakouts Comparison of JavaScript Game Engines via Breakout Snap svg SVG Vector Javascript Library Unity 4 2 Includes New Platforms Features Windows Phone New Micro Game Consoles TV Apps Games Controlled with Phones Tablets and Handhelds Unity 4 1 Apple TV AirPlay and the New Consoles Unity 4 Live Unity 4 Public Beta Cocos2d x C Port of Cocos2d for iOS Android Desktop Unity 3 5 Available Awesome Flash Export NaCL Export Needed Pipeline Improvements Unity 3 5 Preview Available Includes Unity to Flash Stage3D Export HTML5 Market Ready A Gift to html5 Web Developers and Web Users from Microsoft Silent Automatic IE Updates Onward Unreal Engine 3 Exporting to Flash 11 Stage3D Unity Exporting to Flash 3D Molehill now called Stage3D Preview Hardware Acceleration on the Web The Next Interactive Web is Materializing Microsoft s Answer to WebGL Silverlight 5 3D Hardware Acceleration XNA RageSpline for Unity 2D Spline Vector Tool cocos2d Now 1 0 and New Project cocos3d WebGL Spec 1 0 Now Final From Khronos Adobe AIR

    Original URL path: http://drawlogic.com/tag/utility/ (2016-02-09)
    Open archived version from archive

  • *drawlogic » AS3 Augmented Reality in Flash and Papervision 3D and FLARToolKit - web, mobile, game + interactive development » AS3 Augmented Reality in Flash and Papervision 3D and FLARToolKit » AS3 Augmented Reality in Flash and Papervision 3D and FLARToolKit
    www strafwerk nu Timbo Check out my example of AR in Flash based on FLARtoolkit http www strafwerk nu ar Nice 3d car model DAE Works smooth http interactive digitalpictures com au Clint We have been playing around with this stuff ourselves http interactive digitalpictures com au Some interesting applications ahead Pingback Rob s geeky discoveries Blog Augmented Reality in Flash amazing demo s Pingback hydrotik flash development actionscript creative Blog Archive 11 Must Have Flash Resources and 11 Must Have Utilities For 2009 Pingback AS3 Augmented Reality in Flash and Papervision 3D and FLARToolKit CODEISPOETRY http www mikkoh com blog Mikko If anyone is interested I ve been checking out FlarToolkit a bit more So I ve written a small post about how to get started and some gotchas when it comes to FlarToolkit http www mikkoh com blog p 182 Pingback Rubbishcorp Futuristic Festive Fun Pingback Augmented Reality Ad pixelartist http www cabanacriacao com blog archives papervision3d augmented reality ligue sua webcam e curta a realidade aumentada pelo flartoolkit 20 Pablo Cabana I ve a made a experiment and a get started tutorial in brazilian portuguese hope it helps someone http www cabanacriacao com blog archives papervision3d augmented reality ligue sua webcam e curta a realidade aumentada pelo flartoolkit 20 saul this shyt is too cool nice one Chris Awsome tool Here is something we did for Earth Hour http earthHour org earthinyourhands http repairi ru Usaboopreeple Извините если не туда но как с админом сайта связаться http clothess ru Usaboopreeple Блог в ридер однозначно http libuild ru pemangepady Спасибо вам за сайт очень полезный ресурс мне очень нравится http buildd ru rocrabeosteox Я извиняюсь что немного не в тему а что такое RSS и ка на него подписаться http sport v ru hebygaf Ваш пост навел меня на думки ушел много думать http ssp0rt ru vidifyw Уважаемый автор блога а вы случайно не из Москвы http officen ru wehygam Интересно а почему так редко блог обновляете http bookw ru kynisaz Я извиняюсь что немного не в тему а что такое RSS и ка на него подписаться http booksz ru wechate Наткнулся случайно на Ваш блог Теперь стану постоянно просматривать Надеюсь не разочаруете и дальше http m books ru rimuvyw Что то футер у вас вправо съехал в опере при разрешении 1024х768 Recent Posts Unity 5 WebGL and the Plugin pocalypse Lime OpenFL Haxe Cross Platform Development Breakouts Comparison of JavaScript Game Engines via Breakout Snap svg SVG Vector Javascript Library Unity 4 2 Includes New Platforms Features Windows Phone New Micro Game Consoles TV Apps Games Controlled with Phones Tablets and Handhelds Unity 4 1 Apple TV AirPlay and the New Consoles Unity 4 Live Unity 4 Public Beta Cocos2d x C Port of Cocos2d for iOS Android Desktop Unity 3 5 Available Awesome Flash Export NaCL Export Needed Pipeline Improvements Unity 3 5 Preview Available Includes Unity to Flash Stage3D Export HTML5 Market Ready A Gift to html5 Web Developers and Web Users from Microsoft Silent

    Original URL path: http://drawlogic.com/2008/11/17/as3-augmented-reality-in-flash-and-papervision-3d-flartoolkit/ (2016-02-09)
    Open archived version from archive

  • *drawlogic » ar - web, mobile, game + interactive development » ar » ar
    3 ar AS3 augmented FLASH FLEX library PAPERVISION reality Posted in 3d ACTIONSCRIPT ACTIONSCRIPT3 ALGORITHM ARCHITECT AS3 DEVELOPMENT EFFECTS FLASH FLEX GAMEDEV MOTION OPEN SOURCE PAPERVISION PROGRAMMING RENDERING TECHNOLOGY VIDEO VISUALIZATION 23 Comments Recent Posts Unity 5 WebGL and the Plugin pocalypse Lime OpenFL Haxe Cross Platform Development Breakouts Comparison of JavaScript Game Engines via Breakout Snap svg SVG Vector Javascript Library Unity 4 2 Includes New Platforms Features Windows Phone New Micro Game Consoles TV Apps Games Controlled with Phones Tablets and Handhelds Unity 4 1 Apple TV AirPlay and the New Consoles Unity 4 Live Unity 4 Public Beta Cocos2d x C Port of Cocos2d for iOS Android Desktop Unity 3 5 Available Awesome Flash Export NaCL Export Needed Pipeline Improvements Unity 3 5 Preview Available Includes Unity to Flash Stage3D Export HTML5 Market Ready A Gift to html5 Web Developers and Web Users from Microsoft Silent Automatic IE Updates Onward Unreal Engine 3 Exporting to Flash 11 Stage3D Unity Exporting to Flash 3D Molehill now called Stage3D Preview Hardware Acceleration on the Web The Next Interactive Web is Materializing Microsoft s Answer to WebGL Silverlight 5 3D Hardware Acceleration XNA RageSpline for Unity 2D Spline Vector Tool cocos2d Now 1 0 and New Project cocos3d WebGL Spec 1 0 Now Final From Khronos Adobe AIR and Flash 3D API Molehill Preview Released Unity Building In Flash 3D Molehill Export Support Cocos2D Javascript Javascript Port of Cocos2D Game Engine Firefox 4 WebGL enabled Hardware Acceleration Faster Javascript WebConsole Adobe Flash Vs Unity The Near Future Of Hardware Accelerated Web Games EaselJS html5 Flash like Javascript Library by Grant Skinner WebGL Will Be Part of Chrome 9 Regular Releases WebSockets Now Available Across iOS Devices with 4 2 Update Adobe Illustrator AI to Canvas Exporter for html5 Adobe Demos

    Original URL path: http://drawlogic.com/tag/ar/ (2016-02-09)
    Open archived version from archive

  • *drawlogic » ALGORITHM - web, mobile, game + interactive development » ALGORITHM » ALGORITHM
    with Chipmunk like Glade has A game and physics engine for Flash including Rigid Body Dynamics Scene management Line of sight User Input Scrolling AI Core parts of the physics solver and collision system are based on the C physics engine Chipmunk Notes about Physaxe Physaxe is a 2D Rigid Body Library written in haXe It s been highly optimized for the Flash 9 Player with the best optimizations available Physaxe is based on several existing physics engines mainly Box2D the reference open source physics engine Glaze an AS3 engine which is a port of Chipmunk itself based on Box2D Physaxe features are rigid body consisting in several shapes shapes supported are circles segments with rounded edges and arbitrary convex polygons customizable broadphase currently bruteforce and y sorted list are available island resolution and sleeping allow 0 CPU to be spent when groups are sleeping constraint solver based on Box2D sequential impulses customizable body properties such as linear angular friction and maximized motion Demo Post about the release Physaxe haXe Kit on Google Code Updated list of physics engines are like this AS3 3D Physics Engines Open Source WOW Engine AS3 2D Physics Engines Open Source APE Actionscript Physics Engine Box2DFlashAS3 FOAM Glaze Motor2 haXe 2D Physics Engines Physaxe Get your game on It is best to get them out early and often I need to take my own advice Tags 2d AS3 box2d box2dflashas3 ENGINE FLASH FLEX foam glade list motor2 OPEN SOURCE PHYSICS Posted in ACTIONSCRIPT ACTIONSCRIPT3 ALGORITHM ARCHITECT AS3 DYNAMIC ENGINE FLASH FLEX GAMEDEV GAMES HAXE OPEN SOURCE PERFORMANCE PHYSICS PIXEL PROGRAMMING RENDERING TECHNOLOGY VISUALIZATION Comments Off AS3 Flash Isometric Game Engine Released FFilmation 1 0 Monday March 31st 2008 The FFilmation AS3 Flash Isometric Engine has been released into the wild Jordi Ministral has been generous to watch his creation grow and evolve with the help of the open source community and the flash community is one of the best open source communities out there even though the core adobe flash is still closed Open sourcing is one of the best ways to market test your skills really and this engine has much anyone can learn in making isometric engines for flash You can see our first post on this great engine here Post on the release Download the code API Reference asdoc Here s a peek at the classes in the API http www ffilmation org docs api 1 0 class summary html All Classes BumpMap fAiContainer fCamera fCharacter fCollideEvent fElement fEngine fEngineMaterial fEngineSceneRetriever fEventIn fEventOut fFloor fGlobalLight fLight fMaterial fMoveEvent fObject fOmniLight fPlane fProcessEvent fRenderableElement fScene fSceneLoader fWalkoverEvent fWall line mathUtils movieClipUtils polygonProjection polygonUtils Vector vport Get your game on Tags ACTIONSCRIPT actionscript 3 AS3 ENGINE ffilmation game GAMEDEV isometric Posted in ACTIONSCRIPT ACTIONSCRIPT3 ALGORITHM ARCHITECT AS3 DEVELOPMENT ENGINE FLASH FLEX GAMEDEV GAMES isometric OPEN SOURCE PERFORMANCE PROGRAMMING RENDERING TECHNOLOGY 7 Comments AS3 Extruding Pixels to 3D with Papervision 3D Saturday March 22nd 2008 Den Ivanov scored another why didn t I think of that flash demos with extruding pixels into 3d with papervision He has some great samples and demos on his site about it Den Ivanov is a long time flasher and recent scores with Brahma bus one of the coolest first papervision commercial projects and the terrain generator This uses ExtrudeImage which does exactly what the class says Tags extrude PAPERVISION PIXEL Posted in 3d 3D ENGINES ACTIONSCRIPT ACTIONSCRIPT3 ALGORITHM ARCHITECT AS3 ENGINE FLASH FLEX GAMEDEV GAMES OPEN SOURCE PAPERVISION PIXEL TECHNOLOGY Comments Off AS3 Real Time Raytracing Saturday March 22nd 2008 Forrest Briggs throwing down with a real time raytracer in AS3 Also a C OpenGL version sample on the page Real time pixel manipulation in flash is getting faster but is still probably going to have to be faked in AS3 maybe AS4 will provide us per pixel speeds that Andre Michelle has been harping on since flash 8 5 Native operations can be much faster in that area AIF might look to change some of that but that is Flash 10 Here is the code for the as3 raytracer Read more at laserpirate package import flash display Sprite import flash display Bitmap import flash display BitmapData import flash events Event import flash utils getTimer import flash events MouseEvent import flash text TextField import flash text TextFormat public class RayTracer extends Sprite private var t Number private var dt Number 01 private var frameTimeTxt TextField public static const BUFFER WIDTH int 160 public static const BUFFER HEIGHT int 120 public static const BUFFER SCALEDDOWN int 320 BUFFER WIDTH public static const HALF BUFFER WIDTH int BUFFER WIDTH 2 public static const HALF BUFFER HEIGHT int BUFFER HEIGHT 2 private var outputBitmapData BitmapData private var outputBitmap Bitmap public var FOV Number 20 public var sphereCenterX Array 0 0 0 0 public var sphereCenterY Array 0 2 4 100 5 public var sphereCenterZ Array 4 4 4 10 public var sphereRadius Array 35 35 25 100 public var sphereR Array 255 0 0 20 public var sphereG Array 0 150 0 20 public var sphereB Array 0 0 255 20 public var sphereReflects Array false false false true public var sphereReflectiveness Array 0 0 0 3 public var sphere2dX Array new Array sphereCenterX length public var sphere2dY Array new Array sphereCenterX length public var sphere2dR Array new Array sphereCenterX length public var numSpheres sphereCenterX length var skyR int 20 var skyG int 20 var skyB int 20 var skyColor int skyR sphere2dR i continue begin actual ray tracing if its inside the bounding circle lengthRTSC2 sphereCenterX i sphereCenterX i sphereCenterY i sphereCenterY i sphereCenterZ i sphereCenterZ i closestApproach sphereCenterX i rayDirX sphereCenterY i rayDirY sphereCenterZ i rayDirZ if closestApproach 255 r 255 if g 255 g 255 if b 255 b 255 end if reflected ray hits end if reflects else primary ray doesn t reflect r sphereR closestSphereIndex illumination g sphereG closestSphereIndex illumination b sphereB closestSphereIndex illumination outputBitmapData setPixel x y r Tags 3d ALGORITHM INTERFACE PIXEL raytrace render Posted

    Original URL path: http://drawlogic.com/category/algorithm/ (2016-02-09)
    Open archived version from archive



  •