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.

DarkBASIC Professional Discussion / [SOLVED] Randomize Making Objects Vanish?

Author
Message
Derek Darkly
12
Years of Service
User Offline
Joined: 22nd Sep 2011
Location: Whats Our Vector, Victor?
Posted: 1st Oct 2017 16:53 Edited at: 1st Oct 2017 16:54
I was trying to deform some spheres with the vertexdata commands, but when I randomize the seed (based on the current vertex position values) it makes all but one object disappear! If I remark out the "randomize" they are all there. This is quite the kerfuffle, however if I can't resolve it I can always load premade objects instead.

Send your parents to noisy sprite demo hell... enter the D-Zone

The author of this post has marked a post as an answer.

Go to answer

Derek Darkly
12
Years of Service
User Offline
Joined: 22nd Sep 2011
Location: Whats Our Vector, Victor?
Posted: 2nd Oct 2017 13:12 Edited at: 3rd Oct 2017 02:41
This post has been marked by the post author as the answer.
SOLVED: Duh! I forgot to re-randomize the seed after deforming. The objects weren't disappearing they were just all being put in the same place by the RND roll.

Send your parents to noisy sprite demo hell... enter the D-Zone

Login to post a reply

Server time is: 2024-04-20 07:10:18
Your offset time is: 2024-04-20 07:10:18