MarcPelland.com
Welcome at » Using Papervision Object Parsers

Using Papervision Object Parsers

Table of Contents

Introduction

Overview

With all the different 3d applications in use today it is hard to come up with one standardized format. So Papervision includes a number of parsers that can interpret some of the different types of 3d files. This gives developers and modelers some freedom as to which application they would like to use.

Located within each parser class in Papervision is a little bit of a write-up that explains what the parser can do and what it can’t. In this tutorial, I will just introduce you to each type; basically re-iterating what is in the class (for ease of access). Then I will run through some examples for how to use a couple of the parsers to load your objects.

What does a Parser do?

As stated above, a parser just interprets whatever is in the 3d asset file and translates it into something that Papervision can read.

Every file format has a core structure that remains the same, so the developers of Papervision have just made an translators for all of these core structures.

Where are the Parsers?

The parsers are located in the Papervision codebase under: src/org/papervision3d/objects/parsers.

Pages: 1 2 3 4 5 6 7 8 9

22 Responses

  1. Netto




    _3ds.setChildMaterial I get an error (1061) on this line flash can’t find method related,please help I get a blank screen!

    Netto




  2. are you working with the latest release of Papervision?




  3. i’ve never used the 3ds parser, i’ll give it a try. If i put some lights in 3D Studio, will they appear in PV3D with the 3ds parser? (i guess not, but i don`t have 3d Studio to make a test right now).

    Very nice article by the way, thanks.




  4. thanks for the nice comments bioRex.

    I know that the 3ds parser will load the lights as objects. But I don’t believe that there is much that can be done with them. I would recommend using dummy objects, either in the 3d scene or in the papervision scene.

  5. oliver_l1




    in your example you apply a material to the collada object via code but what if the object has a material(defined in a 3d application) already applied ?

  6. oliver_l1




    and one more question…you said:
    These are good files to use if you would like to import assets that include animations.
    So far so good but how can i control the animation in papervision.For example a simple walk cycle animation created in Cinema 4D via keyboard input in as3 and pv3d ?




  7. I will work on creating a part 2 of this tutorial over the next couple days and see if i can answer some of your questions about animation and materials.

    I can assure you that both things are possible (loading animations and using materials that were used in the 3d application).

  8. dino




    VERY NICE FILE….i’m new in papervision i see your tutorial, but i don’t understand how i can change the 3dobject. i have my .3ds file and i put in my folder,then i change the extensione in Max3dsParser_v1 and export the .fla…. i need to know if the Max3dsParser_v1.as is remain the same or is an .as created from 3dstudio?




  9. just find knot.3ds within the Max3dsParser_v1.as and change that to the name of your 3ds file. the rest can remain the same

  10. dino




    doesn’t work…maybe my exporto in .3ds is wrong? i can’t see my file but still remain your knot.3ds…!!




  11. It’s good to see this information in your post, i was looking the same but there was not any proper resource, thanx now i have the link which i was looking for my research.




  12. What a fun pattern! It’s great to hear from you and see what you’ve sent up to. All of the projects look great! You make it so simple to this.Thanks!




  13. Very happy to see your article, I very much to like and agree with your point of view. Thank you for sharing. At the same time,i love best pram very much .Welcome to look at my website and blog articles.Hope we can become good friends, and exchange and to help each other! Thanks!!




  14. Are there other more tutorials like this one?? it’s good! thanks a lot! but, you try to consider adding up more explanations for the first timers. =)




  15. Good work! Ii would look forword your article. Maybe you can come to my website to search what you need~

    welcome everyone come to my website!




  16. Good work! Ii would look forword your article. Maybe you can come to my website to search what you need~




  17. You are the bomb! What a wealth of knowledge you share. Love to read your articles.




  18. This has been very helpful understanding a lot of things. I’m sure a lot of other people wil




  19. Amazing talent. I find her designs to be extraordinary!I agree this point.
    Christian Louboutin Boots




  20. What a great post! Just one suggestion:If you add some pics, it would be easiler to follow!




  21. Your post is excellent. I learn much from your article. Life is a




  22. I just stumbled upon your blog and wanted to say that I have really enjoyed reading your blog posts. Any way I’ll be subscribing to your feed and I hope you post again soon.
    传奇私服
    传奇私服

Leave a Reply

Captcha
Enter the letters you see above.