Post #1 · Posted at 2024-09-17 04:45:51pm 3.9 weeks ago
I'm looking for a way to make a 3D music wheel to put on my custom theme as it should be, I want it to look like the PIU FIESTA EX (or GFDM XG wheel) because it's my favorite, I looked for some themes that have a 3D music wheel like DDR Next Generation but it crashes when I make my own music wheel
code from Next Generation:
any program to making or generate music wheel on stepmania 5?
code from Next Generation:
ItemTransformFunction=function(self,offsetFromCenter,itemIndex,numItems) \
function GetZoom(offsetFromCenter) \
if offsetFromCenter >= 1 then \
return 0.5; \
end \
if offsetFromCenter <= -1 then \
return 0.5; \
end \
if math.abs(offsetFromCenter) > 0 and math.abs(offsetFromCenter) <1 then \
return (10.0-math.abs(offsetFromCenter)*5)/10; \
else \
return 1; \
end; \
end; \
function GetDistence(offsetFromCenter) \
if offsetFromCenter >= 1 then \
return offsetFromCenter*135+5; \
end \
if offsetFromCenter <= -1 then \
return offsetFromCenter*135-5; \
end \
if math.abs(offsetFromCenter) > 0.0001 and math.abs(offsetFromCenter) <1 then \
return 135*offsetFromCenter + 5*offsetFromCenter \
else \
return 0; \
end; \
end; \
function GetRotationY(offsetFromCenter) \
if offsetFromCenter > 0.9 then \
return 64+(offsetFromCenter-0.9)*6.8; \
elseif offsetFromCenter < -0.9 then \
return -64+(offsetFromCenter+0.9)*6.8; \
else \
return offsetFromCenter*64/0.9; \
end; \
end; \
function GetRotationZ(offsetFromCenter) \
if offsetFromCenter < 0 then \
return -offsetFromCenter*0.5; \
else \
return 0; \
end; \
end; \
function GetRotationX(offsetFromCenter) \
if math.abs(offsetFromCenter) < 3.1 then \
return 0; \
else \
return 4; \
end; \
end; \
self:linear(5.8); \
self:x( GetDistence(offsetFromCenter) ); \
self:z(math.abs(offsetFromCenter) and scale(math.abs(offsetFromCenter),0,1,0.2,0)*150 or 0); \
self:rotationx( 0 );\
self:zoom(0.55);\
self:rotationy(math.atan(-offsetFromCenter)*10); \
self:rotationz( 0 ); \
end;
function GetZoom(offsetFromCenter) \
if offsetFromCenter >= 1 then \
return 0.5; \
end \
if offsetFromCenter <= -1 then \
return 0.5; \
end \
if math.abs(offsetFromCenter) > 0 and math.abs(offsetFromCenter) <1 then \
return (10.0-math.abs(offsetFromCenter)*5)/10; \
else \
return 1; \
end; \
end; \
function GetDistence(offsetFromCenter) \
if offsetFromCenter >= 1 then \
return offsetFromCenter*135+5; \
end \
if offsetFromCenter <= -1 then \
return offsetFromCenter*135-5; \
end \
if math.abs(offsetFromCenter) > 0.0001 and math.abs(offsetFromCenter) <1 then \
return 135*offsetFromCenter + 5*offsetFromCenter \
else \
return 0; \
end; \
end; \
function GetRotationY(offsetFromCenter) \
if offsetFromCenter > 0.9 then \
return 64+(offsetFromCenter-0.9)*6.8; \
elseif offsetFromCenter < -0.9 then \
return -64+(offsetFromCenter+0.9)*6.8; \
else \
return offsetFromCenter*64/0.9; \
end; \
end; \
function GetRotationZ(offsetFromCenter) \
if offsetFromCenter < 0 then \
return -offsetFromCenter*0.5; \
else \
return 0; \
end; \
end; \
function GetRotationX(offsetFromCenter) \
if math.abs(offsetFromCenter) < 3.1 then \
return 0; \
else \
return 4; \
end; \
end; \
self:linear(5.8); \
self:x( GetDistence(offsetFromCenter) ); \
self:z(math.abs(offsetFromCenter) and scale(math.abs(offsetFromCenter),0,1,0.2,0)*150 or 0); \
self:rotationx( 0 );\
self:zoom(0.55);\
self:rotationy(math.atan(-offsetFromCenter)*10); \
self:rotationz( 0 ); \
end;
any program to making or generate music wheel on stepmania 5?