Scripts / decal wobbles

Author
Message
GubbyBlips
2
Years of Service
User Offline
Joined: 14th Jan 2019
Location:
Posted: 19th Aug 2021 05:19 Edited at: 19th Aug 2021 16:01
(edit-not decals), animated objects. All I want to do is rotate them a little bit (always rotating) but for some strange reason they wobble madly when rotating. (changed - inherent @ animation?)

I tried isimmobile = yes/ isimmobile = no
SetRotation and ResetRotation,
Physics off/ Physics on, I put it up in the sky instead of the ground. Nothing stops the wobble!
These may be actual objects and not fully decals?? So I still try both CollisionOff/ CollisionOn

////////// Edit... It really seems like the wobble is part of the animation, (slow and steady when still) but with rotation the wobble becomes an extreme nuisance so I'll still ask about it just for the heck of it.
Here's a quick test script to see if anyone has better luck?
------------------------------
rot = {}
function rotate_decal_init(e)
rot[e] = 0
end

function rotate_decal_main(e)
CollisionOff(e)
SetRotation(e, 0, rot[e], 0)
ResetRotation(e, 0, rot[e], 0)
rot[e] = rot[e] + 1
end

Easy to make a normal decal from these?
PM
smallg
Community Leader
15
Years of Service
User Offline
Joined: 8th Dec 2005
Location:
Posted: 19th Aug 2021 11:16
not sure i understand what you are really trying to achieve here, decals are flat objects which are supposed to be always rotated towards the camera... making them "spin" on the Y should really be done by adjusting the sprite sheet rather than rotating the decal itself.
but yes it sounds like the sprite sheet has some wobble in the animation so you would be best to open that and try center each frame
p.s. spine or spriter are good programs for adjusting 2D images like they were 3D and saving out to sprite sheets
lua guide for GG
https://steamcommunity.com/sharedfiles/filedetails/?id=398177770
windows 10
i5 @4ghz, 8gb ram, AMD R9 200 series , directx 11
GubbyBlips
2
Years of Service
User Offline
Joined: 14th Jan 2019
Location:
Posted: 19th Aug 2021 16:01
Thanks. Will take a closer look.
PM
smallg
Community Leader
15
Years of Service
User Offline
Joined: 8th Dec 2005
Location:
Posted: 19th Aug 2021 16:33
btw you didn't actually say which decal it is that you are attempting to use (there's quite a few in the scifi pack)
lua guide for GG
https://steamcommunity.com/sharedfiles/filedetails/?id=398177770
windows 10
i5 @4ghz, 8gb ram, AMD R9 200 series , directx 11
GubbyBlips
2
Years of Service
User Offline
Joined: 14th Jan 2019
Location:
Posted: 20th Aug 2021 21:27
@smallg
"didn't actually say which decal it is that you are attempting to use"
Actually I originally did, but later edited it out. SciFi "liquid" folder assets, which may
not be actual decals, but some alien hybrid experiment gone crazy if you rotate them!

If you can find out how to rotate them (horizontally) 'Y' without wobble, I would be very happy.
Maybe that behavior is just intrinsic to it's shader?
PM
smallg
Community Leader
15
Years of Service
User Offline
Joined: 8th Dec 2005
Location:
Posted: 21st Aug 2021 17:45 Edited at: 21st Aug 2021 17:48
yep they're not decals and the wobble is caused by the effect of the shader because it is set to look like it is rising and falling.. if you remove the effect it will no longer wobble (but it will not scroll) so depending on what you are going for you will need to adjust the effect in the fpe
edit: if you still want it to scroll you can use
effect = effectbank\reloaded\effect_scroll.fx
instead of the wave.fx
(can make a clone and adjust the speed if it's too slow)
lua guide for GG
https://steamcommunity.com/sharedfiles/filedetails/?id=398177770
windows 10
i5 @4ghz, 8gb ram, AMD R9 200 series , directx 11

Login to post a reply

Server time is: 2021-11-27 11:42:53
Your offset time is: 2021-11-27 11:42:53