User talk:Eddy Stryker/XNA Sculptpreview

From Second Life Wiki
Revision as of 00:52, 2 November 2008 by SOb Zemlja (talk | contribs)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

Hey, I've made a modified version -- Strife Onizuka 14:53, 6 May 2007 (PDT)
Changes:

  • Rotate a model for easier viewing (independent of the camera, hack).
  • Reworked the camera to be more like that of SL
  • Reworked the pole calculation (it is done independent of LOD)
  • Added LOD changing, it's done by resizing the sculpt image.
  • Added a LOD slider
  • Rearranged things to better facilitate LOD changing (could be done better).

Download


Awesome Strife, I'm going to look it over today and hopefully upload this latest version to my site as well. Thanks for picking up the slack where I left off! Eddy Stryker 11:50, 10 May 2007 (PDT)

I dunno if that is such a good idea. I did some ugly/bad things in the code. One of the areas that has been giving me constant problems has been the 'Create the indices' section, there is something wrong with that section (and I don't fully grok what it is doing so it is hard for me to fix it), I get array bounds errors on odd sized maps. I'd really like it if all the information I'm writing to the window title were written into the rendering space. The resizing code is a hack (couldn't figure out how to do it in XNA). And I don't know how to get it to resize the rendering space so it maintains the aspect ratio on the model. <.< I done bad things in the name of functionality. -- Strife Onizuka 15:38, 10 May 2007 (PDT)
Just remembered, to rotate the mesh not using the camera (the darn camera suffers from gimbal lock), I couldn't figure out how I was supposed to rotate an object so I modified how the points were read. -- Strife Onizuka 15:50, 10 May 2007 (PDT)
I'm thinking that the next step is to add events so the interface can auto-update when variables change (menu & slider stuff). *uploads the latest version* -- Strife Onizuka 15:45, 10 May 2007 (PDT)

Looking for an Algorithm to export .obj ?

You might find this Thread very helpful.  :)

You can skip the stuff that i wrote, but Michael Gibson knows how to do it.

He wrote Rhino and MoI. -- User:Cindy Crabgrass

He totally lost me with the "barycentric coordinates" (would help if I knew what that meant. That thread is a great read. I'm thinking about extending this further to be an editor too (and later I'll probably write a previewer for Paint.net based on this). -- Strife Onizuka 06:48, 10 May 2007 (PDT)

The constraints of his algorithm make it a non-starter for what I am looking at. Specifically "I should mention that this algorithm only works for certain conditions - your object should be made up of just one single surface, not multiple surfaces (like a cube has 6 surfaces in it normally, this won't work. You have to create a special cube that is made up of just one surface instead)." Eddy Stryker 11:49, 10 May 2007 (PDT)


Updated version -- SOb Zemlja 07:52, 2 November 2008 (UTC)

Download