PDA

View Full Version : HPC Animations in UIs



SilentJacket
December 6th, 2012, 02:04 PM
I was wondering, is it possible to have animations in a custom CE UI?
Could you do it using Opensauce?

What I need to do specifically:

-MC and Arby breathing animations
-covenant carriers glassing while moving
-flying banshees

If not, is there anyway to fake it?

Zeph
December 6th, 2012, 02:29 PM
what part of any of that actually has to do with the ui again?

EagerYoungSpaceCadet
December 6th, 2012, 02:44 PM
I think he means the main menu. IIRC you can't have anything in the background but a static BSP (the camera can move though), I guess he wants to add other things to it?

SilentJacket
December 6th, 2012, 02:44 PM
A friend of mine is making an H3 UI, and I am wondering if it is possible to do animations in them, or fake it if it is impossible.

Ki11a_FTW
December 6th, 2012, 03:26 PM
I was actually wondering the same thing but haven't got to it yet. The glassing thing could probably be done with animated textures though.

Ki11a_FTW
December 6th, 2012, 10:28 PM
The Halo uses animated textures.

Con
December 7th, 2012, 01:42 AM
I'm pretty sure it's not possible conventionally, and I don't know any alternatives.

Kirby_422
December 8th, 2012, 10:26 PM
Hmm, this shows how much I've checked modacity this week lol, I posted this over on halomaps earlier this week (Actually, on the day this thread was made lol).

http://www.youtube.com/watch?v=mHxhNg69ZTI

It's all about thinking about the requirement halo has for displaying animations, that both UI maps do not follow. Then, the script command used to avoid that requirement. (I'd like people to at least take a few guesses before I outright state what I did lol)

Con
December 11th, 2012, 05:30 PM
Oh, actually now I seem to remember someone saying device_machines could be animated or something via scripts. Would that only work to move objects around? Would you be able to do complex animations (like the breathing animations OP asked about) on bipeds turned into devices somehow?

Kirby_422
December 11th, 2012, 08:41 PM
I was just using a device as an example (because I apparently don't have any standard animated scenery laying about.. not even a freaking h2 teleporter where it just sits there spinning.. srs? I don't even have a h2tele laying about?.. I am disappointed in myself)

It should be fine for everything, although I don't think it likes units. I was gonna use elites originally, and it exceptioned. I'll do more tests on units I guess.

Also, nobodies guessing at what I did yet, rawr. It's a PVS camera I'm using. The reason animations don't play in UI's is because there is no player; that's the requirement for playing animations. If you flycam into another cluster in SP, the things wont move. if you have a sync room in MP in another cluster, it wont activate, etc. So, the same answer to both of those things is the answer to UIs; the pvs camera commands.

Con
December 11th, 2012, 09:36 PM
It's not really helping OP if you're making us guess how you made these animate.

Kirby_422
December 12th, 2012, 11:16 PM
... read the post directly above yours. I expressed my displeasure that nobody even cared to think with the clues I gave them, and then told the solution, and explained the reasoning.. How is that not helping them?

Kornman00
December 14th, 2012, 10:35 AM
If someone uploads a simple UI map with an object that's suppose to be animating, I can try a patch via OS which ignores whether or not the player can see the object.

Kornman00
December 17th, 2012, 02:39 PM
So I take it then that no one really cares about this?

Zeph
December 17th, 2012, 03:48 PM
So I take it then that no one really cares about this?
Just take any bsp, switch the type from multiplayer/singleplayer to UI and drop a warthog into the scene.
If a warthog's wheels/turret don't run into an exception, then drop an ai in.

Kornman00
December 17th, 2012, 03:57 PM
I don't care enough to build the test case myself, it was only an offer for the community. If someone wants to possibly see a hack to make animations in the mainmenu work in OS 3.1, someone will need to create the test environment and upload it. Else, I have more important things to do.

Siliconmaster
December 17th, 2012, 10:34 PM
E5Q7CcINC8M

