StevenStark.com
Technical Blog for Joomla, LAMP and Flash Development. ALSO includes Application, interactives and game development.

...... Navigation

  • Home
  • Flash
  • Open Source
  • The Team
  • Background
  • Services
  • Portfolio
  • Projects
  • Contact

  • ...... Technical Blog

  • CMS (13)
  • Experiments (1)
  • Flash (9)
  • LAMP (1)
  • Misc (8)
  • Tutorials (5)


  • ...... Archives

  • April 2009
  • October 2008
  • March 2008
  • February 2008
  • January 2008
  • November 2007
  • June 2007
  • May 2007
  • April 2007
  • March 2007
  • February 2007
  • December 2006
  • August 2006
  •  

     

     

     

     

     

     

     

     

     

    < FlashBrite3D - free 3d text writer Setting up a Media Temple DV 3.5 for Joomla WordPress and MagentoCommerce >

    FlashBrite3D v2 - Free img to 3d

    fb3d_2_exampleFlashBrite3D has been re-designed to work around jpg and png images. Instead of defining a map of characters to either be on or off, as we did in version 1, we are converting the image into text. Based on the resulting text, a new 3D representation of the image will appear. The color and alpha will be tested and the 3d object will retain the color of the image along with turning invisible if there is 100% transparent in this area.

     

    DEMO - XML

     

    Setup if very simple. Download and extract the .zip file in this article, and modify the fb3d_v2_config.xml file. The config values are defined as such:

     

    Options node holds the variables:

    @spacing_mod - 1 based multiplier for the spacing between objects.
    @mod_x - add how much to the x position?
    @mod_y - add how much to the y position?
    @size_mod - 1 based multiplier for altering base size of objects.
    @poly_mod - 1 based multiplier for altering the default polygon count for objects. Note, square needs > 1.
    @resolution - Resolution detail of the image. 0.04 is a good base number. Below 0.021 seems to kill Flash
    @blur_fx - blur strength of the blur bitmap effect layer. 0 = off. 1 = painting.
    @pixel_fx - 1 based multiplier for adding pixels to every shape. 0 = off.
    @zoom - camera zoom, lower numbers show more.
    @focus - camera focus.
    @mtype - Material type. Options are: wireframe, solid, phong, gouraud, flat, cell, pixel3d, none.
    @src - the url of the image to be converted.
    @original - show the original image.
    @output - show trace output.

     

    if you want to change the path for the xml file, just edit the 3d_text.html file. The xml reference is in a number of locations. You will also be able to adjust the size and background color in the html.

     

    FlashBrite3d is released under the GPL. If you use it, please leave a comment here with the URL of where it is you are using it. You may not sell or repackage this code. Thank you.

     

    FB3D_2.zip <– compiled program

     

    FB3D_2_source <– Source code, without Senocular, PV3d 2.0 or Effects branch libraries

     

     

     

     

     

     

     

     

     

     

     

     

     

     

     

     

     

     

     


    This entry was posted on Friday, February 8th, 2008 at 2:00 am and is filed under Flash.
    You can follow any responses to this entry through the RSS 2.0 feed.

    © 2000 - 2008, Steven Stark of StevenStark.com
    This site is built using: | Wordpress | Flex | Wrapper | JSON | APACHE | MySQL | PHP |
    Tech Note: Content is being parsed from XHTML and rendered inside FLEX. Hosting provided by: BlueFur