CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 4 of 4

Thread: OBJ conversion?

  1. #1
    Join Date
    Oct 2011
    Posts
    7

    Unhappy OBJ conversion?

    I'm trying to make OBJ converter. The file structure of which I am trying to convert is an XML structure. Here's an example. I currently have a lua script that does this for me. But it always crashes on big objects. If you could help that would be amazing! It's for a game called "ROBLOX" The only information I need to convert is.


    <int name="BrickColor">194</int> <-- Brick Color
    <CoordinateFrame name="CFrame"> <-- Position
    <X>0</X>
    <Y>0.600000024</Y>
    <Z>0</Z>

    And

    Vector3 name="size"> <-- Part size.
    X>1000</X>
    Y>1.20000005</Y>
    Z>1000</Z>

    Here's the lua script.
    http://pastebin.com/fcNA80Ss This currently grabs all of the ClassNames in the place and converts them to OBJ wavefront gemotry.

  2. #2
    VictorN's Avatar
    VictorN is offline Super Moderator Power Poster
    Join Date
    Jan 2003
    Location
    Hanover Germany
    Posts
    20,396

    Re: OBJ conversion?

    Quote Originally Posted by eriger777 View Post
    I'm trying to make OBJ converter. The file structure of which I am trying to convert is an XML structure. Here's an example. I currently have a lua script that does this for me. But it always crashes on big objects.
    1. Define "crashes".
    2. Define "big".
    3. Did you try do debug to see where, how and why it "crashes"?
    Victor Nijegorodov

  3. #3
    Join Date
    Oct 2011
    Posts
    7

    Re: OBJ conversion?

    Quote Originally Posted by VictorN View Post
    1. Define "crashes".
    2. Define "big".
    3. Did you try do debug to see where, how and why it "crashes"?
    Yes. I apologize for not making it clear. I'm using a game called "ROBLOX" It basically allows you too build and make your own games and it supports a scripting language called LUA. Of course its sandboxed. So I cannot use the OS libraries. So, In order to get the converter to work, I had to save all of the information to a stringvalue. With big models. It just contains way too much information and the game cannot handle it. So what I was thinking, Is why not just convert the .RBXM file (Roblox XML file). The XML file contains all of the brick information. The size, The shapes. ETC. However, the person who originally made the lua script is no longer around.

  4. #4
    VictorN's Avatar
    VictorN is offline Super Moderator Power Poster
    Join Date
    Jan 2003
    Location
    Hanover Germany
    Posts
    20,396

    Re: OBJ conversion?

    Quote Originally Posted by eriger777 View Post
    However, the person who originally made the lua script is no longer around.
    In that case I can onlz sorry...
    Victor Nijegorodov

Tags for this Thread

Posting Permissions

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





Click Here to Expand Forum to Full Width

Featured