Q
quasist
Guest
Could marble be a spinning ball with animal? At least player's one? Or it is a complete stupid idea?
Heh, everybody who pre-orders gets their avatar on their own custom marble!quasist said:Could marble be a spinning ball with animal? At least player's one? Or it is a complete stupid idea?
Dzz said:As I had envisioned the game prior to starting (such visions never survive intact, but still), there would be sections of a track where (because of obstacles, tight turns or other reasons) the marbles would have to roll slowly -- to give a contrast between slow movement and giddy roller-coaster-like movement. However, you're right that at high speed the way they are drawn is probably not the best because the texture flickers instead of blurring. That's an issue for later but it's an important one, because the player will have their own marble spinning fast right in the middle of their view for most of the game, so that should look decent.fusion_power said:Impressive marble effects for a GP2X, very nice.
Your method looks superb, maybe to good for just a quick racing game. :lol: For max. performance, maybe the spheres could be less round and while high-speed rolling, a more simple animation method could be used. In a fast racing game, the marbles would spin very fast, so you don't see a rotating texture, just blurring or light effects like fading light hue and brightness and so on at the surface of the marble. And what is not seen, is not needed to be animated I think. The "cheapest" way would be a non rotating sphere with a "looped" little texture animation at the surface - not calculated in real time, just something, that gives the effect of a fast spinning marble. maybe in combination with light effects. This could come in handy, when the marble spins very fast. With low speed, your detailed method could be used. -Just an Idea to save processor Power....maybe... ^^
Just have different versions of your textures that would be more or less motion-blurred and in game use them depending on the speed of the ball
Dzz said:Heh, everybody who pre-orders gets their avatar on their own custom marble!quasist said:Could marble be a spinning ball with animal? At least player's one? Or it is a complete stupid idea?
Edited to add: just a joke, this is not a commercial game
If I pre-order now can I have a cube instead of a sphere ?
:lol:
Yeah, that might work, thanks! The problem is that the marbles roll at arbitrary orientations and in arbitrary directions so the blurring should be different, but it might be helpful to just blur the texture in a general way. I'll give it a try sometime in the future unless a better idea occurs.A_SN said:Just have different versions of your textures that would be more or less motion-blurred and in game use them depending on the speed of the ball
rokdcasbah said:wouldn't the bit of track just under the ball (closest to the camera) need to be blurred as much as the the marble itself? or the "middle" of the marble, since the marble wouldn't blur evenly. assuming it's moving forward in the Z direction with camera following, i think a YZ cross-section dead center will have the fastest linear speed, and the ends will have the least.
obviously your method of calculating each point would take care of that, but my point is that it might look a little strange if the ball blurred but not the track.
I'm sure, the Track also will be blurred or gets a texture that look good enough for slow and fast speed....or track textures also change when speed increases. The blurr of the ball is not because of his movement but because of his fast rotating and spinning.
Maybe, speed-boost fields on the track could give the marbles a lightning tail and the balls don't spin anymore but fly over a straight piece of track - would be the cheapest way to fake speed without much Ball-animation I think.
Oh, and will the game have variable camera angles? maybe, when jumping over a free, empty space in the track layout, the Cam could move more over the marble and we see the endless space under the marbles...
heart attack moments when we see, how close the balls are at the abyss :lol: A racetrack in free space has it's advantages.
Dzz said:Yeah, that might work, thanks! The problem is that the marbles roll at arbitrary orientations and in arbitrary directions so the blurring should be different, but it might be helpful to just blur the texture in a general way. I'll give it a try sometime in the future unless a better idea occurs.A_SN said:Just have different versions of your textures that would be more or less motion-blurred and in game use them depending on the speed of the ball
Well, have different versions of your texture depending on the orientation of the rotation! Make your calculations based on how much RAM you case use for that, and see if you can interpolate those different versions for more smoothness. I think blurring the whole thing is a terribly bad idea. A preferable solution to the cheap solution of blurring the whole texure would be to just as cheaply motion blur the texture and to make sure it always goes in the direction the ball goes.
QUOTE
Ideally, here's what I'd LIKE to do: For a particular rendering, compute the rotation matrix at both the start and end of the timeframe, which provides starting and ending texture coordinates for the point. Sample the line in the texture that connects those coordinates, and average the samples. Unfortunately, that will be far too slow. Even just doing just two or three samples (say, each endpoint and the midpoint between them) will be too expensive.
haha, yeah, nah, it's almost like convolution.
Alas, since the orientation of the rotation is arbitrary, the "versions" would have to uniformly sample a half sphere, which would probably end up being a lot. Plus, one blurred texture only corresponds to a particular speed. I could imagine as many as 16 textures per marble being acceptable, but not much more than that.A_SN said:Well, have different versions of your texture depending on the orientation of the rotation!
If you think blur + sharp = half blurry then you got it wrong. But it might be better if you blend with a few different speeds, I'd say 4 might suffice..Dzz said:Thinking on it a bit more, it might be good enough to make high-speed motion blur textures for a representative set of orientations and blend one of them with the normal texture proportionally as speed increases... I'll try something like that as one of the options. I'm still amused by this sub-piece of the development so I don't mind dawdling on the marbles for a while yet.
Dzz said:Well I haven't tested any blur options yet, but in case anybody is interested to see what the issue is, here's a version of the marble program with a maximum rotational speed that is about what I expect will be needed for the rolling distance to match the tracks:
http://www.dzzgames.com/nr5.gpe
Yupp, I see, what you mean. The Speed itself is ok but without motion blur its not looking "real" somehow.
But the movement is nice and fast, now the Marbles have a mass, "feels" very good.
Would it be possible to do a quick dirty (self running) demo where you can roll a marble along a track + the space -background? I would like to see, how the marbles will look in their game environment.
Dzz said:Well I haven't tested any blur options yet, but in case anybody is interested to see what the issue is, here's a version of the marble program with a maximum rotational speed that is about what I expect will be needed for the rolling distance to match the tracks:
http://www.dzzgames.com/nr5.gpe
Cool stuff, but you know what would help make it cooler, besides motion blur? Pre-rendered anti-aliased alpha!