Anim8or Community

Please login or register.

Login with username, password and session length
Advanced search  

News:

Ian Ross has just released a book on Anim8or. It's perect for a beginner and a good reference for experienced users. It contains detailed chapters on every aspect, with many examples. Get your own copy here: "Anim8or Tutorial Book"

Show Posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.

Messages - Claude

Pages: 1 ... 13 14 [15] 16 17 ... 19
211
ASL Scripts / Deleting and recreating faces.
« on: April 04, 2009, 08:10:59 pm »
Steve

Lets say you want to add a side to a few faces.
You have to store all the data of these faces:point indexes,material
indexes, etc, then delete the faces and finally recreate them.

The problem is that if you delete the last face using a material,
Anim8or removes the material from the material list.
The faces are all created,but some  end up transparent
since their material index points at a non existing material.

Would it be possible to let the responsability of cleaning up to the
script using the RemoveUnusedMaterials(void)
or the RemoveUnusedData(void) function ?

Thanks
Claude

P.S.
Small detail,the spec says:
"OpenFace() begins the definition of a new face.  It returns the index of the newly created face.  If an error occurs it returns 0 and no new face is added. "
It seems problematic that the error returns a valid index value 0 .

212
ASL Scripts / Re: PointSplit script testing
« on: April 03, 2009, 12:02:57 am »
Hi Raxx

I think I solved the left over edge problem.Good catch.

I reduced the distance and if you open the script in an editor you can adjust the distance from 0 to the middle of the 2 adjacent points.

Bye
Claude

213
ASL Scripts / Re: PointSplit script testing
« on: April 01, 2009, 02:12:28 pm »
Welcome dajean.

214
ASL Scripts / Re: ASL Scripts Database
« on: March 29, 2009, 11:47:25 pm »
Thanks.

215
ASL Scripts / PointSplit script testing
« on: March 29, 2009, 11:43:57 pm »
More than a year ago,I worked on a split point or unweld point script.
At the time,I couldn't finish it because of ASL limitations.See this post:

http://www.anim8or.com/smf/index.php?topic=121.msg629#msg629

Since,then Steve added the needed function,but I had lost the script
after a computer crash.(only one without back-up)
Finally,I decided to give it another try.

Not the most useful script,but still helpful in special cases,I think.

Would be nice if you could give it a try.Comments are welcome
especially about the new point locations.
I chose the actual one,because during testing it was easy to see the
result and also because it was easy to select the point when modelling.
Maybe,not moving it at all would be better.I'm not sure.

 * The PointSplit script allows you to split or if you prefer,unweld
 * a point.
 * If you have multiple faces sharing a point,select the point and
 * the faces you want to detach by spliting or unwelding the
 * point.
 * Run the script.
 * For each face,the new point will be moved at the center of 
 * the selected  point and the 2 two adjacent points of the face.
 *
 * The operation can be performed on multiple points and also
 * multiple meshes simultaneously.
 * If you select 2 points sharing the same edge,the result may
 * vary depending on the order the points are processed.

Thanks.
Claude

216
ASL Scripts / Re: ASL Scripts Database
« on: March 29, 2009, 02:03:25 pm »
A new one,EdgeSpin and 2 old ones still
usefull,I think.
Details in the README files.

Any reasons why they weren't  added?

Thanks.
Claude

217
ASL Scripts / Re: Question about the .an8 file format (weights {)
« on: March 20, 2009, 12:37:22 am »
It seems to me that it makes reference to the weightedby
list:

weightedby { "bone01" }            0
weightedby { "bone02" }            1
weightedby { "bone03" }            2
weights { "mesh01"

218
General Anim8or Forum / Re: File format documentation
« on: March 17, 2009, 02:52:52 pm »
We are now at version 0.97,so there's been some changes.

After a quick look,I noticed that there's nothing about painted weight
and floatkey should read like this:

<floatkey> ::= floatkey { <$int> <$float> <$float> <$float>
                                        <$string>  <$float>}

    <$int> is the frame number for this key.
    <$float> is the angle value.
    <$float> <$float> 2 factors defining the cubic interpolation curve.
    <$string> is a string used to modify the behavior of this knot.
                     C:corner S:smooth T:step or threshold
    <$float> another angle value if T:step or threshold is used.

There's probably a few more.
Claude

219
ASL Scripts / Re: Question about GetEdgeIndex() function.
« on: March 15, 2009, 11:36:34 pm »
If it could be used the way I described,to check the relative
orientation of faces,I think it should be implemented.It
would be a lot easier then calculating the normals and
testing their dot product.

I see your point about backward compatibility,but there's
2 mitigating factors:
-this function isn't normally used in export and primitive script,
 only in a limited number of command script;
-the correction seems to be easy enough:
abs(GetEdgeIndex())

Just a thought.
Hope it helps.
Claude

220
ASL Scripts / Question about GetEdgeIndex() function.
« on: March 12, 2009, 02:56:21 pm »
GetEdgeIndex() returns the index of a particular edge in a face.  The value returned can be positive or negative.  If it is negative the edge is reversed when the face is viewed with the vertices in a clockwise orientation.

If you have 2 quads sharing 1 edge and the 2 quads are facing the same way,then the function should return different result for each quad for the shared edge.One should be positive the other negative.

I thought I could use this feature to define if 2 quads sharing an edge, were facing the same way,but I'm unable to obtain any negative result.
Is it because I misunderstand how it should work or the function doesn't
work properly?

Thanks
Claude

221
ASL Scripts / Re: Export Animations
« on: February 22, 2009, 10:13:57 am »
No Patrick.It's simply not implemented yet.

222
ASL Scripts / Re: ASL Scripts Database
« on: February 20, 2009, 11:07:01 pm »
A new one,EdgeSpin and 2 old ones still
usefull,I think.
Details in the README files.

223
General Anim8or Forum / Re: XNA Animation - Per Frame Sequence Export?
« on: February 17, 2009, 04:05:16 pm »
It's impossible to write such a script at the moment,
but Anim8or allows you to export an animation as
a suite of 3DS files.Then,you would have to convert
them to X files.

You could search the net for such a converter or give a try
to the one referenced on the resource page(Conv3DS) or load them in Anim8or and use the X export script.

Don't know if it would work well,but might be worth a try?

224
General Anim8or Forum / Re: C++, DirectX3D, OpenGL and Anim8or
« on: February 15, 2009, 08:25:41 pm »
Sure it can.Check the resource page of the site.
Specially the LibAn8 link.

225
ASL Scripts / Re: Script Request: Flatten line?
« on: February 13, 2009, 10:17:17 pm »

Pages: 1 ... 13 14 [15] 16 17 ... 19