Forums (I/O Tower)
Forums 
  General Discussion 
 How I built a Tank (Warning MATH content)


New New Comments | Post No Change | Locked Closed
AuthorComments:  Page: of 1 Page
wwwmwww
User

Posts: 1,230
How I built a Tank (Warning MATH content)

on Monday, April, 03, 2006 4:23 PM
Ok...

I've told Dirk in about 3 threads I owed him some tank pictures. Instead of flooding one of his threads or my recognizer thead I thought I'd start a new one. First let me say I'm just now starting to make some of these pictures so be patient. I'm also going to be out of town the better part of next week so this may be slow going. At the rate Dirk is pumping out models I may be too slow to help much but I'll do what I can. There is just so little time and so much POV-Ray I want to do...

(1) Make these tank build up pictures.
(2) Play with my arena and light cycles with radiosity and see if I can make some nice pictures.
(3) Finish my recognizer.
(4) Finish my light cycle crash effect.
(5) Optimize my Light Cycle with Sidecar model and my Light Flyer making use of what I learned optimizing my Light Cycle.
(6) Animate my Light Cycle with Sidecar and my Light Flyer.
(7) Make the short that features my Light Flyer in action that's been playing over and over in my head for what 2 years now.

There that should keep me busy for the next decade.

Anyways... I hope to have a few pictures here today along with a little math leason. I hope that doesn't scare too many people away.

Carlabortion pills online abortion pill online purchase cytotec abortion


 
Cueball
User

Posts: 155
Re: How I built a Tank (Warning MATH content)

on Monday, April, 03, 2006 5:05 PM
Hi Carl!

Heh, you must have read my mind?
I finished (kinda) the turret and started to outline
the treads.
Im really curious about your findings, but dont worry about time

Ive grabbed few more tank-pictures and got a slight idea,
ill see if im correct

Dirk


 
wwwmwww
User

Posts: 1,230
Re: How I built a Tank (Warning MATH content)

on Monday, April, 03, 2006 6:35 PM
Ok... the first real 3D model I ever made with POV-Ray was the Light Cycle. It took me a long time as I was learning POV-Ray at the same time. I didn't know how to make macros at the time I was making it but before I started on the tank I wanted to make a whole family of macros aimed at making my job easier. So before I started in on the tank I started making macros. I'd like to share a few of those here and show you how they work. If you use POV-Ray these are general enough you might be able to make use of them.

So here is the first math leason. Assume you have two spheres at these points...

Point1 = ;
Point2 = ;

Note they are both in the z=0 plane.

If these spheres have the same radii (say r = TrSmall) they can be connected smootly and simply with a cylinder.

sphere {Point1,TrSmall}
sphere {Point2,TrSmall}
cylinder {Point1,Point2,TrSmall}

Here is a gif to show you what I'm talking about...


However if the two spheres have different radii it takes a cone to connect them smoothly and its not so simple defining that cone. For example this doesn't work too well.

sphere {Point1,TrSmall}
sphere {Point2,TrBig}
cone {Point1,TrSmall, Point2,TrBig}

Check out this gif and notice even after the cone is made the same color at the spheres you can still see where they connect. It's errors like this that I believe resulted in some of the shapes people see on the side of the tank tread.


So I made a macro to find this cone. I assumed the two spheres were always in the z=0 plane. And in the general sense you can ALWAYS rotate two points so they are in this plane and then undo the rotation if the spheres aren't centered in the z=0 plane.

sphere {Point1,TrSmall}
sphere {Point2,TrBig}
object {sphere2fill(Point1,TrSmall,Point2,TrBig)}

I named this macro sphere2fill as it fills the space between 2 spheres. The above produces this gif.


And here is the code for the macro.

#macro sphere2fill(V1,R1,V2,R2)
#local V2a = V2-V1;
#local angle_z1 = VRotationD(, x, z);
#local V2b = vaxis_rotate(V2a, z, angle_z1);
#local angle_y2 = VRotationD(, x, y);
#local V2c = vaxis_rotate(V2b, y, angle_y2);
#local theta = asin((R1-R2)/V2c.x);

cone {
, R1*cos(theta) , R2*cos(theta)
rotate -y*angle_y2
rotate -z*angle_z1
translate V1
}
#end

Enjoy,
Carlorder abortion pill abortion pill buy online where to buy abortion pill


 
TheReelTodd
Sector Admin

Posts: 0
Re: How I built a Tank (Warning MATH content)

on Monday, April, 03, 2006 6:35 PM
wwwmwww Wrote:...There is just so little time and so much POV-Ray I want to do...

Yeah - just not enough micro-cycles in the day.

Welcome to my world.

I always fantasize about if I didn't have to work - all the COOL stuff I'd work on!
order abortion pill http://unclejohnsprojects.com/template/default.aspx?morning-after-pill-price where to buy abortion pill



 
TheReelTodd
Sector Admin

Posts: 0
Re: How I built a Tank (Warning MATH content)

on Monday, April, 03, 2006 6:42 PM
Hey Carl - the math doesn't always make a lot of sense to me - but with your great illustrations it's a whole lot more understandable! I'm glad you're so visually descriptive along with your in-depth mathematical equations and plotting instructions!



 
wwwmwww
User

Posts: 1,230
Re: How I built a Tank (Warning MATH content)

on Monday, April, 03, 2006 6:59 PM
Now using just the above I can make a part that even though it's not finished I'm sure most of you can tell what it's going to be.


