PDA

View Full Version : Polyhedra and Polytopes in MaxScript


BClaw
02-08-2004, 06:22 AM
Hi! I'm brand new to the MaxScript arena, and very interested in all the things I can do with it. :applause: I managed to write a simple script to add countdown numbers to an animation. :bounce:

Here's the thing. I'm from an AutoCAD/AutoLISP background, and 3D Studio MAX handles it's objects quite differently. I'm trying to start writing some scripts to manipulate 4D objects and project them into 3D MAX space for rendering. I understand the math involved fairly well, but I end up with lists of coordinates and no clear understanding of how to create the objects that surround them in 3D Studio and orient them properly. For example, if I wanted to create a dodecahedron with cylinders along the edges, in AutoLISP, I'd change the coordinate system to be perpendicular to each line's Z axis, then create my geometry, which would automatically be aligned correctly. It looks like something similar might be possible in MaxScript by using the Matrix3 thingee as a reference, and set stuff up, but I'm having trouble wrapping my mind around the way MaxScript handles these operations, and the help included with the program is not giving me adequate information. :cry:

I'm looking for tutorials and such online, and for help from any of you experienced MaxScript gurus! :bowdown:

Thanks!

BClaw
02-17-2004, 07:08 AM
Well, I managed to figure it out. :scream: If anyone is interested, here's a small version of the animation I produced, and the code:

Tesseract (http://home.rmci.net/tuvel/private/4D%20Cube%20(8-Cell)%20small.avi)
4D Code (http://home.rmci.net/tuvel/private/4-cube.ms.txt)

If anyone would like to make comments or suggestions on the code itself, I would be very appreciative.

BClaw
02-21-2004, 05:36 AM
Well, I got a bit more sophisticated in the application of materials to help in the visualization. Also wrote some better algorithms for rotating smoothly in 4D and 5D space.

Tesseract (2) anim (http://home.rmci.net/tuvel/private/4D%20Cube%20(2)%20small.avi)
4D Code (http://home.rmci.net/tuvel/private/4-cube-2.ms.txt)

5D Cube anim (http://home.rmci.net/tuvel/private/5D%20Cube%20small.avi)
5D Cube (2) anim (http://home.rmci.net/tuvel/private/5D%20Cube%20(2)%20small.avi)

5D Code (http://home.rmci.net/tuvel/private/5-cube.ms.txt)

charleyc
02-21-2004, 06:34 AM
can you post these animations using a different compression I am very interested to see them. I believe this version of Indeo is no longer avaialbe free for win XP.

BClaw
02-21-2004, 10:17 PM
Originally posted by charleyc
can you post these animations using a different compression I am very interested to see them. I believe this version of Indeo is no longer avaialbe free for win XP.

OK, here are two of the four (the better ones, IMO) compressed with Cinepak by Radius at 10% quality. (Geez these files are big!) Will that work?

4D Cube (3) 5.7M (http://home.rmci.net/tuvel/private/4D Cube (2) alt (radius - quality 10).avi)
5D Cube (3) 6.0M (http://home.rmci.net/tuvel/private/5D Cube (2) alt (radius - quality 10).avi)

P.S. I'm uploading now, so try again if you don't think you got the whole file. ;)

BClaw
02-22-2004, 12:02 AM
I can't seem to maintain a connection long enough to get the new 5D Cube AVI uploaded. I guess what's there will just have to dol

charleyc
02-22-2004, 05:29 AM
Yeah, the 4d cube works great, but the 5d seams corrupt. These are amazing animations. If these are what I think they are, I have read about them and seen drawings of such things, but to see it animated brings a whole new perspective. Have you tried the Divx codec? www.divx.com You have to pay to use it commercially, but it works pretty good for posting things on web boards.

charleyc
02-22-2004, 05:51 AM
I just checked out your web site and got lost in several links pertaining to hyperdimensions. It is as I thought in your original post and I have come to the conclusion that me trying to comprehend what your mind must be like makes mine hurt. It is late here and I need to go to bed. Maybe tomorrow I can get more from those sites.:hmm:

BClaw
02-22-2004, 08:35 AM
Originally posted by charleyc
I just checked out your web site and got lost in several links pertaining to hyperdimensions. It is as I thought in your original post and I have come to the conclusion that me trying to comprehend what your mind must be like makes mine hurt. It is late here and I need to go to bed. Maybe tomorrow I can get more from those sites.:hmm:

Thanks for taking a look at my animation. :) The 5D Cube should be working now. The math behind this stuff is not that hard, but it's very difficult to *visualize* it. I haven't updated my site for some time, and the one working link there is the most difficult to comprehend. Try these:

"Fourth Dimension: Tetraspace" (http://tetraspace.alkaline.org/introduction.htm)
"Hypercube" (http://traipse.com/hypercube)
"The Fourth Dimension" (http:///www.geocities.com/CapeCanaveral/7997)
"Hyperspace" (http://users.adelphia.net/~eswab/hyprspac.htm)

"Polygons, Polyhedra, Polytopes" (http://home.inreach.com/rtowle/Polytopes/polytope.html)

Kijop
03-02-2004, 04:12 PM
Hi! Claw!

I've seen Ur avis - worked fine in winamp (sic!) even in 10% compression, seen Ur homepage - very interesting reading!

Think U might be interested in this one also:


http://www.seriousengine.com/bin/view/Editor/GravitySectoring


what that suppose to be? I think U could get into polyhedrons virtually! Do not mind ingame graphics, check drawings and read tutorial. Let me know what U think about it.

Seriously addicted - Kijop


P.S. Yo da Brain!

:beer:

BClaw
03-03-2004, 05:13 AM
Well, Kijop. I don't know what to make of that tutorial! :eek: It looks very program-specific, but not one I've ever heard of. It looks like a tutorial for creating game levels where the characters can walk on walls and stuff. The figure used *looks* like a tesseract (a 4D cube), but appears to be a 3-dimensional object after all. Dunno! ;)

CGTalk Moderation
01-17-2006, 10:00 AM
This thread has been automatically closed as it remained inactive for 12 months. If you wish to continue the discussion, please create a new thread in the appropriate forum.