PRP's and Ages

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!

PRP's and Ages

Postby andylegate » Wed May 28, 2008 5:15 pm

Okay, I'm trying to wrap my small brain around this and failing of course...hehe.

We sort of discussed this in a different thread, but mostly it was about how the cameras were done.

In Gahreesen, you jump to one of the bridges leading to the Training Center building. Take the long jog to the door.

As we know, at this point upon approaching the door, the camera shifts to a 3rd person POV spot, and all control of the avie is lost. Outer door opens, avie strolls in.
Scene cut to inner door, which opens, avie strolls out and then door shuts.
Control of the Avatar is given back and camera view is switch back to whatever it was you had it.

Looking in the Python files, I can see how this is done just fine. We don't have the neat things like the "door responders" for animating the doors (all though rummor has it that the Tool Dev's are working on it, yay!), however, you can see where the camera pov is switch, avatar movement disabled, doors opened, avatar behavior to walk in, etc, etc.

Then we warp the avatar to a new point.

Nadnerb showed us how to do that part with his FlipAge, and that's really cool to warp the Avatar around.

Now...here's what I'm trying to figure out......

Where did the avatar in Gahreesen get warped to?

Obviously while the avie is outside, that would be Garrison_District_grsnExterior.prp, and then we end up in Garrison_District_grsnTrainingCenterHalls.prp

Okay......where is that? I mean if you enter flymode, while outside, and zip over to the training building, you find an empty shell.

Is it possible that the guts of the training building, etc, etc, etc, are all not being rendered while you are outside because they are seperate PRP files? If that is true, then how do you do this? Reason I ask, is that my tunnels and cavern, and all the stuff in them are on seperate "pages" or prp files, yet they all get rendered upon link in.

If that is not what is going on.....could someone who knows please explain what is going on.....?
"I'm still trying to find the plKey for Crud!"
Image
Blender Age Creation Tutorials
3DS Max Age Creation Tutorials
User avatar
andylegate
 
Posts: 2348
Joined: Mon Oct 01, 2007 7:47 am

Re: PRP's and Ages

Postby Paradox » Wed May 28, 2008 5:25 pm

The interior of Gahreesen is actually several hundred feet below the ground.

All PRP files for an Age are loaded and rendered at link in provided that they are told to load by the .age file. However, VisRegions can be used to hide geometry based on volumes. Cyan does hide parts of Gahreesen that should not be visible, simply because it reduces the strain on the engine and the rendering pipeline.
Paradox
 
Posts: 1295
Joined: Fri Sep 28, 2007 6:48 pm
Location: Canada

Re: PRP's and Ages

Postby andylegate » Wed May 28, 2008 5:40 pm

Well that's the problem then. I still can not get visregions to work no matter what I try. Nobody else is using them right now, so I can't get anyone to say, hey I got it to work, here is how.

This is what I'm doing in this pic here:

Show Spoiler


I can't get the red cube to go away. I've tried a cubic region (the pic is a plane), normals pointing one way, normals pointing anther, removing the !, putting it back in.....no mater what, the cube stays visable, period.

Sure would be nice to use visregions, as Zephyr has gotten so big, it's even starting to have an affect on performance on my system here at home.
"I'm still trying to find the plKey for Crud!"
Image
Blender Age Creation Tutorials
3DS Max Age Creation Tutorials
User avatar
andylegate
 
Posts: 2348
Joined: Mon Oct 01, 2007 7:47 am

Re: PRP's and Ages

Postby Paradox » Wed May 28, 2008 5:45 pm

Are you making a softvolume first?

You need to tell the plane that it's a softvolume before it can be used in a visRegion.
Paradox
 
Posts: 1295
Joined: Fri Sep 28, 2007 6:48 pm
Location: Canada

Re: PRP's and Ages

Postby andylegate » Wed May 28, 2008 6:00 pm

yah, that's how I create the plane in the first place, by going to Scripts>PyPRP Softvolumes>

I just imported External Gahreesen, yep, yer right. There it is plain as day....a plane, just under the Training Building.

I'm sure it's me that's doing something wrong...but what?

EDIT: Wait.....er.....hey, does the objects you want to not be rendered....when you use visregions, should the objects be on a different prp?
"I'm still trying to find the plKey for Crud!"
Image
Blender Age Creation Tutorials
3DS Max Age Creation Tutorials
User avatar
andylegate
 
