Misc. questions... Pahts, regions, physics on/off

If you feel like you're up to the challenge of building your own Ages in Blender or 3ds Max, this is the place for you!

Misc. questions... Pahts, regions, physics on/off

Postby Jojon » Tue Feb 24, 2009 10:59 am

Ok, I guess it's about time I try to set aside a few minutes to actually DO something, rather than just hang around the forum, so I thought I'd botch something together in that there Ahra Pahts shell I reserved, before it's the lone empty shell in the whole city...

My original plan for the shell was scrapped early, because it's story introduced a lot of pre-us very specific history, to Ahra -- something I'm in no position to do. The makeshift backup solution was scrapped for tecnical reasons (it was going to be a 3-player giant board game thingummy, but I never did flesh out the mechanics, nor did I get animation and physics to coexist nicely).

So, instead I'm just ripping part of a location from another age, that will never go anywhere, either and dropping it into the shell, although it doesn't really fit there. I have began expanding on its excuse for being there to a worrying degree though - turning out to probably become a good bit more work than intended - looks like I'm keeping some of the backup plan stuff for a future puzzle... :P

Right, introduction over with, here are questions:


1) The shell contents is mostly a waveset. Now, with the new-ish neat paging in and out of shells, we apparently have to put such stuff on a page that sticks around, or they won't work. I have done this, enumerating it 1000+myshellnumber, as suggested and this works well. The question is: Is this approach taken up as an Ahra Pahts official building standard, for such problems and if so; are these pages also where we'd put low LOD coulisses of our shells, along with their associated visregions?
Speaking of the paging... I suppose linking in to Ahra Pahts, to any other link-in spot than the defualt one, would make the paging script unhappy? :7

2) Some of you may remember that one guy was having problems with a footstep region only partially working, on a bridge he had made... Now, I just noticed that when a (hard) region is given bounds, it is only active when you are actually in direct contact with a boundry surface, as opposed to the inside_a_volume or entry/exit stack thing. Is this behaviour known and its use not depreciated in any way? -Because in many, of not most, cases, I believe I prefer it that way.

3) There are flags or functions, which allows you to dis/enable physics for objects apparently, which Cyan themselves allegedly uses often, to temporarily animate things, before handing them back to mother gravity. Do we have alcscript for this? Also, is there a flag for interactive collision detection somewhere, so that one might have two balls bounce off eachother, rather than pass through eachother, like ghosts?

Hmm, I'm sure I had more questions... Oh well, you could no doubt not take any more of my incoherent ramblings anyway...

Pleasant building, everyone.
Jojon
 
Posts: 1116
Joined: Sun Sep 30, 2007 5:49 am

Re: Misc. questions... Pahts, regions, physics on/off

Postby ametist » Tue Feb 24, 2009 11:22 am

I just want to say that the GoMa have a new service for Ahra Pahts developer here, you're most welcome to check it out :)
User avatar
ametist
 
Posts: 360
Joined: Fri Dec 28, 2007 6:55 am

Re: Misc. questions... Pahts, regions, physics on/off

Postby D'Lanor » Tue Feb 24, 2009 11:26 am

2) Yes, that is how footstep sounds should work in Plasma.


3) Do you want to disable the physics (collision) of the animated object in order to avoid crushing or cornering the avatar? Normally Cyan uses an XRegion for that, which bumps the avatar out of the way, but I'm not sure that has been implemented.

To disable the physics of the object I believe you can add an enablemsg to your animation script. I would have to look that up though.

Edit: Found it...
Code: Select all
            responder:
                states:
                  - cmds:
                      - type: enablemsg
                        params:
                            receivers:
                              - scnobj:<ObjectName>
                            cmds:
                              - physical
                              - disable
                        waiton: -1
                    nextstate: 1
                    waittocmd: 0
                  - cmds:
                      - type: enablemsg
                        params:
                            receivers:
                              - scnobj:<ObjectName>
                            cmds:
                              - physical
                              - enable
                        waiton: -1
                    nextstate: 0
                    waittocmd: 0
"It is in self-limitation that a master first shows himself." - Goethe
User avatar
D'Lanor
 
Posts: 1980
Joined: Sat Sep 29, 2007 4:24 am

Re: Misc. questions... Pahts, regions, physics on/off

Postby Jojon » Tue Feb 24, 2009 11:39 pm

@ametist:

Oho, I'll have to swerve by there, when I (and if) get that far, thank you. :7


@D'Lanor:

So footstep regions are *supposed* to work that way, even - great! :)

> Do you want to disable the physics (collision) of the animated object in
> order to avoid crushing or cornering the avatar? Normally Cyan uses an
> XRegion for that, which bumps the avatar out of the way, but I'm not sure
> that has been implemented.

No, just animate animate it -- for the boardgame thing, I had a lift, of sorts, that would elevate three balls from below, to the board surface, but when it started moving, it's colliders wouldn't transfer their velocity to the physics objects, which consequently fell through -- this, I learned, is normal behaviour. Next best thing: animate the balls as well, but that raised the question on how to re-enable their free movement afterwards.

Your answer and the alcscript it was presented in, is excactly what I sought; thanks D'ude. :)
Jojon
 
Posts: 1116
Joined: Sun Sep 30, 2007 5:49 am

Re: Misc. questions... Pahts, regions, physics on/off

Postby diafero » Wed Feb 25, 2009 6:31 am

Speaking of the paging... I suppose linking in to Ahra Pahts, to any other link-in spot than the defualt one, would make the paging script unhappy? :7
No, at least not the latest version - it detects your link-in point
I prefer e-mails to "diafero arcor de" (after adding the at and the dot) over PMs.

"Many people's horizon is a circle with a radius of zero. They call it their point of view."

Deep Island Shard | Offline KI
diafero
Deep Island Admin
 
Posts: 2972
Joined: Mon May 05, 2008 5:50 am
Location: Germany

Re: Misc. questions... Pahts, regions, physics on/off

Postby Jojon » Wed Feb 25, 2009 9:11 am

diafero wrote:
Speaking of the paging... I suppose linking in to Ahra Pahts, to any other link-in spot than the defualt one, would make the paging script unhappy? :7
No, at least not the latest version - it detects your link-in point


Great! This is going to save quite some time. (/me scutters off to check the docs, on whether the offline KI /link command allows one to specify a spawnpoint..)
Jojon
 
Posts: 1116
Joined: Sun Sep 30, 2007 5:49 am

Re: Misc. questions... Pahts, regions, physics on/off

Postby diafero » Wed Feb 25, 2009 10:15 am

(/me scutters off to check the docs, on whether the offline KI /link command allows one to specify a spawnpoint..)

no, currently not, you will have to create a Relto book for that, see http://diafero.bplaced.net/technical.html
I prefer e-mails to "diafero arcor de" (after adding the at and the dot) over PMs.

"Many people's horizon is a circle with a radius of zero. They call it their point of view."

Deep Island Shard | Offline KI
diafero
Deep Island Admin
 
Posts: 2972
Joined: Mon May 05, 2008 5:50 am
Location: Germany

Re: Misc. questions... Pahts, regions, physics on/off

Postby GPNMilano » Wed Feb 25, 2009 10:23 am

D'Lanor wrote:3) Do you want to disable the physics (collision) of the animated object in order to avoid crushing or cornering the avatar? Normally Cyan uses an XRegion for that, which bumps the avatar out of the way, but I'm not sure that has been implemented.



Its been implemented, I just haven't gotten around to making any updates to my contrib, as I'm still going through some half added stuff with other things, and non of the devs have talked about (at least that I know of) of putting out another version of PyPRP before the semi-mythical-hope-its-coming-soon PyPRP 2.0.
You can't stop the truth. IC Blog
User avatar
GPNMilano
 
Posts: 1155
Joined: Mon Apr 21, 2008 5:50 am

Re: Misc. questions... Pahts, regions, physics on/off

Postby Nadnerb » Wed Feb 25, 2009 11:20 am

Don't hold your breath. :P Seriously, if you have updates, I'm sure we'd all love to see them merged to the trunk as long as they don't invalidate existing tutorials. Speaking of which, do you have write access to the trunk? If not, you should definitely poke Zrax.
Image
Live KI: 34914 MOULa KI: 23247 Gehn KI: 11588 Available Ages: TunnelDemo3, BoxAge, Odema
Nadnerb
 
Posts: 1057
Joined: Fri Sep 28, 2007 8:01 pm
Location: US (Eastern Time)

Re: Misc. questions... Pahts, regions, physics on/off

Postby Jojon » Wed Feb 25, 2009 2:23 pm

diafero wrote:
(/me scutters off to check the docs, on whether the offline KI /link command allows one to specify a spawnpoint..)

no, currently not, you will have to create a Relto book for that, see http://diafero.bplaced.net/technical.html


Figured that might be the case, but going to the bookcase is still one link and a little bit of running less, even with the short Ahra nexus run being intra-age, so I'm one happy puppy. :)


Hmm, now when a lot of you developer type cats seem to be herding around here, maybe one could pop another question... :9 Is anyone in a position to give us a rough idea on how the Havok->PhysX thing may manifest itself in pyPRP? :)
Jojon
 
Posts: 1116
Joined: Sun Sep 30, 2007 5:49 am

Next

Return to Building

Who is online

Users browsing this forum: No registered users and 3 guests

cron