VectorVision = Vectors in Papervision3D.

By Barcinski & Jeanjean

VectorVision - Vectors in Papervision3D

For the coming soon teaser on our website, we needed crispy rendered text. Because Papervision3D is bitmap based and therefore not very good at rendering text, a nice extention would be to render vectors in 3D directly in Papervision3D. A good starting point is the beautiful Five3D engine by Mathieu Badimon. So, what I’ve done is I ported his fonts into Papervision3D. And since Mathieu also released a font conversion tool, you can create Five3D fonts yourself from any font installed on your machine! Check the 3D font example here.

Then I thought; if I can draw vector fonts in 3D, I could draw any vector shape in 3D. And what better input format to use then SVG? Lucky for me I didn’t have to write an SVG parser for AS3 because James Hight has done it already and released his source code. He has since then updated his code to support many more features of the SVG format but I haven’t had the time to implement it yet. Check an example of an imported SVG into Papervision3D here.

To cut a long story short; download the source code and make something beautiful!. And don’t forget to send us a message.

94 Responses to “VectorVision = Vectors in Papervision3D.”

  1. Og2t Says:

    Mistrz! :) I was waiting for that to happen one day! Thanks!

  2. Mark Barcinski Says:

    Siemanko Tomek! Glad you like it. :)

  3. simon Says:

    Hi,

    Could you tell me what version of Papervision I should be using when compiling. I’ve tried 2.0 but get the following error :-

    1046: Type was not found or was not a compile-time constant: RenderLayer.

    Thanks,
    Simon.

  4. barcinskijeanjean Says:

    Hi Simon,

    I used the papervision effects branch but now i see that it doesn’t work with the ‘plain’ 2.0
    I will fix it soon and update the code, meanwhile try the effects branch.

  5. simon Says:

    Hi,

    Yes, that works. Thanks a lot for your help.

    Simon.

  6. felix Says:

    fantastico!

  7. gally Says:

    top tip top !

  8. VectorVision : flash und so… Says:

    [...] für Flash, arbeitet aber mit Bitmaps. FIVe3D ist dagegen eine reine vektorbasierte 3D-Engine. Mit VectorVision gibt es nun eine sehr geniale Möglichkeit Vektoren in Papervision3D zu verwenden. Es ist sogar [...]

  9. Joshua Mostafa Says:

    Thanks heaps for this. Excellent work!

    We will be using in a project … you’ve just saved us a lot of hassle:
    http://joshua.almirun.com/tech/ria/flash/hybrid-3d

    Please keep us updated on your progress porting to Great White – I’ll keep an eye on your blog.

    You could consider posting this to the pv3d mailing list also?

  10. Mark Barcinski Says:

    Hi Joshua, I’m glad my vectorvision saved you a lot of work already and that it found it’s first commercial project this soon :)

    I’ve updated the download link with a Great White version and i will also setup a repository at http://vectorvision.googlecode.com.

    Cheers and good luck with your project!

  11. Jérôme Sullerot Says:

    Hi,
    thanks for your excellent work, but it seems that your Great White version does’nt work.
    There’s no more org.papervision3d.core.layers.RenderLayer Class on papervision svn.

  12. VectorVision = Vectors in Papervision3D « Papervision3D - Developers Says:

    [...] out their post for examples and more [...]

  13. Bryan Gale Says:

    Very cool stuff! Can you talk a little about how this handles curves? Flash can only do quadratic bezier curves, and quadratic bezier curves don’t stay quadratic bezier curves under perspective transformation surely?

  14. Zack Jordan Says:

    Great work- this is good news. I’ve been doing a lot of FIVe3D experiments, but I may have to give this a shot as well. I think this may find its way into my current project.

  15. farmazone Says:

    no to mi sie podoba :) bardzo uzyteczna rzecz. pozdro.

  16. Mark Barcinski Says:

    @Jérôme – did you download the latest version from googlecode? The very firs file posted here used the effect branch but I changed it to great white.

    @Bryan – the bezier curves are not really 3d bezier curves they stay “2d” because they are transformed on 1 plane.

    Thanx all of you for the positive feedback!

  17. gally Says:

    I’ve compiled this in a swc with papervision effect branch. I just can’t remember which revision it is but it’s not more old than a month.
    http://testouillation.free.Fr/vectorVision3D.swc
    Maybe it’ll help someone.

  18. Symplicity00 Says:

    Superb:)

  19. gally Says:

    I’ve replace the .swc by a version with latest GW 576 et vectorvision 4 cause i had some issues with effect branch + vectorvision (see googlecode)

  20. Nothing is particularly hard if you divide it into small jobs. Says:

    [VectorVision] FIVe3D + Papervision3D = Fantastico!!! …

    Thanks to this smart guy, we can integrate FIVe3D’s typographies into Papervision3D. Great :)
    btw, I used GreatWhite(rev.576)
    Anyway, I’m getting used to use SequenceCA class.
    sequenceCA.lastSte……

  21. Zack Jordan Says:

    I put together a quick comparison between FIVe3D and PV3D/VectorVision here if anyone’s interested. There’s a pretty dramatic filesize and performance difference between the two.

  22. Martin Says:

    Super cool and easy to use!

    Is there trick to make objects clickable with:

    someVectorShapeInADisplayObject3D.addEventListener(InteractiveScene3DEvent.OBJECT_CLICK, onClickHandler);

    Or is there another trick?

  23. Mark Barcinski Says:

    Martin,

    At this time is not possible to make objects clickable but it will be in the future ;)

    edit: it is possible now, you need an interactive viewport and you can do it just like:
    someVectorShapeInADisplayObject3D.addEventListener(InteractiveScene3DEvent.OBJECT_CLICK, onClickHandler);

    you need to get the code from svn

  24. Martin Says:

    Mark,
    Thanx for adding Interactive events. Works great ;)

  25. Justin Rhoades Says:

    For alpha material fills, make this simple change to org.papervision3d.materials.special.VectorShapeMaterial line 24:
    graphics.beginFill(fillColor, fillAlpha);

  26. flobster Says:

    Everything works fine, but when i try using self created fonts using the five3d typography tool, i get a bunch of errors. I already changed the package description…any hints on that?

  27. Mark Barcinski Says:

    @Flobster, I will have made a little how to doc when i have the time for now just make shure that your font extends Font3D (org.papervision3d.typography.Font3D) and you also need to add this code to your font :

    ////////////////////////////////////////////
    override public function get motifs():Object
    {
    if(!__initialized)initialize();
    return __motifs;
    }

    override public function get widths():Object
    {
    if(!__initialized)initialize();
    return __widths;
    }

    override public function get height():Number
    {
    if(!__initialized)initialize();
    return __height;
    }
    ////////////////////////////////////////////

    @Justin, thanx for help, if you have more fixes/bugs feel free to post the on googlecode.

  28. Stanley Says:

    Hi Mark,
    I’m trying with Great White r638, it’s not working, it gives the following errors:

    Word3D.as Line 18 | 1137: Incorrect number of arguments. Expected no more than 2.

    and

    VectorShape3D.as Line 30 | 1137: Incorrect number of arguments. Expected no more than 2.

    I’m new to PV3D, please bear with me. Let me know if I did something wrong….Thanks~ =)

  29. Stanley Says:

    Hey again,
    Actually, I just briefly scanned through GW DisplayObject3D class, I guess r638 is the version just came out not long ago, which initObject parameter has been taken out.

    So I took out the initObject from your code and it works perfectly~

    Love it!

    -S

  30. Marcus Booster Says:

    Thanks for the info Stanley, I just ran into the same error.

  31. xavier Says:

    Hi,
    very nice work, using vectorized fonts in pv3d is great.
    I had some problems with french glyphs (example é, è, ç …) for the creation of the vectorized font with M. badimon tool.
    One thing I noticed using your script : no width property on word3D objects, i did add this property based on the letters widths.
    And to make some button, added an interactive plane (transparent) just behind the word , to make it easily clickable.
    I also tried to use effect branch to ad some blur effect :
    http://www.s229491400.onlinehome.fr/3D/menu3D.html

    Good job, thanks again !
    xavier

  32. Sam Mac Says:

    Is there any way you can give an example of using an embedded svg file? I’m having a bit of difficulty with it.
    Thanks!

  33. Justin Rhoades Says:

    Thank you for putting this together.
    Here’s our example of VectorVision plus Yahoo Pipes, check it out:
    http://liveaxle.com/cloud/

  34. Mark Barcinski Says:

    Wow! Justin! Thats really sweet!
    I absolutely totally love it!

    (engadget is one of my favorites too:O)

  35. kenneth Says:

    hi..

    great thing..:) but i have a little problem,..i have an item class, that just generate a word3D wit an rollOver and Out,..everythings fine so long,…looks like that

    //
    private function createWord(wordString:String):void{
    mat=new VectorShapeMaterial(0×666666);
    word = new Word3D(wordString,new HelveticaBold(),mat);
    word.material.interactive=true;
    for each (var letter:Letter3D in word.letters){
    letter.addEventListener(InteractiveScene3DEvent.OBJECT_OVER,over);
    letter.addEventListener(InteractiveScene3DEvent.OBJECT_OUT,out);
    }
    this.addChild(word);
    }
    //

    when i replace wordString in the “word = new Word3D(…)” line with , for example, “test” , everything is fine,…but when i call the methode createWord(”test”) and try to handle the string as a variable there is this exeption

    TypeError: Error #1009: Der Zugriff auf eine Eigenschaft oder eine Methode eines null-Objektverweises ist nicht möglich.
    at org.papervision3d.typography::Letter3D/createVertices()
    at org.papervision3d.typography::Letter3D/getLetterFromFont()
    at org.papervision3d.typography::Letter3D()
    at org.papervision3d.typography::Word3D/setupLetterWord()
    at org.papervision3d.typography::Word3D()
    at tag::TagItem/createWord()
    at tag::TagItem()
    at tag::TagCloud/addToStage()
    at tag::TagCloud()

    in english: “there is no chance to call a method of an null object,…

    why is it then a null object?

    any ideas?

    thanks a lot,..great vector engine,..hope it is only a crappy fault of mine anywhere

  36. kenneth Says:

    i fixed it,…in your font classes you may not use letters like “ö, ü, ä” well these letters often used in german,.:)

  37. Billy Says:

    You are only allowed a sub-set of the font characters, but you can manually adjust the points inside the font3d file. It probably depends on how complicated the letterform you desire; I changed a simple dash to an em-dash without problems. It may be easy to add a few of those “german dots” to a few letters as well.

  38. barcinskijeanjean Says:

    Hey Billy and others in need for german letters.

    The font conversion tool by Mathieu is not limited to one subset, you can generate any glyphs you need and vectorvision will support it, just look at the experiment by Symplicity00. He has managet to produce japanese font!

    We are extremely busy right now but there is a big list of changes/fixes/upgrades coming to as soon as we find the time.
    Here is a small list of the planned updates:
    - change the working of the font classes to make it 100% compatible with Five3D fonts.
    - extended font lib ( we will add few open source fonts )
    - the included fonts will include extended latin glyphs
    - single sided shapes
    - better interactivity
    - metrics for easier aligning
    - texfield3D class
    - speed optimised word3d (and textfield3d)

    and the list goes on but for now i gotta go back to work …

  39. cybermind Says:

    I’ve tried everything to get this working. Even the swc someone attached. I think the issue is papervision versioning. Is there anyway to get a zip with the right version of papervision src included with the example files? I’d love to start playing with this, but I’ve spent hours trying to solve these compiler errors :( . Please help!

  40. barcinskijeanjean Says:

    @cybermind, I will make a new zip today.

  41. cybermind Says:

    cheers man, i appreciate it, and awesome work! you’ve really opened up a whole new toolset, congrats! can’t wait :)

  42. barcinskijeanjean Says:

    cybermind thanx! I’ve just uploaded a zip that works with the latest gratwhite(r691), I also added the pv3d download to save you time looking for the correct pv3d. Enjoy!

  43. cybermind Says:

    cheers dude,
    looks great!
    you rule!

  44. duder Says:

    This is awesome.

    Question: can I use this code library for commercial work?

    Cheers!

  45. barcinskijeanjean Says:

    duder, you can use this code anyway you want, there are no restrictions on how to use it. Read the licence here .

  46. Preston Says:

    Every time I try to publish out the example file, it gives me these errors:

    1017: The definition of base class RenderableListItem was not found.

  47. Preston Says:

    Hmm.

    it didn’t let me finish that post…

    I also got these errors:

    1020: Method marked override must override another method.

  48. Preston Says:

    It keeps cutting me off, I apologize.

    I know these errors are inside of pv3d, but I can’t figure out what is causing them.

    Last error:

    1045: Interface IRenderListItem was not found.

  49. Mark Barcinski Says:

    Preston is sounds like you are using an older papervision version, did you try using the one from vectorvisions download page ?

  50. Ugonna Nwosu Says:

    Much appreciation to you guys. This has opened up alot of doors for a number of projects I’m working on. I been playing around with the classes alot and thought I’d share one of the fruits of my labours. An entry for a competition I’m currently involved in:

    http://www.ugonna-nwosu.com/un/clients/safari_books_online/peachpit_welcome/peachpit.html

  51. Jude Says:

    Really great work! and as someone said before, it saved me a lot of hassle too.

    Still, I have a problem concerning interactivity: if I try to listen to an event on a Word3D (nested in a DisplayObject3D) it doesn’t work. I’ve followed all the examples, If I put the listener on the letters as in the InteractivityExample, everything works but I can’t make it work with the Word3D himself.

    i’ve tried to put the Word3D into a transparent Plane but it messes up everything.

    as i’m not really used to papervision3D i’m out of ideas on fixing my problems …

    I’m using the last GreatWhite update

  52. Temirlan Says:

    Thanks for your efforts, excellent work!

  53. Mark Barcinski Says:

    @Ugonna, thanx for sharing your work with us. I really like it, though i would love to see it with the stage quality set to high :)

    @Jude, I’m still thinking about implementing event propagation from letters to Word3D, for now you can just use the parent property of the letter to access the word itself. You event handler could look something like this:

    function onLetterClick(event : InteractiveScene3DEvent):void
    {
    var word:Word3D = Word3D(event.displayObject3D.parent);
    // …….
    }

  54. Billy Says:

    I know this seems silly, but is there a way to extract the BitmapData from a vectorshape for use with bitmap effects?

  55. Mike Pelton Says:

    Mark – hi – VectorVision is excellent. Found a minor buglet in the way letters are spaced while I was looking to align words accurately – Word3D method I’m now using is below. Hope it’s useful – thanks for all your hard work/ Regards, Mike

    private function setupLetterWord(material:VectorShapeMaterial) : Array
    {
    var letter : Letter3D;
    var prevLetter : Letter3D;
    var totalWidth:Number = 0;

    var nLetters:int = word.length;
    var maxIndex:int = nLetters – 1;
    for(var i:int = 0 ; i < word.length ; i++)
    {
    var char:String = word.charAt(i);
    letter = new Letter3D(char, material , font );
    letters.push(letter);

    if(i < maxIndex)totalWidth += letter.width + spacing;
    else totalWidth += letter.width;

    addChild(letter);
    prevLetter = letter;
    }

    // Centreing
    var semiWidth:Number = totalWidth / 2;

    for(i = 0 ; i 0)
    {
    letter.x = prevLetter.x + (prevLetter.width/2 + letter.width/2) + spacing ;
    }
    else letter.x = letter.width / 2 – semiWidth;

    prevLetter = letter;
    }
    return letters;
    }

  56. Mike Pelton Says:

    Hmm – code got a bit mashed in transit – hope the intent’s clear…

  57. Mark Barcinski Says:

    The easiest way to do bitmap effects is to use papervision’s build in BitmapEffectLayer.

    var bfx:BitmapEffectLayer = new BitmapEffectLayer(viewport, 800, 600);
    viewport.containerSprite.addLayer(bfx);
    bfx.addDisplayObject3D(myShape);

  58. Vectors now in Papervision3D / CODEISPOETRY Says:

    [...] VectorVision is an addon vor papervision3d. Haven’t tested it yet but the demo looks awesome. It has been done by http://www.barcinski-jeanjean.com. It bases on Five3D – an amazing vector 3d engine by Mathieu Badimon [...]

  59. Mrinal Wadhwa Says:

    Guys,

    Vectorvsion is awesome ! Saved me a lot of time dealing with Text.
    I have a question, and think I know the answer but still thought I’d ask .. there is no built in support to do multiline text, is there?

    Thank you
    Mrinal

  60. vectorvision ile 3d text ve vector | scraby flex & 3d Says:

    [...] çalışma ile ilgili blog linkide burada. addthis_url = ‘http%3A%2F%2Fwww.tasarlabi.com%2Fvectorvision-ile-3d-text-ve-vector.html’; [...]

  61. Mark Barcinski Says:

    @Mrinal, it should be coming soon, i promise :)

  62. Jane S. Says:

    Nice work. I particular like the SVG functionality, but I’m encountering a problem.

    1) The SVG I’m loading appears flipped horizontally so the text in it is reading backwards.

    2) I have to object in the scene, the svg at z depth 0 and a plane with a bitmap at z depth 1000. The bitmap although positioned behind, is appearing in front. It’s the right size (as if it were behind the svg) but it’s in front and covering the SVG.

    Any thoughts on what is going wrong? Any help would be much appreciated. I’m pulling my hair out here :)

  63. Alex Says:

    Awesome functionality with the SVG loader guys, just one thing though. I’ve tried adding some interactivity to a VectorShape3D object, doesn’t seem to be working. Am I doing something wrong or is this not supported?

    var icon:VectorShape3D = new VectorShape3D(vectorMaterial);

    icon.addEventListener(InteractiveScene3DEvent.OBJECT_CLICK, onClick);

    Thanks for the help in advance

    Cheerios

  64. Billy Says:

    Hey guys,
    In version 26 – in objects.special.VectorShape3D:
    line 107: renderCommand.screenDepth = this.screenZ;
    needs to be changed to:
    renderCommand. screenZ = this.screenZ;

    In in case anyone is searching, I had to change some previous references that I was using VectorShapeMaterial(color) to Letter3DMaterial(color)

  65. charlie Says:

    I try add chinese Text to my demo,but it don’t work.
    How to solve it?

    http://cubeparks.appspot.com/demo/IFrameFont3DDemo/IFrameFont3DDemo.html

  66. Adrien Jeanjean Says:

    Hey Charlie. The fonts included in the VectorVision package only contain the Basic Latin character sets. Click the following link to read about how to create fonts with other charactersets: http://code.google.com/p/vectorvision/wiki/FontCreation

    Cheers,
    Adrien

  67. ikiM Says:

    I couldn’t get the fonts I created to work until I noticed there is an “s” missing at the variable __heights in the code you have to add to the font script:

    ////////////////////////////////////////////
    override public function get motifs():Object
    {
    if(!__initialized)initialize();
    return __motifs;
    }

    override public function get widths():Object
    {
    if(!__initialized)initialize();
    return __widths;
    }

    override public function get height():Number
    {
    if(!__initialized)initialize();
    return __heights; ///IT SAID __height BEFORE!!
    }
    ////////////////////////////////////////////

    Hope this helps those trying to get other fonts to work.

  68. Ed Says:

    Great work starting off. For the interactiveExample.as, how can I make the letter clickable instead of just on rollover? I try this,

    private function makeLettersInteractive(word : Text3D):void{
    word.material.interactive = true;

    for each(var letter:Text3D in word.letters){
    letter.addEventListener(InteractiveScene3DEvent.OBJECT_CLICK, onLetterMover);
    }
    }

    but no luck. any ideas? Thanks!!

  69. ikiM Says:

    @Ed: I had the same issue. I solved it comenting this line:

    VectorShapeHitTest.instance.assignViewport(viewport);

    I don’t know why, but without this line, OBJECT_CLICK works perfectly.

  70. Ed Says:

    Thanks IKIM, i did this and the OBJECT_CLICK handler worked but the mouse wouldn’t consistently change to onRollover state over the vector font letters. Any ideas on how to keep the mouse onRollover state when over the fonts? Thanks,

    Ed

  71. Dubi Says:

    Hi guys
    thanks for a great solution!!!
    I tried to add the vectorvision pacakges with the new Quadtree render engine, result in errors
    Is there a way to combine the two engines to work together ? Is there an update for this ?

  72. jaglavek Says:

    Where can the font conversion tool be found?

  73. Shawny Says:

    Hi guys,
    So far I have really been impressed with vectorvision and think it has a TON of potential. I’m hoping you can help with a quick question or perhaps point me in a good direction. I am trying to use vectorvision in Flex 3 yet I keep getting an unknown error. I want to take a word like “tree” and render it into my papervision scene. When I use font3D, text3D, and letter3DMaterial, I get a compile error in Flex. When I remove reference to these classes, my project builds.

    Are there any known issues using vectorvision in Flex 3?

    Thanks.
    cheers!

  74. Shawny Says:

    I found the answer to my question and posted it on my blog.

    So I’m quite impressed with the response time and the quality of vectorvision. I do have one question. If I create a Text3D object, and create it using one of the installed fonts like HelveticaBold, is there a way t change the font size other than scaling the object?

    Second question, I added a bunch of text3D objects to a displayObject3D and cant seem to get them to be clickable. Ive gone through all the items of the displayobject3d and added an event listener to each text3D object as an interactivescene3devent.OBJECT_CLICK but its not working.

    Any help would be appreciated.

  75. Shawny Says:

    I don’t know if this matters, but my project is in Flex and everything works great except the interactivity part. In order to add my objects to the stage I created a canvas and added the papervision to it. Is there anything different I need to do to add interactivity to my vectorvision objects when creating them in this manner?


    pv3dStage.rawChildren.addChild(view);

    Thanks guys!

  76. Shawny Says:

    mx:canvas id=”pv3dStage”/

  77. Mark Barcinski Says:

    Hi Shawny, thanx for your input, we will look into the interactivity issues as soon as we find some time for it.

  78. Kuba Wąsikowski Says:

    Has anyone tried to use font with special language characters with success? I want to use vactor-vision to render text in Polish but do not know if it is possible with my nativa language special chars.

    Anyone have tried to use vector-vision with non-english characters?

  79. Mark Barcinski Says:

    @Kuba, you can use any special character you want when you create your own fonts, the helvetica fonts included in vectorvision are created in basic latin hence there is no special chars in them. Check this experiment, it’s got japanese chars in it!

    @Shawny, OBJECT_CLICK is now fixed :)

  80. Kuba Wąsikowski Says:

    Mark thank you for example, I successfully generated standard ~english fonts using make typhography but how to make it possible to generate non standard characters like Polish?

    In choose the glyhs classic selection makes standard english characters so i choose manual option and put my alphabet with special characters like in file alfabet below
    http://kubawasikowski.com/alfabet.txt (utf8)

    i have manually created font fie like below to separate upper-case and lower-case, but i think do not make much change:

    http://kubawasikowski.com/Alamakota.as

    My prog compiles with flashdevelop without errors but when i try to render something with my polish special chars i got errors from the player and nothing show on the string but when i want to show only English like letters my alamakota font works perfectly

    please correct or please give advice,can I use Polish characters in Normal ActionScript String like:
    word1 = new Text3D( ” AAA śćź ” , new Alamakota(), material);

    or should i search for special hex numbers like in advice from macromedia:
    http://www.adobe.com/support/flash/languages/unicode_in_flmx/unicode_in_flmx08.html

    I know it is stupid question but please Mr. Barcinski be generous

  81. Kuba Wąsikowski Says:

    Partly solved!

    please watch demo:
    http://kubawasikowski.com/testPLFont.swf

    the problem is in string encoding of my polish characters, i followed macromedia advice with writing unicode characters in hex for special chars:http://www.adobe.com/support/flash/languages/unicode_in_flmx/unicode_in_flmx08.html

    the list of Polish characters can be found here (UTF 16 HEX VALUE must be used) ;
    http://gajdaw.pl/varia/polskie-ogonki-na-www/print.html

    so for example:

    ą in actionscript string will be: \u0105

    i can’t imagine writing long text with manually changing letters but i do not see any other option :-(

    but it is strange, my font alamakota.as is compiled with my prog where i try to show polish text, in alamakota all special characters are saved like:
    __motifs["Ą"] = [[’M’ etc…

    but to use that character i must use unicode \u0104 and not simple Ą in my actionscript strings

    WTF?
    ANY PRO please for advice

  82. Kuba Wąsikowski Says:

    lol, found the solution

    the best way is to use for example text in external xml (must be saved in unicode format, using even notepad is ok, in save option there is ansi/utf8 and unicode) and load it, everything works perfectly

    sorry for trash on blog

    i hope that it will be helpfully for some people

    cheers
    kuba
    Pozdrowienia!

  83. I like to play Says:

    This is fantastic, easy to use and understand – you guys are awesome :-)

  84. G. Says:

    Hi there,

    Stupid question, but is there a simple way to get the width and height of the Text3D object? seems that the boundingBox() method doesn’t work (returns infinity for each value of the returned object)? I’ve found the way to make the job but it’s not totally clean and uses ressources

  85. Pavel Risenberg Says:

    Hi,

    Thanks for that update to Great White, it was the one I was waiting for. Whatever,
    I’ve implemented it in my old project:

    http://www.senpii.com/flashes/wwwmap-weather-youtube/in/
    http://www.senpii.com/flashes/wwwmap-weather-youtube/?url=http%3A%2F%2Fwww.generatorx.no

    Cheers and take care!

  86. Ed Says:

    Thanks guys for your work. Used vectorvision for this site, thisisfirefly.com, and the text looks so much cleaner than using pngs. thank you!!

  87. Interactive Map | Abu Dhabi Adventure Challenge - tutorials - Community Server Says:

    [...] Our solution: We used PV3D’s extension “vectorvision” for the country map which allows to load a light SVG file and render it as a “VectorShape” that keeps sharp edges no matter what zoom level is used. Vectorvision source can be found here. [...]

  88. aaron wilson Says:

    Hi Mark,
    I’ve been using your vectorvision classes now included in the great white and newer papervision releases with absolutely phenomenal results. I ran into a slight issue, and I’m curious if you or anyone else on here has noticed it.

    Basically I’m attempting to manipulate a viewportLayer containing an instance of Text3D or VectorLetter3D and it does not respond in the usual way. For example:

    //this is creates the Letter instance and works perfectly
    var material:Letter3DMaterial = new Letter3DMaterial(0xff00ff, 1);
    var letter:VectorLetter3D = new VectorLetter3D(’A', material, new HelveticaBold() );
    rootNode.addChild(letter);

    //this is where it gets weird
    var layer:ViewportLayer = viewport.getChildLayer(letter, true, true);

    //no luck removing the layer, its still rendered
    viewport.containerSprite.removeLayer(layer);

    //no luck changing layer properties
    layer.visible = false;

    //also no result when trying to manually z-sort
    layer.layerIndex = 10;

    The strangest thing is that this issue does not exist when I’m using an instance of VectorShape3D and VectorLetter3D extends VectorShape3D! I have spent hours looking at your code and it all looks great, I would not have wasted your time if I could have fixed it or even hacked around it.

    BTW this is the project I’m using it in:

    http://www.2morodev.com/flash_examples/3D_site/

    I have 3D text and I’m rendering to two viewports to create a reflection, but I want to remove it from the reflection viewport.

    Thanks so much for your work!

    Aaron

  89. Handelling Text in Papervision « My Weblog Says:

    [...] for more info go to the blog :http://blog.barcinski-jeanjean.com/2008/05/16/vectorsvision-vectors-in-papervision3d/ [...]

  90. Mark Barcinski Says:

    Hi Aaron,

    Sorry to hear that you’ve run into a serious bug in vectorvision, I would normally try to solve it right away. Unfortunately I only have limited access to a computer at this time. My mac is broken and I’m using an iphone to answer emails :(

    Try posting your problem at the papervision mailing list or the forum, there is a big chance that someone knows a solution.

    cheers,
    Mark

  91. Piotr Rachtan Says:

    Hi, Mark,

    Same problem like Aaron, VectorShape3D object ignores viewportLayer index, any chance to resolve? :)

    cheers,
    Piotr

  92. Sunil’s FITC Toronto 2009 Top Ten Round Up - Sunil’s Blog Says:

    [...] Vector Vision – allows you to use vectors in Papervision – http://blog.barcinski-jeanjean.com/2008/05/16/vectorsvision-vectors-in-papervision3d/ – [...]

  93. | NoisyDesign.com Says:

    [...] you’ve played with it a while  you’ll need to step up your pixalated bitmap graphics with some VectorVision…more about that in another [...]

  94. VectorVision3D. | NoisyDesign.com Says:

    [...] -http://blog.barcinski-jeanjean.com/2008/05/16/vectorsvision-vectors-in-papervision3d/ [...]

Leave a Reply