Posts: 2348
Joined: Mon Oct 01, 2007 7:47 am

Re: PRP's and Ages

Postby Paradox » Wed May 28, 2008 6:15 pm

Which PRP file it is in doesn't matter at all...

Could you post the entire AlcScript as a text attachment for your Age?
Paradox
 
Posts: 1295
Joined: Fri Sep 28, 2007 6:48 pm
Location: Canada

Re: PRP's and Ages

Postby andylegate » Wed May 28, 2008 6:16 pm

Sure, hang on a sec....not much to it...you can see almost all the script in my pic above.
"I'm still trying to find the plKey for Crud!"
Image
Blender Age Creation Tutorials
3DS Max Age Creation Tutorials
User avatar
andylegate
 
Posts: 2348
Joined: Mon Oct 01, 2007 7:47 am

Re: PRP's and Ages

Postby andylegate » Wed May 28, 2008 6:20 pm

okay, here it is.....and hey, BTW.....ever since 1.4.0, when I save the script in a text file, when I open it up with Notepad, all the indents and spacing look messed up for some reason, yet I'm manually typing in my script....

Code: Select all
# insert AlcScript code here

musicsnd:
   type: soundemit
   sound:
      flags:
        - autostart
        - looping
      file: campbravo_crmusic
      volume: 1.0
      type: soundfx
         
but1clicksnd:
   type: soundemit
   sound:
      flags:
        - is3dsound
      file: cbnt_butclick
      volume: 0.5
      minfdist: 1
      maxfdist: 100
      type: ambience
         
testdoorbutton:
    logic:
        modifiers:
          - tag: DoorOpen
            cursor: poised
            flags:
              - localelement
            activators:
              - type: objectinvolume
                remote: doorclick
                triggers:
                  - any
            conditions:
              - type: activator
                activators:
                  - type: picking
              - type: objectinbox
                satisfied: true
            actions:
              - type: responder
                ref: $SoundResp
              - type: pythonfile
                ref: $DoorOpen
        actions:
          - type: pythonfile
            tag: DoorOpen
            pythonfile:
                file: Agetestdoorclick
                parameters:
                  - type: activator
                    ref: logicmod:$DoorOpen
                  - type: string
                    value: testdoorbutton
          - type: responder
            tag: SoundResp
            responder:
                states:
                  - cmds:
                      - type: soundmsg
                        params:
                            receivers:
                              - 0011:but1clicksnd
                            cmds:
                              - play
                              - setvolume
                            volume: 1
                        waiton: -1
                    nextstate: 0
                    waittocmd: 0
                curstate: 0
                flags:
                  - detect_trigger

clicksndemit:
   type: soundemit
   sound:
      flags:
        - is3dsound
      file: sonaviopower
      volume: 0.5
      minfdist: 1
      maxfdist: 100
      type: ambience

clickquick:
   physical:
      pinned: true
   quickscript:
      simpleclick:
         region: clickreg2
         soundemitter: clicksndemit
         
vistestcube:
   visual:
      visregions:
        - "!(testvisreg)"
      
"I'm still trying to find the plKey for Crud!"
Image
Blender Age Creation Tutorials
3DS Max Age Creation Tutorials
User avatar
andylegate
 
Posts: 2348
Joined: Mon Oct 01, 2007 7:47 am

Re: PRP's and Ages

Postby Paradox » Wed May 28, 2008 6:26 pm

Try...

Code: Select all
[name of softvolume plane]:
    type: softvolume
    softvolume:
      - type: convex
   
      - type: inverse
        regions:
          - softvolume:[name]

vistestcube:
    type: object
    visual:
        visregions:
          - svinvert:[name]
Paradox
 
Posts: 1295
Joined: Fri Sep 28, 2007 6:48 pm
Location: Canada

Re: PRP's and Ages

Postby andylegate » Wed May 28, 2008 6:35 pm

okay, let me give it a try
"I'm still trying to find the plKey for Crud!"
Image
Blender Age Creation Tutorials
3DS Max Age Creation Tutorials
User avatar
andylegate
 
Posts: 2348
Joined: Mon Oct 01, 2007 7:47 am

Next

Return to Building

Who is online

Users browsing this forum: No registered users and 2 guests

cron