Results 1 to 5 of 5

Thread: how many library elements?

  1. #1
    JojoBlaze
    Guest

    how many library elements?

    Hi guys!
    I'm a newbie in collada and i'm trying write my own importer in c#.
    My question is (like subject): how many library elements can exists in a collada element?
    In the latest collada specifications at library_element voice (where there are all library types) in the occurence columns compare "0 or more" but i don't understand.
    Can exists two or more library_cameras elements (for example)?
    If the answer is "yes", can you explain to me the reason?


    Thanks to all!

    p.s.
    Excuse me for my bad english!

  2. #2
    Junior Member
    Join Date
    Jun 2008
    Location
    Ottawa, Canada
    Posts
    5
    there can be zero or more libraries within the Collada element. So yes, there can be 1, 2, 3, or 100 library_cameras.

    The same thing applies to the other libraries( e..g there can be an unlimited number of library_visual_scene elements, or possibly zero)

  3. #3
    JojoBlaze
    Guest
    Quote Originally Posted by breathe67
    there can be zero or more libraries within the Collada element. So yes, there can be 1, 2, 3, or 100 library_cameras.

    The same thing applies to the other libraries( e..g there can be an unlimited number of library_visual_scene elements, or possibly zero)
    Thank you for your reply!
    Can you explain to me in what case I can have more library elements?
    In other words a use case...

    Thank you again!

  4. #4
    Junior Member
    Join Date
    Jun 2008
    Location
    Ottawa, Canada
    Posts
    5
    that is up to you. I don't know what the Collada designers had in mind, but one use case might be if you have a lot of elements in your scene, and you need to manage them. So if your scene has a lot of buildings, cars, & trees, you might want to separate the cars,trees & buildings into separate libraries. I think it is mainly a too for managing a large amount of resources in a production environment.

  5. #5
    JojoBlaze
    Guest
    Quote Originally Posted by breathe67
    that is up to you. I don't know what the Collada designers had in mind, but one use case might be if you have a lot of elements in your scene, and you need to manage them. So if your scene has a lot of buildings, cars, & trees, you might want to separate the cars,trees & buildings into separate libraries. I think it is mainly a too for managing a large amount of resources in a production environment.
    Oh yes! This is a comprehensible reason!

    Thanks a lot!

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •