Welcome to the Second Life Forums Archive

These forums are CLOSED. Please visit the new forums HERE

Sculpty exporter for Wings 3D

Watts Larsson
Registered User
Join date: 12 May 2007
Posts: 1
06-27-2007 11:50
From: Omei Turnbull
Check your Wings version (Help/About). It needs to be 0.98.36, because version 0.98.32a had a different interface for plugins.

If that's not it, then I'm stumped, too.


I hve a fesh copy of wings 0.98.36 and cleared all old stuff off my mac intel duo core laptop runnning OS10.4, in exporting a selected cube (or a sphere), I get a "Exporter crashed:badarith message, if there any help for me?
Omei Turnbull
Registered User
Join date: 19 Jun 2005
Posts: 577
06-27-2007 13:03
From: Watts Larsson
I hve a fesh copy of wings 0.98.36 and cleared all old stuff off my mac intel duo core laptop runnning OS10.4, in exporting a selected cube (or a sphere), I get a "Exporter crashed:badarith message, if there any help for me?
If you'll save your model as a Wings file and post it here along the whole error message you get, I'll see whether I can reproduce it under Windows.
IAm Zabelin
Registered User
Join date: 13 May 2007
Posts: 132
06-27-2007 13:03
From: Omei Turnbull
No matter who does it, you're going to end up with a "boxed sphere" in the sense that you'l still have two poles with 8, 16, 32 or 64 meridians coming together. .....

I say post your cube for those who haven't yet mastered even that. Maybe that will inspire someone else to contribute an improved version or new shapes.


Yeah, I see what you're getting at : I thought it was just better modeling skills to correct it.

I see Pumpkin Hoorenbeek published a cube - his is better than mine - he has better face distribution so I won't post mine - that'll be going backwards :). Thanks Pumpkin, I'll grab yours too.

I guess it's possible with patience and good skills (not me :)) to move all the vertexes to change the curved lines to square lines (about the poles too - ie boxes not rings) - that may offer quite a bit more.
Omei Turnbull
Registered User
Join date: 19 Jun 2005
Posts: 577
06-27-2007 16:34
From: Watts Larsson
I hve a fesh copy of wings 0.98.36 and cleared all old stuff off my mac intel duo core laptop runnning OS10.4, in exporting a selected cube (or a sphere), I get a "Exporter crashed:badarith message, if there any help for me?
Watts, I just discovered that in the most recent version of the exporter, the intended "Unsupported Mesh" message isn't getting displayed if you attempt to export an unsupported model size. If you are new to the exporter, there's a good chance that is your problem. Check the restrictions on the first post of this thread.
Omei Turnbull
Registered User
Join date: 19 Jun 2005
Posts: 577
Wings exporter for new sculpty topologies
06-27-2007 18:29
In the true spirit of sculpty development (i.e. releasing things in dribs and drabs), here is an initial Wings exporter for the new sculpties. Note that it only exports. It doesn't import.:( Furthermore, I haven't provided a way to create compatible models.:( But trust me, it exports perfectly!:)

What I have done is provide two sample Wings models, a 32x31 cylinder and a 32x32, derived from Hypatia's obj files. (Updated: I added a 31x31 plane, with no UV map) Next thing on my list is to write some Wings commands to generate compatible models of the new types.

Don't be surprised when you import a cylinder into SL and then can only see the surface facing you. Based on the way Qarl has done sculpties, this is according to plan.

A note to first-time users of the Wings exporter. Please use the released version on the first post of this thread, not this one.
Lee Ponzu
What Would Steve Do?
Join date: 28 Jun 2006
Posts: 1,770
06-27-2007 19:16
I have made boxes like that, too. I am sure that an algorithm could do a better job. Plus, you could set parameters, like how many loops to put on the top and the bottom, or how many verticals to put near the edges. Another approach would be to put the shpere's north and south pole at opposite corners.

I know, I know. I should do it. I would if I didn't have three kids in college 8-)
Lee Ponzu
What Would Steve Do?
Join date: 28 Jun 2006
Posts: 1,770
06-27-2007 19:17
by the way...