Too busy :(

BobtheGreatII
December 17th, 2012, 10:50 PM
So I threw a hog in to my tutorial map, with everything deleted but game points and a camera and a single warthog. It seemed to start alright, flashed the UI for a second and crashed. In that split second I saw the hog sitting there. So I dunno if that means anything. I'm still goofing with it.

BobtheGreatII
December 17th, 2012, 11:51 PM
D-Double post. So I did a double check to make sure that I could compile a UI without anything, and sure enough I could. So when I threw the hog in, it gathered exception. So I tried an elite too, and it crashed. So anyway, here's the map with only the hog in it and include is my dump file.

https://docs.google.com/open?id=0B7FWWPtWWL3XdWExYjM2YTI4QTA

Kornman00
December 18th, 2012, 03:28 PM
When building a cache file for a mainmenu scenario, tool deletes the elements for the falling damage and material definitions blocks in the game globals. It also removes the unit reference in the player information block. So the test case can't be done with a vehicle right now, it would have to be done with something that doesn't require information from the falling damage block (so anything not a vehicle, and probably anything not a biped). A device shouldn't cause it to exception.

BobtheGreatII
December 18th, 2012, 08:25 PM
Okay, so I put together another UI that has a device machine of the hazard light from the PoA. And the H2 teleporter that spins and is scenery. The scenery animates but the device machine does not.

Kornman00
December 18th, 2012, 10:12 PM
Yeah, the device machine would only animate between position/power changes. If the scenery animates, what's everyone's problem with animations in the mainmenu?

Ki11a_FTW
December 18th, 2012, 10:39 PM
I dont think it does animate.. a long time ago i tried making a UI with banshees and what not flying around with scenery objects but the scenery wouldent animate. You sure it's not the shader you're thinking about bob?

BobtheGreatII
December 18th, 2012, 11:35 PM
Nope you're totally right. It wasn't animating. I just figured cause it looked like it was spinning. I put something else in there that does spin and it won't move.

Kornman00
December 19th, 2012, 10:47 AM
Well can you upload the map so I can test this patch?

BobtheGreatII
December 19th, 2012, 02:34 PM
Here:

https://docs.google.com/open?id=0B7FWWPtWWL3XVTU4cjR3VkNIdFE

The white thing in the middle should spin. Also my music is jacked, but whatever.

Kornman00
January 3rd, 2013, 09:37 AM
So I got those two objects to start spinning.

Basically, I just removed the checks in the game's objects update function where it determines if an object is within a player's PVS, which allows the object to become active.

There are other things which use the player PVS (actors, effects, etc). However, I I'll just stick to letting objects become active and update instead of all the other junk for now.

Hopefully I can include a new project_yellow flag for this in 3.1. Basically a "game updates ignore player pvs hack (mainmenu only)" flag. So it'd have to be set for this to work, and it would have to be a mainmenu scenario.

Ki11a_FTW
January 5th, 2013, 12:12 AM
I would be very happy if this is included with the final build of OS 3.1.

BobtheGreatII
January 5th, 2013, 04:40 AM
Very sweet!

Siliconmaster
January 8th, 2013, 12:30 PM
So to be clear the current fix allows scenery or devices to animate, but not vehicles and AI?

Kornman00
January 8th, 2013, 01:07 PM
It allows any game object to perform whatever behavior it can do when it's 'active' (eg, animate). There are no plans to support effects or AI which need to be in a player's PVS before they're marked active.

Siliconmaster
January 8th, 2013, 01:16 PM
Ah, I see. Cool.

JackRabbit72380
April 5th, 2013, 06:11 AM
So was this included in OS 3.1 and if so how can I use it to make a new mainmenu.map? or I should ask how do I set the flag.

Kornman00
April 5th, 2013, 07:41 AM
I'm pretty sure you should be using the object_pvs_* script functions (which are stock). However, there's a project_yellow flag called "game updates ignore player pvs" which only works in mainmenu scenarios, and disables the object code which activate/deactivates objects in/out of the player's pvs