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.

Code Snippets / widget with limbs

Author
Message
indi
21
Years of Service
User Offline
Joined: 26th Aug 2002
Location: Earth, Brisbane, Australia
Posted: 21st Mar 2003 09:55
it reminds me of a puffer fish

limbs might be rotated as cool as in DBP.
but still works in DBC113


sync on
sync rate 0
make object sphere 1,2
make mesh from object 1,1
delete object 1
make object sphere 2,1.5
color object 2,rgb(255,0,0)
for i = 1 to 36
add limb 2,i,1
color limb 2,i,rgb(rnd(255),rnd(255),rnd(255))
scale limb 2,i,10,100,10
offset limb 2,i,0,0,0
rotate limb 2,i,i*10,i*10,0
rotate object 2,0,0,90
fix object pivot 2
next i
position camera 0,1,-3
point camera 0,0,0
do
y = y + 1
rotate object 2,y,y,y
rotate limb 2,1,Ly,Ly,Ly
sync
loop
indi
21
Years of Service
User Offline
Joined: 26th Aug 2002
Location: Earth, Brisbane, Australia
Posted: 21st Mar 2003 09:56
hehe oops remove this line

rotate limb 2,1,Ly,Ly,Ly

still works tho

Juso
21
Years of Service
User Offline
Joined: 23rd Sep 2002
Location: Finland
Posted: 26th Mar 2003 23:10
Hi indi,
you can also remove line

offset limb 2,i,0,0,0

it doesnt do anything with values 0,0,0
indi
21
Years of Service
User Offline
Joined: 26th Aug 2002
Location: Earth, Brisbane, Australia
Posted: 27th Mar 2003 04:11
yeah i took this from another of my snippets rather hastily

Chiwawa
21
Years of Service
User Offline
Joined: 13th Oct 2002
Location: Canada
Posted: 27th Mar 2003 06:06
and should replace:
y = y + 1
by
y = wrapvalue(y + 1)
Chiwawa
21
Years of Service
User Offline
Joined: 13th Oct 2002
Location: Canada
Posted: 27th Mar 2003 06:09 Edited at: 27th Mar 2003 06:11
and
Chiwawa
21
Years of Service
User Offline
Joined: 13th Oct 2002
Location: Canada
Posted: 27th Mar 2003 06:26
e.e.ee and these line:
rotate object 2,0,0,90
fix object pivot 2

do not change anything on the positionning of the limb......then why put this in your loop?

and...36*10=360..and your limb are double side..then you have 2 limb each place...then do a loop of 18...

hey ..and ive tried to do the same optic effect with rotate limb...but the ROTATION ORDER seem to be XYZ for the limb.. is there a way to set it to ZYX?
Chiwawa
21
Years of Service
User Offline
Joined: 13th Oct 2002
Location: Canada
Posted: 27th Mar 2003 08:04 Edited at: 27th Mar 2003 08:10
i done something ... just for fun:




i did not know exactly what i wanted to do..you can put diferent .. "movement"....but now you have control on..each point.. and you can use "ZYX rotation order" for the limb.. wich was impossible..before...

hmmm damn im..just thinking something.......if you set the object to rotation order ZYX ...limb will be ..chaged too....lol.. all that for..nothing..

i did not tested it..but...

Login to post a reply

Server time is: 2024-04-26 18:40:12
Your offset time is: 2024-04-26 18:40:12