Results 1 to 6 of 6

Thread: Triangulation via the SDK.

  1. #1
    Registered User Bigboy's Avatar
    Join Date
    Apr 2003
    Location
    Scotland [Dundee]
    Posts
    155

    Triangulation via the SDK.

    Im writing an exporter for my own graphics engine, and I want to write out triangle lists. This is fine except when the poly has >3 points.

    LW has a great tripple feature, and I want to tripple my model internal to the exporter.

    Can you do this so that the model itself doesn't tripple once exporting is finished? And if so.... how?

    In other words... can I triangulate via the SDK using LW's built in tripple functions, without corrupting the model Im exporting.
    http://www.mikedailly.com
    http://www.dmadesign.org

  2. #2
    I am sorry I cannot help, I just want to add that I am also interested in a solution to this problem as I have a couple of plugin ideas in mind which would require a triangulated object for the sake of computations, but once the plugin is done, the object should remain untriangulated.

    I hope someone will provide us with ideas. I though about using a copy of an object on a separate layer, triangulate it there and delete after I'm done. I haven't tried that. Let's hope we'll hear from experts

  3. #3
    Registered User Bigboy's Avatar
    Join Date
    Apr 2003
    Location
    Scotland [Dundee]
    Posts
    155
    I did get a method working.

    I issue a TRIPPLE command, export... then issue an undo. Works fine, but Ive never used an UNDO in this way before... scares me a little!

    inside the sdk theres a modeler lib, tripple and undo commands can be found there.
    http://www.mikedailly.com
    http://www.dmadesign.org

  4. #4
    Why not copy the model to a new layer, triple that, and delete the layer when you're done?

  5. #5
    Worms no more! Free fun! Dodgy's Avatar
    Join Date
    Feb 2003
    Location
    Sydney
    Posts
    8,274
    I use undo a lot

    I do all my operations, then copy, then undo back to the start of my operations and paste... Then the user only has to deal with one undo to undo your lscript
    Push the software, don't let it push YOU!
    My own plugins and work:www.mikegreen.name
    LaptopSetup:corei7 2.4GHz nvidia GT 650M 8Gig win8 64
    WorkSetup:core i7 3.4Ghz nvidia Quadro 2000 12Gig Ram Win7

  6. #6
    Registered User Bigboy's Avatar
    Join Date
    Apr 2003
    Location
    Scotland [Dundee]
    Posts
    155
    Quote Originally Posted by JSensebe
    Why not copy the model to a new layer, triple that, and delete the layer when you're done?
    If your dealing with huge models, then that could be much slower since it has to copy all the data as well as triangulating.

    UNDO seems quite quick...
    http://www.mikedailly.com
    http://www.dmadesign.org

Bookmarks

Posting Permissions

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