  | | | Dir3d-l Digest, Vol 8, Issue 22 | Dir3d-l Digest, Vol 8, Issue 22 2004-01-16 - By dir3d-l-request@(protected)
Back Send Dir3d-l mailing list submissions to dir3d-l@(protected)
To subscribe or unsubscribe via the World Wide Web, visit http://nuttybar.drama.uga.edu/mailman/listinfo/dir3d-l or, via email, send a message with subject or body 'help' to dir3d-l-request@(protected)
You can reach the person managing the list at dir3d-l-owner@(protected)
When replying, please edit your Subject line so it is more specific than "Re: Contents of Dir3d-l digest..."
Today's Topics:
1. Re: Grassball (Neto) 2. Re: Grassball (Neto) 3. RE: Windoze and my evil little cursor (Allen Partridge) 4. myNewBitmap = new (#bitmap) giving a crash, any ideas? (Drew Parker) 5. Re: Windoze and my evil little cursor (Daniel Isenhower) 6. Re: myNewBitmap = new (#bitmap) giving a crash, any ideas? (Mark Hill) 7. Re: myNewBitmap = new (#bitmap) giving a crash, any ideas? (Drew Parker) 8. Re: myNewBitmap = new (#bitmap) giving a crash, any ideas? (Dave Mennenoh) 9. Re: myNewBitmap = new (#bitmap) giving a crash, any ideas? (Alex da Franca) 10. Re: myNewBitmap = new (#bitmap) giving a crash, any ideas? (Drew Parker) 11. question (David Keel)
-- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- --
Message: 1 Date: Thu, 15 Jan 2004 14:22:42 -0300 From: "Neto" <neto@(protected)> Subject: Re: [Dir3d-l] Grassball To: <dir3d-l@(protected)> Message-ID: <001f01c3db8c$2ec5b880$1501b2aa@(protected)> Content-Type: text/plain; charset="iso-8859 (See http://iso-8859.ora-code.com)-1"
> one tiny thing though, i'd set the resolution of the sphere resource > down to 8-10.. it'll speed up a lot as at current you're pushing 25k+ > polygons.
I totally forgot that the default sphere has a little too much polygons :)
-- -- Original Message -- -- From: "toxi" <toxi@(protected)> To: <dir3d-l@(protected)> Sent: Thursday, January 15, 2004 8:09 AM Subject: Re: [Dir3d-l] Grassball
> Neto wrote: > > > Little demo of the infamous "fur rendering". > > ..and it looks famously in-cre-di-bil� ;) definitely basis for some > further experimentation... > > one tiny thing though, i'd set the resolution of the sphere resource > down to 8-10.. it'll speed up a lot as at current you're pushing 25k+ > polygons. > > best, toxi. > -- > http://www.toxi.co.uk > > > __ ____ ____ ____ ____ ____ ____ ____ ____ ____ > Dir3d-l mailing list > Dir3d-l@(protected) > http://nuttybar.drama.uga.edu/mailman/listinfo/dir3d-l >
-- ---- ---- ---- ---- ---- --
Message: 2 Date: Thu, 15 Jan 2004 14:35:42 -0300 From: "Neto" <neto@(protected)> Subject: Re: [Dir3d-l] Grassball To: <dir3d-l@(protected)> Message-ID: <004901c3db8d$ffc0e850$1501b2aa@(protected)> Content-Type: text/plain; charset="iso-8859 (See http://iso-8859.ora-code.com)-1"
> Excellent! Thanks for the code too, been playing around with it... <g> > > > Dave
No problem.
This trick is pretty brute-force (and, surprisingly, it's exactly like the "offical" fur rendering works, minus the dynamic surface generation and resolution LOD). I think the only reason "fur rendering" only became more known recently is the fact that GF3+ and Radeon8000+ cards got a good speed boost at drawing blended polygons. Having so many overlayed semi-transparent objects can surely hog a GF2.
But it's a very nice thing to use with demos. As example, replace the green texture with a full white one with a few spaced out visible circles in the alpha channel, and remove the UV waving code, and you'll have a glowing sphere.
-- -- Original Message -- -- From: "Dave Mennenoh" <dmennenoh@(protected)> To: <dir3d-l@(protected)> Sent: Thursday, January 15, 2004 11:08 AM Subject: Re: [Dir3d-l] Grassball
> Excellent! Thanks for the code too, been playing around with it... <g> > > > Dave > http://www.blurredistinction.com/director > > __ ____ ____ ____ ____ ____ ____ ____ ____ ____ > Dir3d-l mailing list > Dir3d-l@(protected) > http://nuttybar.drama.uga.edu/mailman/listinfo/dir3d-l >
-- ---- ---- ---- ---- ---- --
Message: 3 Date: Thu, 15 Jan 2004 13:02:23 -0500 From: "Allen Partridge" <partridge@(protected)> Subject: RE: [Dir3d-l] Windoze and my evil little cursor To: <dir3d-l@(protected)> Message-ID: <000f01c3db91$bab43920$d1fea8c0@(protected)> Content-Type: text/plain; charset="us-ascii"
I don't have a different mouse -- but I'm going to try to dig something up and run the test again. -- So far nobody else on list has chimed in saying they are using the IBM optical mice -- so I'm presuming them guilty until they are proven innocent.
--al
-- --Original Message-- -- From: dir3d-l-bounces@(protected) [mailto:dir3d-l-bounces@(protected)] On Behalf Of Dave Mennenoh Sent: Thursday, January 15, 2004 9:07 AM To: dir3d-l@(protected) Subject: Re: [Dir3d-l] Windoze and my evil little cursor
Hi guys, been following this as I think it's quite interesting, if not bizzare. I did a little test to Allen, probably just like NC's and got no difference in fps depending on the cursor position. Also no difference if the cursor was invisible. Running XP Pro here... You did mention you are using IBM optical miceon both machines... do you possibly have a different mouse you could use? Or did you try that already? What video cards? Strange, strange, strange...
Dave http://www.blurredistinction.com/director
__ ____ ____ ____ ____ ____ ____ ____ ____ ____ Dir3d-l mailing list Dir3d-l@(protected) http://nuttybar.drama.uga.edu/mailman/listinfo/dir3d-l
-- ---- ---- ---- ---- ---- --
Message: 4 Date: Thu, 15 Jan 2004 13:09:51 -0500 From: "Drew Parker" <aparker_uncg@(protected)> Subject: [Dir3d-l] myNewBitmap = new (#bitmap) giving a crash, any ideas? To: <dir3d-l@(protected)> Message-ID: <Law9-OE31QD5cuF5Mxd00010185@(protected)> Content-Type: text/plain; charset="iso-8859 (See http://iso-8859.ora-code.com)-1"
Okay, I came across a problem I haven't come up against before, and I was hoping one of the kind people on this director list could give me some advice. :)
I'm trying to dynamically create a bitmap, so as to create a "tooltip", or text-overlay when the mouse goes over a certain model. Before trying to put the code straight into my bigger application, I started with a small test application (I usually like to do this for simplicities sake). The code worked fine, but when I moved it into my larger application, it totally crashes Director. Here's the code I'm using:
myNewBitmap = new (#bitmap) -- ( this works fine in a simple Director movie)
However, running that line from within a script in my other, larger project, is giving me this error and causing it to crash: Object expected me.init()
I haven't worked with dynamic bitmaps much, so I'm unfamiliar with them. I have a couple of Director reference books and have been looking around on the internet a lot, but haven't gotten to the source of the problem yet. Any ideas?
Thanks, - Drew
-- ---- ---- ---- ---- ---- --
Message: 5 Date: Thu, 15 Jan 2004 12:17:59 -0600 From: "Daniel Isenhower" <jml@(protected)> Subject: Re: [Dir3d-l] Windoze and my evil little cursor To: <dir3d-l@(protected)> Message-ID: <008e01c3db93$e86a4560$5501a8c0@(protected)> Content-Type: text/plain; charset="iso-8859 (See http://iso-8859.ora-code.com)-1"
> I don't have a different mouse -- but I'm going to try to dig something > up and run the test again. -- So far nobody else on list has chimed in > saying they are using the IBM optical mice -- so I'm presuming them > guilty until they are proven innocent.
Does it have special software that runs with it?
-Daniel www.somedumbsite.com www.triinfinite.net
-- ---- ---- ---- ---- ---- --
Message: 6 Date: Fri, 16 Jan 2004 05:29:46 +1100 From: Mark Hill <mantis@(protected)> Subject: Re: [Dir3d-l] myNewBitmap = new (#bitmap) giving a crash, any ideas? To: dir3d-l@(protected) Message-ID: <CBC3383A-4788-11D8-AB9F-000A279126E0@(protected)> Content-Type: text/plain; charset=US-ASCII; format=flowed
On 16/01/2004, at 5:09 AM, Drew Parker wrote:
> However, running that line from within a script in my other, larger > project, > is giving me this error and causing it to crash: > Object expected > me.init()
Check your script types... you probably have a movie script with an on new() handler in it... change the script-type to a parent script and it may fix things.
HTH :)
Mark Hill xonko interactive http://www.xonko.com
-- ---- ---- ---- ---- ---- --
Message: 7 Date: Thu, 15 Jan 2004 13:50:15 -0500 From: "Drew Parker" <aparker_uncg@(protected)> Subject: Re: [Dir3d-l] myNewBitmap = new (#bitmap) giving a crash, any ideas? To: <dir3d-l@(protected)> Message-ID: <LAW9-OE23ou2VythhOj0001006d@(protected)> Content-Type: text/plain; charset="iso-8859 (See http://iso-8859.ora-code.com)-1"
Thanks for the suggestion Mark.
I checked the script type of the script calling the new (#bitmap) line, and it is a parent script, actually. I tried switching it to movie just for kicks and that didn't work either. :)
The script does have a on new() handler already, to initialize itself. One suggestion I found on the internet for this problem was to make a dummy script, call that from my current script, and in the dummy script have the new (#bitmap) line. I'll try it to see if it works, but it seems like there's got to be a better way then that?
- Drew
-- -- Original Message -- -- From: "Mark Hill" <mantis@(protected)> To: <dir3d-l@(protected)> Sent: Thursday, January 15, 2004 1:29 PM Subject: Re: [Dir3d-l] myNewBitmap = new (#bitmap) giving a crash, any ideas?
> On 16/01/2004, at 5:09 AM, Drew Parker wrote: > > > However, running that line from within a script in my other, larger > > project, > > is giving me this error and causing it to crash: > > Object expected > > me.init() > > Check your script types... you probably have a movie script with an on > new() handler in it... change the script-type to a parent script and it > may fix things. > > HTH :) > > Mark Hill > xonko interactive > http://www.xonko.com > > __ ____ ____ ____ ____ ____ ____ ____ ____ ____ > Dir3d-l mailing list > Dir3d-l@(protected) > http://nuttybar.drama.uga.edu/mailman/listinfo/dir3d-l >
-- ---- ---- ---- ---- ---- --
Message: 8 Date: Thu, 15 Jan 2004 12:59:37 -0600 From: "Dave Mennenoh" <dmennenoh@(protected)> Subject: Re: [Dir3d-l] myNewBitmap = new (#bitmap) giving a crash, any ideas? To: <dir3d-l@(protected)> Message-ID: <07e401c3db99$b94b60b0$6401a8c0@(protected)> Content-Type: text/plain; charset="iso-8859 (See http://iso-8859.ora-code.com)-1"
Are you making a new member? If so then
myNewBitmap = member(new(#bitmap))
might work better. If you're just wanting an image object then
myNewBitmap = image(width, height, depth)
might be a good choice.
Dave http://www.blurredistinction.com/director
-- ---- ---- ---- ---- ---- --
Message: 9 Date: Thu, 15 Jan 2004 20:39:40 +0100 From: Alex da Franca <da.Franca@(protected)> Subject: Re: [Dir3d-l] myNewBitmap = new (#bitmap) giving a crash, any ideas? To: dir3d-l@(protected) Message-ID: <p0600200bbc2c99c64823@[62.158.89.85]> Content-Type: text/plain; charset="iso-8859 (See http://iso-8859.ora-code.com)-1" ; format="flowed"
At 13:50 Uhr -0500 15.01.2004, Drew Parker wrote: >Thanks for the suggestion Mark. > >I checked the script type of the script calling the new (#bitmap) line, and >it is a parent script, actually. I tried switching it to movie just for >kicks and that didn't work either. :)
you got mark wrong. he wasn't saying, that to check the script with the new(#bitmap) line, but rather all your scripts in the movie. one of your scripts is pretended to be a parent script with a private new() handler, but mistankenly its scripttype is set to #movie instead of #parent. now its new() handler catches the new(#bitmap) since it is in a movie script and therefore treated 'global'. since it doesn't return a bitmap member, as you expect, you get the error.
> >The script does have a on new() handler already, to initialize itself. One >suggestion I found on the internet for this problem was to make a dummy >script, call that from my current script, and in the dummy script have the >new (#bitmap) line.
that's a funny suggestion, where did you find it ? in any case it won't solve your problem.
try this instead:
on correctScriptTypes repeat with m = the number of castlibs down to 1 repeat with n = the number of members of castlib m down to 1 if member(n,m).type = #script then if (script(member(n,m)).handlers()).getPos(#new) > 0 then if member(n,m).scripttype = #movie then put "Changed"&&member(n,m)&&"scripttype from #movie to #parent" member(n,m).scripttype = #parent end if end if end if end repeat end repeat end
--
||| a�ex --
-- ---- ---- ---- ---- ---- --
Message: 10 Date: Thu, 15 Jan 2004 15:19:47 -0500 From: "Drew Parker" <aparker_uncg@(protected)> Subject: Re: [Dir3d-l] myNewBitmap = new (#bitmap) giving a crash, any ideas? To: <dir3d-l@(protected)> Message-ID: <LAW9-OE55vRFL1VSfxT000101d9@(protected)> Content-Type: text/plain; charset="iso-8859 (See http://iso-8859.ora-code.com)-1"
Thanks a lot Mark, Dave and Alex for trying to help me solve my problem!
It seems like had nailed the original problem, my scripts not all being parent scripts, and the code snippet Alex posted worked like a charm. Bravo! Now my programming is still crashing, of course, but not for those reasons. :) But I think I can wrap my head around my current problems.
I came from doing C / C++ to Director's Lingo, so while on the surface the general concepts are similiar in terms of programming, it looks like I still need to learn a lot about how Director operates under the hood and why it operates that way. Thanks again to everybody for the good suggestions.
It's great to see a list so active and read. I've been reading for a while, and I just posted my question and now it's solved in a few hours... pretty handy. I'll try to give back to the community with some answers of my own, if any questions come up that I can answer. :)
- Drew
-- -- Original Message -- -- From: "Alex da Franca" <da.Franca@(protected)> To: <dir3d-l@(protected)> Sent: Thursday, January 15, 2004 2:39 PM Subject: Re: [Dir3d-l] myNewBitmap = new (#bitmap) giving a crash, any ideas?
> At 13:50 Uhr -0500 15.01.2004, Drew Parker wrote: > >Thanks for the suggestion Mark. > > > >I checked the script type of the script calling the new (#bitmap) line, and > >it is a parent script, actually. I tried switching it to movie just for > >kicks and that didn't work either. :) > > you got mark wrong. > he wasn't saying, that to check the script with > the new(#bitmap) line, but rather all your > scripts in the movie. > one of your scripts is pretended to be a parent > script with a private new() handler, but > mistankenly its scripttype is set to #movie > instead of #parent. now its new() handler catches > the new(#bitmap) since it is in a movie script > and therefore treated 'global'. since it doesn't > return a bitmap member, as you expect, you get > the error. > > > > >The script does have a on new() handler already, to initialize itself. One > >suggestion I found on the internet for this problem was to make a dummy > >script, call that from my current script, and in the dummy script have the > >new (#bitmap) line. > > that's a funny suggestion, where did you find it ? > in any case it won't solve your problem. > > try this instead: > > on correctScriptTypes > repeat with m = the number of castlibs down to 1 > repeat with n = the number of members of castlib m down to 1 > if member(n,m).type = #script then > if (script(member(n,m)).handlers()).getPos(#new) > 0 then > if member(n,m).scripttype = #movie then > put "Changed"&&member(n,m)&&"scripttype from #movie to #parent" > member(n,m).scripttype = #parent > end if > end if > end if > end repeat > end repeat > end > > -- > > ||| > a�ex > -- > > __ ____ ____ ____ ____ ____ ____ ____ ____ ____ > Dir3d-l mailing list > Dir3d-l@(protected) > http://nuttybar.drama.uga.edu/mailman/listinfo/dir3d-l >
-- ---- ---- ---- ---- ---- --
Message: 11 Date: Fri, 16 Jan 2004 05:41:14 +0000 From: "David Keel" <davidkeel007@(protected)> Subject: [Dir3d-l] question To: dir3d-l@(protected) Message-ID: <Sea2-F11l95Dqo7Oofe00011a1c@(protected)> Content-Type: text/plain; format=flowed
Does anybody know how they made the water/ocean in the game Halo? It's quite impressive, especialy on the beach. I've been messing around with this fur code, and it has got me wondering if this might be an angle....
__ ____ ____ ____ ____ ____ ____ ____ ____ ____ ____ ____ ____ __ Check out the new MSN 9 Dial-up � fast & reliable Internet access with prime features! http://join.msn.com/?pgmarket=en-us&page=dialup/home&ST=1
-- ---- ---- ---- ---- ---- --
__ ____ ____ ____ ____ ____ ____ ____ ____ ____ Dir3d-l mailing list Dir3d-l@(protected) http://nuttybar.drama.uga.edu/mailman/listinfo/dir3d-l
End of Dir3d-l Digest, Vol 8, Issue 22 **************************************
|
|
 |