Posted by: Micha Jan 29 2007, 02:11 AM
I'm
trying to create a tessellate function for Object3D. Faces seem to
disappear when the camera is to close and the face is too large.
How do I change a corner of a face to use another point index?
or
How do I delete a face altogether so I can recreate it using alternate indexes?
or
What other options do I have to prevent faces from disappearing?
Thanks
Posted by: kiroukou Jan 29 2007, 08:04 AM
Hi,
The reason why the 1.2 doesn't come out, it is because I'm working in such feature 
Look at the frsutum clipping. I've something almost working, need more time and tests to be completely debug.
Basically
you must have a plane equation, and find the intersection of the face
on the plane. Often it creates some extra points.
If you are motivated, you can help me to develop this feature
Posted by: Micha Jan 29 2007, 10:33 AM
Hi Kiroukou,
Thanks for your reply.
I'm
not a 3D Math genius. I have no idea how to code plane-plane
intersections. In the past I've always relied on geniuses such as
yourself 
However
this clipping "issue" is quite acceptable, as long if the faces are
small enough. I'm happy to share the tessellate function when it's
done. Which *should* be a good workaround for the time being.
While
reading the source of Object3D.as I've found _aFaces as a private
property, can I make this public and delete elements without breaking
some of the internals of Sandy? By now, I know I need to call
"setModified(true)" when I make changes to faces or points directly.
Anything else I need to watch out for?
Posted by: kiroukou Jan 29 2007, 11:16 AM
I recommend you to start with the 1.2 BETA which already has the Afaces array public 
Posted by: Micha Jan 29 2007, 11:14 PM
QUOTE(kiroukou @ Jan 29 2007, 12:16 PM)

I recommend you to start with the 1.2 BETA which already has the Afaces array public

I'd like that, but I'm having serious problems getting sandy to work with Flash 9 Studio (the AS3 preview).
I get these errors:
CODE
Object3D.as : Line 38, Column 35 : [Compiler] Error #1017: The definition of base class Leaf was not found.
class sandy.core.Object3D extends Leaf
ReferenceError: Error #1065: Variable slide is not defined.
ReferenceError: Error #1065: Variable Timeline0_8a36286eea4dc4da07ce56a1649760 is not defined.
I've tried to run it in Flash 8, but that doesn't work also. (surprise surprise

)
How are you compiling AS3?
I hope this works with FlashDevelop
Posted by: kiroukou Jan 30 2007, 07:45 AM
Everything is compiled in MTASC.
I know there's a little issue with flash 8 (no errors, but nothing display).
It should be good now, and soon the new version come out as release candidate.
Strange error BTW....
Posted by: Micha Jan 30 2007, 08:37 PM
QUOTE(kiroukou @ Jan 30 2007, 08:45 AM)

Everything is compiled in MTASC.
I know there's a little issue with flash 8 (no errors, but nothing display).
It should be good now, and soon the new version come out as release candidate.
Strange error BTW....
In that case, I should give all the Flash 8 errors. The strange error from my previous post is because of Flash 9.
CODE
**Error** TriFace3D.as: Line 200: Type mismatch.
( _bV ) ? _s.begin( this, mc ) : _sb.begin( this, mc );
**Error** TriFace3D.as: Line 206: Type mismatch.
( _bV ) ? _s.end( this, mc ) : _sb.end( this, mc );
**Error** TriFace3D.as: Line 215: Type mismatch.
( _bV ) ? _s.begin(
this, _mc ) : _sb.begin( this, _mc );
**Error** TriFace3D.as: Line 220: Type mismatch.
( _bV ) ? _s.end( this, _mc ) : _sb.end( this, _mc );
Total ActionScript Errors: 4 Reported Errors: 4
Skin.begin() and Skin.end() wants IPolygon, not Face
When I replace
CODE
class sandy.core.face.TriFace3D implements Face
with
CODE
class sandy.core.face.TriFace3D extends Polygon
These errors goes away, but nothing shows.
(I'm using the latest SVN version, Dec 26 '06)
Posted by: kiroukou Jan 30 2007, 10:04 PM
Oups maybe that SVN version wasn't stable...
But a new one is coming! Meanwhile you can try the 1.2 BETA on the download room here
Posted by: Micha Jan 31 2007, 03:29 PM
QUOTE(kiroukou @ Jan 30 2007, 11:04 PM)

Oups maybe that SVN version wasn't stable...
But a new one is coming! Meanwhile you can try the 1.2 BETA on the download room here

Works like a charm!
Your help is greatly appreciated, Kiroukou!