realbasic-games
[Top] [All Lists]

Re: Game engine test 2 (now optimized)

To: REALbasic Games <realbasic-games at lists dot realsoftware dot com>
Subject: Re: Game engine test 2 (now optimized)
From: Lo Saeteurn <realbasic at miensoftware dot com>
Date: Mon, 3 Apr 2006 21:19:44 -0700
Delivered-to: realbasic-games at lists dot realsoftware dot com
References: <C0570AEB dot 75D9%mauitom at maui dot net> <9736CA3F-67FC-46FB-9372-DC8D8D434441 at miensoftware dot com> <8FBBF71B-A8FC-4D0B-8ED9-EB66EB1AE63B at divergentmedia dot com>
I copied and paste only the DSP part of the code. Why does it work on everyone's system except his?

Are you referring to this (this is what I copied):
        if Normals <> nil AND Normals1<>NIL AND Normals2<>NIL then//
          vDSP.vintb(Normals1,0,Normals2,0,percent,Normals)
        end
        vDSP.vintb(Points1,0,Points2,0,percent,points)

Mine was (or would have been if it used DSP):
if Normals = NIL or Normals1=NIL or Normals2=NIL then// missing normals so morph only the points
          vDSP.vintb(Points1,0,Points2,0,percent,points)
        else
          //normals exist, so morph both
          vDSP.vintb(Normals1,0,Normals2,0,percent,Normals)
          vDSP.vintb(Points1,0,Points2,0,percent,points)
        end if

It is basically the same logic, except yours is more simplified than what I had. Anyone agree/disagree?


On Apr 3, 2006, at 8:58 PM, Mike Woodworth wrote:

lo, how did you re-add your old code... there was a problem with the way you branched on the existance of normals. if you kept the new logic I had, then i have no idea why... if i remember you were not testing the all possible normal memoryblocks for nil.

mike
--
Mike Woodworth
mike at divergentmedia dot com


On Apr 3, 2006, at 11:51 PM, Lo Saeteurn wrote:

Not sure why you're getting the "Problem while trying to morph, geom has to be the same". Could it be the DSP Mike help me add? Why the inconsistency? Anyone? Anyone else running it under 10.3.9?

Yes, sorry about the dialogs. I meant to change it, but haven't come around to it.



_______________________________________________
Unsubscribe or switch delivery mode:
<http://www.realsoftware.com/support/listmanager/>

Search the archives of this list here:
<http://support.realsoftware.com/listarchives/lists.html>


_______________________________________________
Unsubscribe or switch delivery mode:
<http://www.realsoftware.com/support/listmanager/>

Search the archives of this list here:
<http://support.realsoftware.com/listarchives/lists.html>


<Prev in Thread] Current Thread [Next in Thread>