Before updating to Windows 10 you may need to return your Pro license. More information here

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?


more ▼

asked May 01, 2010 at 09:21 PM

avatar image

peter lu
6 6 4 8

(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, 2010 at 10:04 AM

avatar image

10.2k 28 74 133

(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



Answers and Comments



asked: May 01, 2010 at 09:21 PM

Seen: 2179 times

Last Updated: May 01, 2010 at 09:21 PM