Welcome Guest ( Log In | Register ) Rules · Search

 
Reply to this topicStart new topic
OBJ0A wobbledata... whats the format?
making a heat haze effect for my new ghz....
This topic is a question worth 2 points.
Lips2k8
post Wednesday 17th February 2010, 9:04 pm
Post #1


* * * 

Group: Member
Posts: 120
Joined: 14th November 2008
From: Wolverhampton UK
Member No.: 580
Points: 2




As the title says I am trying to make a heat haze effect using the lz ripple deformation code - its really quite simple but looks really effective however I want to Experiment a little more and was wondering if anybody knows/understands how the format of the wobble data works? I will post the wobbledata code for easy referance...

CODE
Obj0A_WobbleData:
        dc.b 0, 0, 0, 0, 0, 0,    1, 1, 1, 1, 1, 2, 2, 2,    2, 2, 2
        dc.b 2,    3, 3, 3, 3, 3, 3, 3, 3,    3, 3, 3, 3, 3, 3, 4, 3
        dc.b 3,    3, 3, 3, 3, 3, 3, 3, 3,    3, 3, 3, 3, 2, 2, 2, 2
        dc.b 2,    2, 2, 1, 1, 1, 1, 1, 0,    0, 0, 0, 0, 0, -1, -1
        dc.b -1, -1, -1, -2, -2, -2, -2, -2, -3, -3, -3, -3, -3
        dc.b -3, -3, -4, -4, -4, -4, -4, -4, -4, -4, -4, -4, -4
        dc.b -4, -4, -4, -4, -4, -4, -4, -4, -4, -4, -4, -4, -4
        dc.b -4, -4, -4, -4, -4, -3, -3, -3, -3, -3, -3, -3, -2
        dc.b -2, -2, -2, -2, -1, -1, -1, -1, -1
        dc.b 0, 0, 0, 0, 0, 0,    1, 1, 1, 1, 1, 2, 2, 2,    2, 2, 2
        dc.b 2,    3, 3, 3, 3, 3, 3, 3, 3,    3, 3, 3, 3, 3, 3, 4, 3
        dc.b 3,    3, 3, 3, 3, 3, 3, 3, 3,    3, 3, 3, 3, 2, 2, 2, 2
        dc.b 2,    2, 2, 1, 1, 1, 1, 1, 0,    0, 0, 0, 0, 0, -1, -1
        dc.b -1, -1, -1, -2, -2, -2, -2, -2, -3, -3, -3, -3, -3
        dc.b -3, -3, -4, -4, -4, -4, -4, -4, -4, -4, -4, -4, -4
        dc.b -4, -4, -4, -4, -4, -4, -4, -4, -4, -4, -4, -4, -4
        dc.b -4, -4, -4, -4, -4, -3, -3, -3, -3, -3, -3, -3, -2
        dc.b -2, -2, -2, -2, -1, -1, -1, -1, -1


--------------------
Sonic The Headgehog Redemption - has merged with...
Sonic Expedition 32X.
Go to the top of the page
 
+Quote Post
SpirituInsanum
post Wednesday 17th February 2010, 9:44 pm
Post #2
* 

Group: Member
Posts: 46
Joined: 11th February 2010
Member No.: 1,059
Points: 4




Well, that's easy: 0 means 0 pixel, 1 means one pixel, -1 means -1 pixel, etc.

There's one value per line, so the first 6 lines aren't shifted, the next fives move 1 pixel right, the next 7, 2 pixels right, etc.

If I remember correctly, negative values can be replaced by their hex value (-1=FF, -2=FE, etc).

The code of the first background of sandopolis may be interesting for your heat haze effect as well.

This post has been edited by SpirituInsanum: Wednesday 17th February 2010, 9:45 pm
Go to the top of the page
 
+Quote Post
Lips2k8
post Wednesday 17th February 2010, 10:20 pm
Post #3


* * * 

Group: Member
Posts: 120
Joined: 14th November 2008
From: Wolverhampton UK
Member No.: 580
Points: 2




QUOTE (SpirituInsanum @ Wednesday 17th February 2010, 9:44 pm) *
Well, that's easy: 0 means 0 pixel, 1 means one pixel, -1 means -1 pixel, etc.

There's one value per line, so the first 6 lines aren't shifted, the next fives move 1 pixel right, the next 7, 2 pixels right, etc.

If I remember correctly, negative values can be replaced by their hex value (-1=FF, -2=FE, etc).

The code of the first background of sandopolis may be interesting for your heat haze effect as well.


Awesome - thank you... I have made a seperate data file so that my lz wobble and my ghz wobble are different.


--------------------
Sonic The Headgehog Redemption - has merged with...
Sonic Expedition 32X.
Go to the top of the page
 
+Quote Post

Reply to this topicStart new topic
1 User(s) are reading this topic (1 Guests and 0 Anonymous Users)
0 Members:

 

RSS Lo-Fi Version Time is now: 9th September 2010 - 12:07 pm