Sorry your browser is not supported!

You are using an outdated browser that does not support modern web technologies, in order to use this site please update to a new browser.

Browsers supported include Chrome, FireFox, Safari, Opera, Internet Explorer 10+ or Microsoft Edge.

Newcomers DBPro Corner / Can't make particles appear behind an object

Author
Message
Jonk
19
Years of Service
User Offline
Joined: 31st Jul 2005
Location: East of Java
Posted: 11th Nov 2011 21:54
Hi I am probably doing this all wrong but basically I have a rotating cube in front of a backdrop and a Particle Emitter between the two

The idea being that I can create a Star Field effect by using the emitter command and have a rotating cube in the foreground

The only trouble is that I can't figure out how to get the particles to appear behind the cube.

They always seem to appear in front no matter what I do.

Anyway here is the code



Any ideas how to make the star field appear behind the object please?



"There are no perfect ideas only perfect intentions"
chafari
Valued Member
18
Years of Service
User Offline
Joined: 2nd May 2006
Location: Canary Islands
Posted: 12th Nov 2011 12:06
Hi Jonk. I made some test with my own images and made some changes to your code. I hope it can help .





Cheers.

I'm not a grumpy grandpa
Jonk
19
Years of Service
User Offline
Joined: 31st Jul 2005
Location: East of Java
Posted: 12th Nov 2011 17:10 Edited at: 12th Nov 2011 17:11
Thank you so Much chafari for the added code lines. My program now works great.

I can see now how the lock object on command can be useful in just such a case.

Once again many thanks.



"There are no perfect ideas only perfect intentions"

Login to post a reply

Server time is: 2024-11-22 12:05:02
Your offset time is: 2024-11-22 12:05:02