x


Particles in screen coordinates

Hi, I want to create some meta game-space visual elements. In particular, I have some gui elements in my game that live is screen space. Underneath that, is the game space where my world is being rendered as the character moves around in it. As an event, I want these boulders (partciles) to fall from the top of screen OVER the gui elements. I want them to have basic physics relative to the screen coordinates and not the space coordinates. Is there any way to do this with the particle system?

Also, is there in general a way to make some render on top of gui elements?

Thanks.

more ▼

asked May 01 '10 at 09:21 PM

peter lu gravatar image

peter lu
6 2 2 5

(comments are locked)
10|3000 characters needed characters left

1 answer: sort newest

If you want stuff to fall across the screen with physics one option would be to set a second camera on the scene some place away from the play area, set the depth to a number higher than the main camera so that it renders over it, set the clear flag to depth only so you don't hide the main screen completely.

Now you can spawn a bunch of rocks in front of the second cam and the rocks will fall across the screen and not interact with the main play area.

(Incidental, this is also how I do minimaps)

more ▼

answered May 02 '10 at 10:04 AM

spinaljack gravatar image

spinaljack
9.7k 19 32 99

(comments are locked)
10|3000 characters needed characters left
Your answer
toggle preview:

Up to 2 attachments (including images) can be used with a maximum of 524.3 kB each and 1.0 MB total.

Follow this question

By Email:

Once you sign in you will be able to subscribe for any updates here

By RSS:

Answers

Answers and Comments

Topics:

x928
x672
x249
x144

asked: May 01 '10 at 09:21 PM

Seen: 1779 times

Last Updated: May 01 '10 at 09:21 PM