|
|
Help Needed: Maya Script Conversion
About Truespace Archives
These pages are a copy of the official truespace forums prior to their removal somewhere around 2011.
They are retained here for archive purposes only.
Help Needed: Maya Script Conversion // Archive: Tech Forum
Post by AndrewFL // May 19, 2007, 2:52am
|
AndrewFL
Total Posts: 2
|
I contacted Caligari Technical Support yesterday and ended up speaking with Roman Ormandy about a new development feature being added to the online world Second Life. They have added support for "sculpted prims", which in its first iteration are shapes made from a NURBS sphere.
The background information about them is here:
http://wiki.secondlife.com/wiki/Sculpted_Prims
The way they implement them is unusual, however. It requires creating a special 64X64 RGB map texture to define the shape. They are similar to normal maps, except they encode surface positions instead of surface normales.
http://wiki.secondlife.com/w/images/a/ad/Sculpt-apple1.jpg
The above image produces an apple shape when applied to a special prim in Second Life.
So far, the main available options for creating these maps are Maya and Blender, with a few other programs (Wings 3d, 3d Studio, Zbrush) also supported. I contacted Caligari to find out if there was any way to create these types of maps in Truespace, since it has such excellent scripting and modelling support. Roman had me send the Maya export script to him to have his developers look at it, and also suggested that the forums were filled with incredible users who could probably create something equivalent very quickly.
This is also a tremendous opportunity for Truespace, as it is positioned within price reach of the type of developers who would be looking for a strong 3d tool to create this content for Second Life, and don't want to use the horrific Blender or pay thousands for Maya. In addition, the forthcoming BVH export support for 7.5 will make it a viable tool to use for animations for Second Life as well.
Here is the link to the script, which is too long to post:
http://wiki.secondlife.com/wiki/LlSculpt_mel
Thank you for any help you can provide, and sorry for the long post as my intro to these forums :)
-- Andrew |
Post by Johny // May 19, 2007, 7:18am
|
Johny
Total Posts: 672
|
Visit this thread (http://forums1.caligari.com/truespace/showthread.php?p=34427#post34427) for import Sculpt texture image to trueSpace7.5. ;) |
Post by AndrewFL // May 19, 2007, 8:43am
|
AndrewFL
Total Posts: 2
|
Visit this thread (http://forums1.caligari.com/truespace/showthread.php?p=34427#post34427) for import Sculpt texture image to trueSpace7.5. ;)
Thank you for that link - however, I need to go the other direction - I need to be able to export from Truespace and have it create the correct sculpt texture. |
Post by Johny // May 22, 2007, 1:56am
|
Johny
Total Posts: 672
|
I think its possible with current tS if we have access to tS's srink_wrap_uv tool internal variable (like set it reslution 64x64 (or 128x128) & read its coordinat values). But as I know we don't. :D
Bellow screen capture of the tool in action. as you can see with this tool its possible. (ops Norm not alowed me to attach avi file - so I compress it inside rar file) |
Post by clintonman // May 22, 2007, 5:11pm
|
clintonman
Total Posts: 304
|
That's really neat. I think the lightwave method might be the easiest approach to the problem.
http://wiki.secondlife.com/wiki/User:Patchouli_Woollahra/Lightwave_Sculptie_Rendering
I think I'll see if I can come up with something, wish me luck.
Clinton |
Post by mrbones // May 22, 2007, 6:30pm
|
mrbones
Total Posts: 1280
|
Good Luck Clinton,
Cheers |
Post by Johny // May 22, 2007, 8:52pm
|
Johny
Total Posts: 672
|
Good luck clintonman :) |
Post by clintonman // May 24, 2007, 6:30pm
|
clintonman
Total Posts: 304
|
It's done!:jumpy:
It's designed for truespace7.5(it was created with 751 beta but i think it's ok)
The object has to be a 64x64 mesh for 4096 vertices.
It has to live within the xyz 0 to 1 space.
Load the llsculpt generator in to link editor, select the mesh object and push the button. Then select the llsculpt object and right click in a library and save it as a bmp.
I've included a realtime directx material that can be applied to the mesh for a preview. It works best with little or no lighting.
You can use the nurbscage plugin to convert nurbs object to a mesh.
http://home.mindspring.com/~clintonr/MyTruespace/nurbs/nurbs.html
A nurbs plane resolution 21 and a sphere with lat and longitude of 21 will result in a 64x64 vertices mesh with the nurbscage plugin.
I'll give a more complete writeup later. I've only tested a polygon mesh(flattened), a converted nurbs plane and a converted nurbs sphere using a free colorless llsculpt viewer.
Clinton |
Post by Johny // May 24, 2007, 7:30pm
|
Johny
Total Posts: 672
|
here's the link for the my exporter version :D (http://forums1.caligari.com/truespace/showthread.php?t=3023)
Thanks Clinton, just download your version. I'll look on it soon.
<edit>Hey so many plugin on your web site :), I just added your web site to my Bookmarks :D </edit> ;) |
Post by archeus // May 28, 2007, 9:36am
|
archeus
Total Posts: 1
|
It's done!:jumpy:
Great! :) But excuse my noobish but any chance you can write a tutorial for people starting off? I'd love to get some stuff going into SL. |
|