123
-=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- (c) WidthPadding Industries 1987 0|292|0 -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=-
Socoder -> Blitz -> creating a 3D object?

Sat, 07 Jul 2007, 16:25
spinal
I haven't realy done any 3D at all, si as my first ever 3D project, I want to build a maze. Not with a maze generator, just an array of walls, perhaps 30x20 or somthing, 1,0,0,1,0,1,0,0,0,1,1,1 - that sort of thing (1=wall 0=nothing). And I will view it from the top, rather than inside.
Does anyone have a small demo to show how to do this? I was thinking to just string some cubes together, but I honestly don't know where to start.

Any help appreciated.

-=-=-
Check out my excellent homepage!
Sat, 07 Jul 2007, 16:59
Jayenkai
3D? Maze? Made of Cubes?! And a ball perhaps?

OMG!!!

When I did JNKPlat 3D I used the "String together cubes" method, which worked reasonably well, until I then wanted to change anything inside the maze. If you clump them together, you're not getting them back out again!



|edit| Dunno why I didn't do this as an example.. Must be tired... A quick tweak later |edit|


Much better..

-=-=-
''Load, Next List!''
Sat, 07 Jul 2007, 17:44
Jayenkai
I call it.. Tornadude!


... I probably have more important things to be doing, right now..

-=-=-
''Load, Next List!''
Mon, 09 Jul 2007, 17:21
spinal
Yet again, I have put off the idea for a 3D game... I'm going to do it top-view 2D. Sorry I made you do all that work for nothing Jay, but It seems nds 3D is based on opengl and it looks like a lot of learning, one day I will do it though. And you were right about the ball thing

-=-=-
Check out my excellent homepage!
Mon, 09 Jul 2007, 17:47
spinal
[double post, sorry]
If anyone would be so kind as to create some short code for creatinf a ball around 12 pixels accross, I realise that 3D soesn't work in pixels, but thats the size I'm after not antialiased to the background. I would like to load a texture to tha ball, parhaps a soccer ball pattern or a marble or something, and be able to rotate it about 40 degrees, capture a screen shot (maybe to an image) and repeat 9 times (creating a full rotation right, then rotate down by 40 degrees and repeate the above, then again etc. until there is a bunch of frames of a ball rolling fully right and fully down.

hope that makes sense.

-=-=-
Check out my excellent homepage!
Mon, 09 Jul 2007, 18:27
Jayenkai


|edit| The roll didn't look right.. Tweaked |edit|


|edit| 2 : Hmm, it's still not right, but I'm sure with a bit of tweaking you can get it to look half-decent |edit|


|edit| Cheated, and rotated the texture instead! |edit|


Sorted!

-=-=-
''Load, Next List!''
Tue, 10 Jul 2007, 03:26
spinal
They both look great, but I loaded a texture from an image (128x128) and it's not square/round, it is stretched, andy idea how to put it right?

|edit| I noticed the ball rotates relative to its own axis. Is it possible to rotate it relative to the screen/camera? So that it always rolls the same direction (left to right) no matter how far through the cycle it is?

-=-=-
Check out my excellent homepage!
Tue, 10 Jul 2007, 03:44
Jayenkai
The 2nd one should look better, due to it being the texture moving, not the ball rotating, but you still end up with that stretched result.

Gimme 10 mins or so, and I'll write up my classic 2D ball generation thing, instead.. Always looked much better

-=-=-
''Load, Next List!''
Tue, 10 Jul 2007, 03:57
spinal
So I should warp my texture a bit to compensate?
Tue, 10 Jul 2007, 04:01
Jayenkai
It's due to warping at the top and bottom of the sphere. I'm really not sure how to avoid that, other than just plain doing it 2D. So I'm doing that.. Taking a bit more than 10 mins to do, though, 'cos I had to make a brew, too!

-=-=-
''Load, Next List!''
Tue, 10 Jul 2007, 04:31
Jayenkai


-=-=-
''Load, Next List!''
Tue, 10 Jul 2007, 06:12
spinal
I'm gunna stick with number 1, I just need to figure out how its texturing the sphere.

-=-=-
Check out my excellent homepage!
Tue, 10 Jul 2007, 06:24
Jayenkai
LOL
Basically the top and bottom are pulled together, so you'll need to create an inverted texture, just like how a globe becomes a map by widening the top and bottom.. Should be easy

Mostly useless URL!

-=-=-
''Load, Next List!''
Tue, 10 Jul 2007, 06:47
spinal
cool, I got the textures (ones so far) to stretch properly, and inverted then, I noticed ther were upside down. Also I needed to 'pinch' it in the middle, so it is twice as tall as it is wide, but on the same size canvas.

Would it be difficult to move the camery around the ball instead of rotating the ball? The motion is better on the second version, but the texture is better on the first.

-=-=-
Check out my excellent homepage!
Tue, 10 Jul 2007, 07:10
Jayenkai
Not too hard.

Just attach the camera to a pivot, and rotate that.

-=-=-
''Load, Next List!''
Wed, 11 Jul 2007, 02:48
spinal
I'm getting a little further with this, but my laptop keeps crashing. Stupid machine...

-=-=-
Check out my excellent homepage!
Sun, 29 Jul 2007, 15:43
dna
yOU NEVER CEASE TO AMAZE ME jAY.