This might be the longest thread ever that is not a flame...
Lee Ponzu
What Would Steve Do?
Join date: 28 Jun 2006
Posts: 1,770
06-27-2007 19:21
Omei, are you saying this new wpc_sculpty is the old one, PLUS is can export the new topologies? Or does it *only* do the new ones?
Omei Turnbull
Registered User
Join date: 19 Jun 2005
Posts: 577
06-27-2007 19:40
Its the old one, PLUS export support for the new topologies, PLUS any bugs I may have introduced while working on creating UV maps during import.
Omei Turnbull
Registered User
Join date: 19 Jun 2005
Posts: 577
06-27-2007 19:53
From: Lee Ponzu
I have made boxes like that, too. I am sure that an algorithm could do a better job. Plus, you could set parameters, like how many loops to put on the top and the bottom, or how many verticals to put near the edges. Another approach would be to put the shpere's north and south pole at opposite corners.
I agree. But in the larger scheme of things, how much leverage would that really give a builder? I'm not against it; it just seems like there are other more pressing sculpty issues I could be addressing. Someone who knows nothing about Wings or Erlang, but just some math, could write a separate app to create all kinds of things like that as bitmaps that you could then import into Wings.
Summer Logan
Registered User
Join date: 4 Jan 2006
Posts: 13
Plugin Problems.
06-28-2007 10:08
Okies so I downloaded the Wings3D from the SL wiki and then as I looked threw some documentation it said something about a plugin I get from this post...So I downloaded the one at the beginning of the post and unzipped in put it in the directory which was told. opened Wings3D and installed the plugin (said it was installed sucessfully) restarted Wings3D an Secondlife Sculpty isn't in the export list.

I have Window XP Home Edition
Another other information you need let me know and I give cause I just wanna get this working so I can make sculptys

Edit: My Wings3D verison number is 0.98.32a And also I took out all the other plugins from the folder and now they don't show up on the list and STILL niether does the secondlife one (which I kept in folder)
Ghanie Lane
Registered User
Join date: 20 Feb 2007
Posts: 58
06-28-2007 16:02
Ok, I did make sure I have the most recent version of wings. I placed the .beam file (from the first thread) into the export/import folder.

Wings has been restarted a few times. But I don't see the import or export options in the menu.

Thoughts?

I tried the gimp one also but same problem; menu options aren't changing or updating despite my many restarts.

(using Windows XP by the way)
Omei Turnbull
Registered User
Join date: 19 Jun 2005
Posts: 577
06-28-2007 17:01
Ghanie, if you really mean you can't find the import/export options, they are in the File menu.

If that's not your problem, you can try:

1) Try Help/About and double check the version number is 0.98.36.
2) Try using the File/Import plugin command, and then restart Wings.

If none of those clear things up, I'm stuck.
Hypatia Callisto
metadea
Join date: 8 Feb 2006
Posts: 793
06-29-2007 01:13
here's the new topologies with uvmaps :)

something I want to point out, I'm seeing odd lines on the sculptie map on the new topologies - the map usually should be totally smooth. (unless you want a sharp edge, of course) I have a baked map from Carrara to show the difference - same model in both instances.
_____________________
... perhaps simplicity is complicated to grasp.
Omei Turnbull
Registered User
Join date: 19 Jun 2005
Posts: 577
06-29-2007 07:58
Thank you, Hypatia. :)

The "lines" in the sculpty map from the exporter are there on purpose. These are 128x128 bitmaps, so only one of every 64 pixels is going to be used once it gets into SL. My testing suggested that replicating the pixel value 64 times was the most effective way tp reduce JPEG compression artifacts on the one pixel that really matters. Have you found otherwise?

Hopefully, Qarl will find the time sooner, rather than later, to adjust the JPEG 2000 parameters on sculpty-sized textures, and this issue will go away.
Hypatia Callisto
metadea
Join date: 8 Feb 2006
Posts: 793
06-29-2007 08:21
From: Omei Turnbull
Thank you, Hypatia. :)