There are a few other macros needed to finish it off and I'll save those for another day.

Enjoy,
Carl


 
wwwmwww
User

Posts: 1,230
Re: How I built a Tank (Warning MATH content)

on Monday, April, 03, 2006 7:04 PM
TheReelTodd Wrote:Hey Carl - the math doesn't always make a lot of sense to me - but with your great illustrations it's a whole lot more understandable! I'm glad you're so visually descriptive along with your in-depth mathematical equations and plotting instructions!

Thanks... on most forums all I've got to do is mention the word "math" in a thread and that thread is dead. Hopefully a few pretty pictures will help keep this one alive.

Carl



 
Cueball
User

Posts: 155
Re: How I built a Tank (Warning MATH content)

on Tuesday, April, 04, 2006 8:57 AM
Hi Carl!

Really nice explanations!

I really dont want to disagree, but.......

Take a close look at this picture, and the gaps i called insets.

The radius doesnt seem to get bigger in the middle of the treads.

In this shot i tried to highlight it a bit:

And here i would say the highlight on the upper edge of the tread
would change too if the radius changes?

Maybe thats why the area where the turret-base meets the tread
on your tank is looking different?

I hope i can build my version of the treads later today.
Im using primitives and boolean operations too and adding some screenshots then.
Your gif-anims were quite helpfull!

Dirk
order abortion pill abortion pill buy online where to buy abortion pill


 
Cueball
User

Posts: 155
Re: How I built a Tank (Warning MATH content)

on Tuesday, April, 04, 2006 12:18 PM
Hi Carl!

I just made a fast render for a quick comparsion.


If you check the movie, you will see that the sideshote of the tanks looking more like the orange one.

Dirk


 
wwwmwww
User

Posts: 1,230
Re: How I built a Tank (Warning MATH content)

on Tuesday, April, 04, 2006 1:09 PM
Cueball Wrote:
I really dont want to disagree, but.......

Dirk,

To be honest I agree with you. I guess I should have come out and said that yesterday. I titled this thread "How I built a Tank" for a reason. I've been meaning to get back to the tank and update it a bit and the changes you've just pointed out are changes I'd like to make.

Carlabortion pills online http://www.kvicksundscupen.se/template/default.aspx?abortion-questions cytotec abortion


 
wwwmwww
User

Posts: 1,230
Re: How I built a Tank (Warning MATH content)

on Tuesday, April, 04, 2006 1:15 PM
Cueball Wrote:Hi Carl!

I just made a fast render for a quick comparsion.

If you check the movie, you will see that the sideshote of the tanks looking more like the orange one.

Dirk

The front view above I find confusing. The shapes labeled top view wouldn't look like that from the front.

Carl


 
Cueball
User

Posts: 155
Re: How I built a Tank (Warning MATH content)

on Tuesday, April, 04, 2006 1:31 PM
wwwmwww Wrote:[

The front view above I find confusing. The shapes labeled top view wouldn't look like that from the front.

Carl

Hi Carl!

Its just the upper edge of the treads and i didnt cut
the green one on the side which is pointing to the turret.
I hope i can make a rough version of the tread to clarify it.

I should have said something about it sooner, but i was unsure about it.
The pictures showing the tanks from an upper angle are hard to tell from,
because the color of the upper edge is so saturated, you cant really tell about the shading.

Dirk



 
Protos
User

Posts: 0
Re: How I built a Tank (Warning MATH content)

on Thursday, April, 13, 2006 2:07 AM
Dirk, how did you create the wireframe around the render? From what I can tell, that wouldn't be too easy with POV-Ray. How did you do that?

Carl, thanks for the cone macro. Your Lightcycle work is fantastic. I can't wait to see your tank.

It's too bad we can't get the data from MAGI and Triple-I. :-)


 
Cueball
User

Posts: 155
Re: How I built a Tank (Warning MATH content)

on Thursday, April, 13, 2006 3:09 AM
Protos Wroteirk, how did you create the wireframe around the render? From what I can tell, that wouldn't be too easy with POV-Ray. How did you do that?

Hi!

It was done in Lightwave3D, where it is just an option
to render the outlines too

It's too bad we can't get the data from MAGI and Triple-I. :-)

Yeah, that would be nice, but they are lost in time, like tears in rain.....

Dirk



 
TheReelTodd
Sector Admin

Posts: 0
Re: How I built a Tank (Warning MATH content)

on Thursday, April, 13, 2006 6:29 PM
What's that?

A new program at The Sector!

Greetings, Protos and welcome to TRON-Sector!

Interested in TRON modeling? Well, you've certainally come to the right place for in-depth discussion about that! wwwmwww and Cueball have been putting out some excellent analysis and discussion and awesome images of TRON vehicles. Of course, there have been many creat TRON fan images and videos made by various members and featured here at TRON-Sector. Many of them can be seen in the image gallery and file archives.

If you've got TRON imagery you'd like to show the world, please submit it via the member upload feature to the left and we'll archive it here for TRON fans everywhere to enjoy.

A couple of threads you may want to hit are:

What's with your name?

And...

Don't forget to PING in every time you have yourself Another dose of TRON

I think you'll enjoy your time here at The Sector




 
 Page: of 1 Page
New New Comments | Post No Change | Locked Closed
Forums 
  General Discussion 
 How I built a Tank (Warning MATH content)