|
Post by mikiex on Jan 31, 2014 17:03:11 GMT -5
A little demo I'm working on.
|
|
|
Post by jfmateos on Feb 1, 2014 1:49:17 GMT -5
Very nice mikiex... i love 3d effects on vectrex
|
|
|
Post by mikiex on Feb 1, 2014 5:15:21 GMT -5
Thanks jfmateos The rotation is locked in one axis, its hacky but it might work with more general models. Also I need to add perspective.
|
|
|
Post by jfmateos on Feb 1, 2014 6:21:23 GMT -5
Are you using an algebraic tranformation matrix to calculate the rotated position of the vertex?
|
|
|
Post by mikiex on Feb 1, 2014 7:47:00 GMT -5
Are you using an algebraic tranformation matrix to calculate the rotated position of the vertex? Nooo Actually I thought about implementing a proper 3d engine, but I just don't know if it would be too slow (my ASM is also poor) I've never seen more than one or two objects drawn in 3d on the vectrex and I don't know how they were done. Also no proper 3d in a game - ever? The 68A09 @ 1.5mhz seems a little slow, although it has some really nice features that make for much shorter (maybe faster) code than the 6502 - so it must be possible. There isn't much 3d code around for the 6809, probably the most interesting stuff is the coco raycasters. I thought why not go back to basics an think out of the box (or cube in this case) The code does this rotate a square of vectors (using bios routines) convert the square to screen coordinates squash the square by dividing by 2 or 4 (just bit shifting) draw lines down A amount from each point on the square (easy as the points are in screen space) convert back to vectors coordinates draw the square draw the same square A amount down the screen repeat So really you as squashing planes and drawing lines between those planes. Its very very wrong
|
|
|
Post by jfmateos on Feb 1, 2014 8:00:05 GMT -5
I would say very, very cunning
|
|
|
Post by Mayhem on Feb 1, 2014 8:26:18 GMT -5
Very nice Next technical trick/exercise... making the cube look like it has solid faces
|
|
|
The cube
Feb 1, 2014 9:40:12 GMT -5
via mobile
Post by cNp on Feb 1, 2014 9:40:12 GMT -5
So really you as squashing planes and drawing lines between those planes. Its very very wrong Yet so, so right! Good work! cNp
|
|
|
Post by mikiex on Feb 1, 2014 14:41:46 GMT -5
Binary + source if anyone wants to try it. www.dropbox.com/s/971equb0vxk0i9q/cube_bin.zipThe code is very much a sketch, don't expect it to be pretty, I'm a beginner with asm Dropbox link to cube_bin.zipbtw if anyone can work out why I have to bodge the last two vertical lines by changing the scale when I move the pen. its really the equivalent of halving the values also. but I don't see how they can be wrong if they work for drawing the squares in the first place.
|
|
|
Post by cNp on Feb 2, 2014 4:38:12 GMT -5
Thanks for sharing the code, once I'm past the 'moving one thing around the screen' phase I'll start sharing too... think it will make everyone more productive with a bit of 'code review' going on!
cNp
|
|
manu
Vector Runner
Posts: 13
|
Post by manu on Mar 2, 2014 12:52:29 GMT -5
I also did something kinda related to this a few weeks ago, but mine is an optical illusion above all, I have no clue of 3D programming... vine.co/v/MmMBjTO6uEj
|
|
|
Post by cNp on Mar 3, 2014 15:44:04 GMT -5
Hey, that looks really cool, nice effect!
cNp
|
|
|
Post by kokovec on Mar 6, 2014 14:12:41 GMT -5
Very nice work
|
|
|
Post by binarystar on Mar 6, 2014 16:58:29 GMT -5
neat. jim/marblemad did some simplified 'true' 3d in his upcoming battlezone clone.
|
|
|
Post by Malban on Jun 28, 2014 18:25:37 GMT -5
Hello, I know this thread is a bit old - but since I discovered this board today - I excuse myself and intrude anyway :-)! I did some years ago (WOW! 16 years have gone by!) - following little demo, which you might have seen. (execute bin files in the provided archives) It was called demo7 with the Vectrex C Compiler package. I also provided an ASM package for those interested. You can fiddle with it :-)! You can display quite a few 3d objects in "ok" timing with it. I just never did anything beyond the demo.... For more information about the coding look for a file called: " 3ddemo.txt " Regards Chris Attachments:3d.asm.zip (15.59 KB)
DEMO7.ZIP (65.92 KB)
|
|