The "lines" in the sculpty map from the exporter are there on purpose. These are 128x128 bitmaps, so only one of every 64 pixels is going to be used once it gets into SL. My testing suggested that replicating the pixel value 64 times was the most effective way tp reduce JPEG compression artifacts on the one pixel that really matters. Have you found otherwise?

Hopefully, Qarl will find the time sooner, rather than later, to adjust the JPEG 2000 parameters on sculpty-sized textures, and this issue will go away.


ahhh ok! I understand now. Yeah, I've been wanting uncompressed textures for a while... sigh.
_____________________
... perhaps simplicity is complicated to grasp.
RShara Eilde
Registered User
Join date: 29 Jun 2007
Posts: 19
06-29-2007 10:33
I've been following all the tutorials in this thread. Thank you so much to everyone for all their hard work.

Unfortunately, no matter what I do, I seem to have a missing slice in my export. I've tried with the default 32x31 sphere (create, export, upload), and the 32x31 Cylinder for the updated exporter, and they all have the same problem.

Anyone know what's going on?
Pumpkin Hoorenbeek
Registered User
Join date: 5 May 2007
Posts: 15
06-29-2007 10:39
I noticed that exact same issue myself, but if you actually upload it, the slice is not missing in world.

Here is a side by side comparison of the preview, and then in world shot.
Hypatia Callisto
metadea
Join date: 8 Feb 2006
Posts: 793
06-29-2007 12:36
thanks, I'll take a look at that - originally the cylinder was made in a different program, probably better if its made in wings then uvmapped. I'll provide one made that way. :)

edit - scratch what I said above - never mind - I see now what you mean, it's SL's viewer being odd. :) Duh... my scattered brain. I didn't see an issue with the model before but I see what it is now :)
_____________________
... perhaps simplicity is complicated to grasp.
Justin Slade
Registered User
Join date: 6 Feb 2007
Posts: 132
Thanks
06-30-2007 19:29
What I have done is provide two sample Wings models, a 32x31 cylinder and a 32x32, derived from Hypatia's obj files. (Updated: I added a 31x31 plane, with no UV map) Next thing on my list is to write some Wings commands to generate compatible models of the new types.

Don't be surprised when you import a cylinder into SL and then can only see the surface facing you. Based on the way Qarl has done sculpties, this is according to plan.


__________________________________________________________________________


Thanks Omei, haven't been here for awhile, working on wings projects. Never go tihs in my email, But hey Thanks for you work. This is going to excelerate my modeling many times over.

I guess I have to keep checking here for more of your updates

Justin
Poledra Behemoth
Prim'n'Pixel Punisher
Join date: 27 Jan 2005
Posts: 55
06-30-2007 23:27
Finally I have found someone who has had the same problem.

From: Eadoin Welles
I installed version 0.98.36 of Wings 3D and version 053107 of exporter. I did the following: imported the 6463sphere sample and tried to export as a BMP. The exporter crashed. Here is the message:

Exporter crashed: function_clause
[{lists,nth,[1,]]},
{wpc_sculpty,'-similarFsLoop/3-lc$^0/1-0-',4},
{wpc_sculpty,'-similarFsLoop/3-lc$^0/1-0-',4},
{wpc_sculpty,similarFsLoop,3},
{wings_export,export,4},
{wings_file,'-export_filename/2-fun-0-',3},
{wp8_file,file_dialog_event,1}]

I also tried to sculpt the sphere to create a pot. I did and exported. Now, surprisingly, the exporter did not crashed, but the file created does not seems a BMP file and, by the way, its size is 1x6916. What I did wrong? Please, note that I was able to reproduce this behaviour every time.


From: Omei Turnbull
Eadoin, the stack trace shows that you are somehow using Strife's version of the exporter, not the 053107 version from the first post of this thread. I'm not sure whether Strife is planning on maintaining his.



