Ok, um, hard to explain. Think of when u open a custom inventory and u see the model of the unit there. Thats basically what i am trying to do, except like centered, almost like a FPS. does anyone know how to do this without projecting an invisible model in front of the camera at specific angles?
This should probably be in the UI development thread.
I would also like to see an easy way to implement this. I mean, in theory, you could do it with some needlessly complex calculations to find the point in the world that corresponds to the position on the UI, but that would be nearly impossible due to all the possible camera angles.
He means things like the achievement popup or the actual UI frame. They aren't dialogs, they're full-scale .m3 models, which stick to the player's screen instead of the world.
Just create a portrait with a trigger, hide the background, the border, make it LDR so it can go over dialogs (if you want, LDR looks worse though), if you model you chose is too big, send it actor messages to shrink it down (there is an actor from portrait function).
They use this method in Starjeweled, if you played it, did you notice the cool animated effects they use on the gameboard? Those aren't flash animations, those are portraits of 3d effects.
I would advise taking a detailed look at the default SC2Layout files that manage the exsisting UI. As has already been stated in the thread, the exsisting UI already uses 3D models that are drawn on a special UI layer. It's a little more difficult than you would like and has some restrictions. The exsisting UI models have special built in cameras so you would need some way of editing your model to incorporate one of these. Also, to my knowledge, you will have no way of animating your model beyond default "birth", "death", and "stand" animations as you have no way of sending messages to specific UI objects.
think of FPS once more. all i want to do is project a model infront of the screen (taking about 1/8th of the entire screen) that i can order to use animations. . . when i noted UI, i meant that metaphorically, as in it would appear to be part of the UI by the fact that it never moves whenever u turn ur camera
Rollback Post to RevisionRollBack
To post a comment, please login or register a new account.
Ok, um, hard to explain. Think of when u open a custom inventory and u see the model of the unit there. Thats basically what i am trying to do, except like centered, almost like a FPS. does anyone know how to do this without projecting an invisible model in front of the camera at specific angles?
You read the tutorial on the aiur chef method of UI customization?
Contribute to the wiki (Wiki button at top of page) Considered easy altering of the unit textures?
https://www.sc2mapster.com/forums/resources/tutorials/179654-data-actor-events-message-texture-select-by-id
https://media.forgecdn.net/attachments/187/40/Screenshot2011-04-17_09_16_21.jpg
@DrSuperEvil: Go
..? how will that help at all? i meant that metaphorically (whatever) i want a model to be displayed at the same screen position 24/7
This should probably be in the UI development thread.
I would also like to see an easy way to implement this. I mean, in theory, you could do it with some needlessly complex calculations to find the point in the world that corresponds to the position on the UI, but that would be nearly impossible due to all the possible camera angles.
@DrSuperEvil: Go
He means things like the achievement popup or the actual UI frame. They aren't dialogs, they're full-scale .m3 models, which stick to the player's screen instead of the world.
Just create a portrait with a trigger, hide the background, the border, make it LDR so it can go over dialogs (if you want, LDR looks worse though), if you model you chose is too big, send it actor messages to shrink it down (there is an actor from portrait function).
They use this method in Starjeweled, if you played it, did you notice the cool animated effects they use on the gameboard? Those aren't flash animations, those are portraits of 3d effects.
I would advise taking a detailed look at the default SC2Layout files that manage the exsisting UI. As has already been stated in the thread, the exsisting UI already uses 3D models that are drawn on a special UI layer. It's a little more difficult than you would like and has some restrictions. The exsisting UI models have special built in cameras so you would need some way of editing your model to incorporate one of these. Also, to my knowledge, you will have no way of animating your model beyond default "birth", "death", and "stand" animations as you have no way of sending messages to specific UI objects.
@Kalekin: Go
I guess i really fucked up the wording on this...
think of FPS once more. all i want to do is project a model infront of the screen (taking about 1/8th of the entire screen) that i can order to use animations. . . when i noted UI, i meant that metaphorically, as in it would appear to be part of the UI by the fact that it never moves whenever u turn ur camera