| |
Heaven Account closed
Registered: Jul 2008 Posts: 102 |
Rotating City with EOR
Hi guys,
I am from the evil side but some of you might know me from IRC or formatwar.net.
One of my dreams since Amiga days was to code a nice 3d rotating city landscape like this:
http://www.youtube.com/watch?v=wDzw_5apRiM
5:20 ff.
I went into the code there and there is not much magic going on except that the whole rotation is precalculated. the draw routine is only drawing the top of the skyscrapers and then it is drawn down via long unrolled EOR code block.
the Zoom in and zoom out is precalculated, too.
Any c64 examples of such an effect and how are you doing that? charmode? multiplexed sprites?
thanks for any thoughts and suggestions.
|
|
... 12 posts hidden. Click here to view all posts.... |
| |
Skate
Registered: Jul 2003 Posts: 494 |
@Heaven: of course you can choose real 3d path (which would be more accurate and still simple enough) but since you mentioned your lack of 3d knowledge, you can easily calculate that kind of vector city using sin and cos only. think about the vertices, they are all rotating on an elliptic orbit. you vertices have three parameters (y,r,sa). y is the height which effects vertical movement and position, r is the radius and sa is startup angle. what extra you need is to sort vertices by z index. this can be done using radius and rotation angle parameters. start thinking on ellipses and it will come to you. :)
you may need more than one origin, keep that in mind. |
| |
Heaven Account closed
Registered: Jul 2008 Posts: 102 |
@Skate
thanks. I have done a basic version of wire frame city and the skyscrapers rotated on 64 byte elipses tables based on.
deg
c=0
for i=0 to 359 step 360/64
x1=mx+sin(i)*rx
y1=my+cos(i)*ry
xtab(c)=x1
ytab(c)=y1
c=c+1
next i
and my first attempts to do the city in 3d (including projection, transformation etc) in realtime was out of question as my polyfiller made the whole scene look like a slide show ;)
|
| |
Skate
Registered: Jul 2003 Posts: 494 |
@Heaven: if you don't want to bother learning other languages than basic, you may want to try PureBasic, DarkBasic like basic languages which still keep the basic syntax but have hardware accelerated gfx libraries.
you can also try learning javascript. it's a fast way to test stuff nowadays.
i assume you don't know other languages since you choose basic as your test platform. if that's not the case, sorry for misunderstanding. :) |
| |
Heaven Account closed
Registered: Jul 2008 Posts: 102 |
I am doing most rapid dev in basic.i never got into c++ or Java, only pascal and c. |
| |
Repose
Registered: Oct 2010 Posts: 225 |
I can leave a suggestion for FreeBasic; for those who might have grown up on the qbasic which came with windows, it's compatible. It's a compiler like quickbasic.
And I must say, Atari had better graphics than c64; but c64 had better sound. If you could combine them, that would've been the ultimate 80's computer, also add some of the 128's relocatable 0/1 pages too. |
| |
Oswald
Registered: Apr 2002 Posts: 5094 |
both computers can do stuff in gfx/sfx that the other cant. in general c64 is better suited for games and a8 for demos. |
| |
chatGPZ
Registered: Dec 2001 Posts: 11386 |
Quote:in general c64 is better suited for games and a8 for demos.
except if you dont like 4x4 like low resolution modes =) |
| |
Repose
Registered: Oct 2010 Posts: 225 |
I know it's lowres, but I think the shading really adds, for example Garaud shading effects.
I was wondering if you could take some of the actual chips and put them in thee other machine? Could you put a SID in a cart and put it on Atari? The only problem is the clock speed, but you could do some kinda clock-stretching.
|
| |
Heaven Account closed
Registered: Jul 2008 Posts: 102 |
Sid ataris exist. |
| |
algorithm
Registered: May 2002 Posts: 705 |
A800 is great for its DLI (no need to worry about stable raster etc) and immense color facilities. It leaves a lot to be desired in regards to its hires mode (limited to 2 colors, although with gfx tricks around 4 colors per scanline or so). Sprites as well are narrow. In some ways, its a younger (very younger) brother to the Amiga.
C64 has the advantage of its excellent SID chip as well as its hires mode and wider sprites allowing more color in a smaller area.
|
Previous - 1 | 2 | 3 - Next |