Omei, I got this error too, and I know I downloaded your version from the first post. Everything I did to fix it has been mentioned in previous posts, and I still got the error. I even went as far as uninstalling and deleting all traces of Wings and the exporter, downloaded and reinstalled everything, doublechecked all the steps and still got the error.
I watched the tutorial video, and the only thing I did differently in Wings was cut away half the sphere. I am a novice dabbling in Wings or any 3D software for that matter, so if I have just answered my own question of what I did wrong, please don't think me too silly :)

Keep up the good work people, it is amazing to see what is being created and developed.
Justin Slade
Registered User
Join date: 6 Feb 2007
Posts: 132
Constraints
07-01-2007 06:58
Omei,

With these new objects, is there still the same constraints?
move, scale, rotate, slide.

Also, you had instructions on going to the windows tab and using outliner. Does that also work for these?

Thanks again
Justin

This has just happened. I took the plane and modeled a doorway. See pic. The problem is I can't walk through it.

Are you going to triangulate these?
Omei Turnbull
Registered User
Join date: 19 Jun 2005
Posts: 577
07-01-2007 13:17
From: Poledra Behemoth
Omei, I got this error too, and I know I downloaded your version from the first post. Everything I did to fix it has been mentioned in previous posts, and I still got the error. I even went as far as uninstalling and deleting all traces of Wings and the exporter, downloaded and reinstalled everything, doublechecked all the steps and still got the error.
I watched the tutorial video, and the only thing I did differently in Wings was cut away half the sphere. I am a novice dabbling in Wings or any 3D software for that matter, so if I have just answered my own question of what I did wrong, please don't think me too silly :)

Keep up the good work people, it is amazing to see what is being created and developed.
Two things:

1) The exporter won't support cutting away half the sphere. This is undoubtedly the immediate cause of the error. See the restrictions on the first post of this page.

2) The error message shows that a function named SimilarFSLoop was in the exporter program. Only Strife's version of the exporter has a function with that name. So somehow or other, you are using his.

Everything goes wrong at first.:( Keep working and you'll get past the hump.:)
Omei Turnbull
Registered User
Join date: 19 Jun 2005
Posts: 577
07-01-2007 13:24
From: Justin Slade
Omei,

With these new objects, is there still the same constraints?
move, scale, rotate, slide.
Yes, the same contraints hold for the new topologies.

From: someone
Also, you had instructions on going to the windows tab and using outliner. Does that also work for these?
These models don't fully support using Wings as a texture previewer, yet.

From: someone
I took the plane and modeled a doorway. See pic. The problem is I can't walk through it.
That's because the physical characteristics of a sculpty don't match its visual appearance. That is, it's a limitation in SL, not the exporter.

From: someone
Are you going to triangulate these?
Yes, eventually.
Poledra Behemoth
Prim'n'Pixel Punisher
Join date: 27 Jan 2005
Posts: 55
I AM silly, but still getting error
07-01-2007 17:54
Thanks for your reply Omei, I appreciate it. Ok you can call me silly. or worse if need be :P But I am definitely using your version. I had a few minutes to spare so I opened Wings and retried saving my shape as BMP, still got an error, and after checking it against Eodion's error, I realised they were completely different. Trying to contend with a demanding, grabby 12 month old makes it difficult to spend more time reading things properly and/or remembering things :) As soon as he sees my keyboard in use he wants it.
The following should give you a better idea of my problem (I hope).


Exporter crashed: badarith
[{wpc_sculpty,makeBMP,4},
{wpc_sculpty,sculpty_export,3},
{wings_export,export,4),
{wings_file,'-export_filename/2-fun-0-',3),
{wp8_file,file_dialog_event,1),
{wings_wm,handle_event,3},
{wings_wm,send_event,2},
{wings_wm,do_dispatch,2}]


So, by the 'Exporter crashed: badarith' statement, yes it was cutting the sphere in half that was the problem. Such a bummer coz the shape I made is awsome, but I guess I will have to start again....Boohoo :(
1 ... 12 13 14 15 16 17 18 19 20 ... 32