NEED HELP (honeycomb rims)

Post your tutorials here.

NEED HELP (honeycomb rims)

Postby jakedmoon » Fri Feb 18, 2011 6:18 pm

i didnt know where to post this so i posted it here

i am making a 1978 pontiac firebird trans am but im having difficulties with the rims
i managed to make some crappy snowflake rims but they look very strange when you drive

i was hoping to make rims like these

Image

but when i try the hexagons dont fit onto the pentagon i always get spaces in between the hexagons (i used karatebots polygon creator for the polygons)

i cant figure out how to solve this

any help with this matter would be greatly appreciated
Ουλές αποτελούν απόδειξη ότι το παρελθόν υπήρχε.
User avatar
jakedmoon
 
Posts: 300
Joined: Sat Jul 03, 2010 11:41 pm
Location: earth

Re: NEED HELP (honeycomb rims)

Postby Kilinich » Fri Feb 18, 2011 7:59 pm

just set 5-axis grid and draw not perfect hexagons.
Dream of Algodoo as game development engine...
User avatar
Kilinich
[Best bug reporter 2010]
 
Posts: 2098
Joined: Mon Aug 31, 2009 8:27 pm
Location: South Russia

Re: NEED HELP (honeycomb rims)

Postby jakedmoon » Fri Feb 18, 2011 9:13 pm

no grid in phun that i can find. any other ideas?

when i get some spare cash i may get algodoo though
Ουλές αποτελούν απόδειξη ότι το παρελθόν υπήρχε.
User avatar
jakedmoon
 
Posts: 300
Joined: Sat Jul 03, 2010 11:41 pm
Location: earth

Re: NEED HELP (honeycomb rims)

Postby TC42 » Fri Feb 18, 2011 10:32 pm

If you can script, you can spawn a geometry by inputting in the verticies of the geometry and typing something like scene.addPolygon({--attributes and verticies go here--}) into the console or something like that. That would take FOREVER, though.


Or you could kindly ask me to make some rims for you-- I have algodoo, got it as a Christmas present :D

Also, remember to put a texture on the polygons when you're done so that the edges stay crisp-- otherwise the corners will be rounded.
Image
Spambot wrote:Nowadays, memes usually are studied less in the field of biology, but more with the arena of psychology along with sociology. But, the major area of a meme, getting embraced and imitated all the time is what’s at any core connected with any meme.
User avatar
TC42
 
Posts: 984
Joined: Sun Jan 09, 2011 1:53 pm
Location: $ sudo apt get-install sandwich_

Re: NEED HELP (honeycomb rims)

Postby jakedmoon » Sat Feb 19, 2011 12:29 am

yeah i cant script i tried to learn but i kept getting confused


so yeah you could make some rims
Ουλές αποτελούν απόδειξη ότι το παρελθόν υπήρχε.
User avatar
jakedmoon
 
Posts: 300
Joined: Sat Jul 03, 2010 11:41 pm
Location: earth

Re: NEED HELP (honeycomb rims)

Postby Kilinich » Sat Feb 19, 2011 12:49 am

jakedmoon wrote:no grid in phun that i can find. any other ideas?

when i get some spare cash i may get algodoo though


Get algodoo demo, draw it, copy-paste into phun. :D

or

Get svg2phun, draw it in any vector-based editor like inkscape and convert it into phun.
Dream of Algodoo as game development engine...
User avatar
Kilinich
[Best bug reporter 2010]
 
Posts: 2098
Joined: Mon Aug 31, 2009 8:27 pm
Location: South Russia

Re: NEED HELP (honeycomb rims)

Postby jakedmoon » Sun Feb 20, 2011 9:01 pm

i already used my algodoo demo

and i never thought of that but dont you need other programs to make it work?
Ουλές αποτελούν απόδειξη ότι το παρελθόν υπήρχε.
User avatar
jakedmoon
 
Posts: 300
Joined: Sat Jul 03, 2010 11:41 pm
Location: earth

Re: NEED HELP (honeycomb rims)

Postby electronicboy » Sun Feb 20, 2011 9:15 pm

jakedmoon, check your inbox ;)
When asking for help, READ THE STICKIES!
electronicboy
 
Posts: 1694
Joined: Mon Aug 31, 2009 6:18 pm

Re: NEED HELP (honeycomb rims)

Postby Mystery » Tue Feb 22, 2011 12:53 pm

Did you send him a link to *cough*Pirate*cough* Algodoo?
If he mysteriously starts uploading scenes with Algodoo... :problem:
Unless you bought him Algodoo but anyone that would do that would make it as public as possible.
"LOOK AT ME I'M GIVING TO THE POOR!"

This whole thing smells like bad fish.
User avatar
Mystery
 
Posts: 2802
Joined: Thu Sep 03, 2009 1:16 pm
Location: Southern Australia

Re: NEED HELP (honeycomb rims)

Postby electronicboy » Tue Feb 22, 2011 10:10 pm

no, algodoo is one of the programs i will never pirate, especially considering i have already bought a licence, which i am able to prove as i still have the invoice saved with all my licence info and everything...

I was going to tell hime how to reinstall the demo and get the trial back...
Which i don't see as being wrong as long as he is going to buy a full license later.
When asking for help, READ THE STICKIES!
electronicboy
 
Posts: 1694
Joined: Mon Aug 31, 2009 6:18 pm

Re: NEED HELP (honeycomb rims)

Postby Chronos » Tue Feb 22, 2011 10:17 pm

electronicboy wrote: was going to tell hime how to reinstall the demo and get the trial back...
Which i don't see as being wrong as long as he is going to buy a full license later.

Except it's still illegal and you could easily be fined by Algoryx.
TheWinkits wrote:They both looks of cuking amazing
User avatar
Chronos
[Most Active Member 2010]
 
Posts: 4457
Joined: Mon Aug 31, 2009 6:00 pm
Location: Californania

Re: NEED HELP (honeycomb rims)

Postby electronicboy » Wed Feb 23, 2011 12:21 am

actually, just remembered something more on the legal side.

due to the location where algodoo stores the time setting, all you need to do is create another user account on your pc, and the new account will have the full trial, and when the trial is up, you can just delete that account and if really needed, create a new one.
When asking for help, READ THE STICKIES!
electronicboy
 
Posts: 1694
Joined: Mon Aug 31, 2009 6:18 pm

Re: NEED HELP (honeycomb rims)

Postby Chronos » Wed Feb 23, 2011 3:24 am

Which is still illegal.
TheWinkits wrote:They both looks of cuking amazing
User avatar
Chronos
[Most Active Member 2010]
 
Posts: 4457
Joined: Mon Aug 31, 2009 6:00 pm
Location: Californania

Re: NEED HELP (honeycomb rims)

Postby Someone Else » Wed Feb 23, 2011 7:33 pm

I know what's REALLY legal! Just get TC42 to make them and post them on Algobox! And give him credit!
Matthias Wandel is epic, in my humble opinion.
I love my brain...
TC42 wrote:Also, your sig is too big, please change it.

ARE YA HAPPY NOW?????

Thymechanic/Phundamentalist

Recently, I discovered something a lot of you probably already knew: Minecraft is awesome.
Due to this, I may not be as active as usual for a while.
User avatar
Someone Else
 
Posts: 1147
Joined: Sun Nov 21, 2010 10:53 pm
Location: The Milky Way Galaxy

Re: NEED HELP (honeycomb rims)

Postby Rideg » Wed Feb 23, 2011 8:42 pm

Paste into console:
Code: Select all
Scene.addPolygon ({
    surfaces := [[[-4.0, 0.5333328], [-3.7142859, -0.038095474], [-3.4285717, -0.6095238], [-3.1428566, -1.180954], [-2.8571424, -1.7523823], [-2.5714283, -2.3238096], [-2.2857141, -2.8952389], [-2.0, -3.4666672], [-1.333333, -3.4666672], [-0.6666665, -3.4666672], [0.0, -3.4666672], [0.666667, -3.4666672], [1.3333333, -3.4666672], [2.0, -3.4666672], [2.2857144, -2.8952389], [2.5714285, -2.3238096], [2.857143, -1.7523823], [3.1428573, -1.180953], [3.4285715, -0.6095247], [3.7142859, -0.038095474], [4.0, 0.5333328], [3.5, 1.0333328], [3.0, 1.5333328], [2.5, 2.0333328], [2.0, 2.5333328], [1.5, 3.0333328], [1.0, 3.5333328], [0.5, 4.033333], [0.0, 4.533333], [-0.5, 4.033333], [-1.0, 3.5333328], [-1.5, 3.0333328], [-2.0, 2.5333328], [-2.5, 2.0333328], [-3.0, 1.5333328], [-3.5, 1.0333328]]];
    collideWater := true;
    color := [0.0, 0.0, 0.0, 1.0];
    onCollide := (e)=>{};
    attraction := 0.0;
    controllerAcc := 11.0;
    onHitByLaser := (e)=>{};
    heteroCollide := false;
    immortal := false;
    opaqueBorders := true;
    refractiveIndex := 1.5;
    killer := false;
    friction := 0.5;
    restitution := 0.5;
    drawBorder := true;
    controllerInvertX := false;
    controllerInvertY := false;
    controllerReverseXY := false;
    airFrictionMult := 1.0;
    showVelocity := false;
    density := 2.0;
    reflectiveness := 1.0;
    textureMatrix := [1.0, 0.0, 0.0, 0.0, 1.0, 0.0, 0.0, 0.0, 1.0];
    texture := "";
    inertiaMultiplier := 1.0;
    showForceArrows := false;
    collideSet := 1;
    materialVelocity := 0.0;
    entityID := 7033;
    zDepth := 0.0;
    geomID := 1479410;
    pos := [-5.0, 13.466666];
    angle := 0.0
})
Image
make sure to check out my work.
User avatar
Rideg
 
Posts: 948
Joined: Tue Dec 15, 2009 5:17 pm
Location: Östersund, Sweden

Re: NEED HELP (honeycomb rims)

Postby Dare » Thu Feb 24, 2011 12:54 pm

I don't want to embarrass you, but that is a pentagon, not a hexagon. Not only that, the sides are not equal ;)

EDIT: Here is the code:


Code: Select all
(e)=>{
    Scene.addPolygon({
        surfaces := [[[-0.14433765, 0.24999988], [-0.16495728, 0.21428567], [-0.18557692, 0.1785714], [-0.20619655, 0.14285707], [-0.22681618, 0.10714287], [-0.24743581, 0.0714286], [-0.26805544, 0.03571433], [-0.28867507, 1.1920929e-007], [-0.26805544, -0.03571415], [-0.24743587, -0.07142842], [-0.22681618, -0.10714275], [-0.2061966, -0.14285702], [-0.18557698, -0.17857128], [-0.1649574, -0.21428555], [-0.14433777, -0.24999982], [-0.10309845, -0.24999982], [-0.06185913, -0.24999985], [-0.02061975, -0.24999988], [0.020619571, -0.24999991], [0.061858892, -0.24999994], [0.10309821, -0.24999994], [0.14433753, -0.24999997], [0.16495717, -0.21428567], [0.18557684, -0.1785714], [0.2061965, -0.14285713], [0.22681615, -0.10714287], [0.24743581, -0.0714286], [0.26805544, -0.03571427], [0.2886751, 0.0], [0.26805544, 0.03571433], [0.24743578, 0.0714286], [0.22681615, 0.10714287], [0.20619647, 0.14285713], [0.18557681, 0.1785714], [0.16495717, 0.21428567], [0.1443375, 0.24999994], [0.10309821, 0.24999994], [0.061858892, 0.24999994], [0.020619571, 0.24999994], [-0.02061972, 0.24999994], [-0.06185901, 0.24999988], [-0.10309833, 0.24999994]]];
        collideWater := true;
        color := [1.0, 1.0, 1.0, 1.0];
        onCollide := (e)=>{};
        attraction := 0.0;
        controllerAcc := 11.0;
        onHitByLaser := (e)=>{};
        heteroCollide := false;
        immortal := false;
        opaqueBorders := true;
        refractiveIndex := 1.5;
        killer := false;
        friction := 0.5;
        restitution := 0.5;
        drawBorder := true;
        controllerInvertX := false;
        controllerInvertY := false;
        controllerReverseXY := false;
        airFrictionMult := 1.0;
        showVelocity := false;
        density := 2.0;
        reflectiveness := 1.0;
        textureMatrix := [0.0, -1.7320513, 0.5, 1.7320513, 0.0, 0.5, 0.0, 0.0, 1.0];
        texture := "ice.png";
        inertiaMultiplier := 1.0;
        showForceArrows := false;
        collideSet := 1;
        materialVelocity := 0.0;
        entityID := 14;
        zDepth := 0.0;
        geomID := 401;
        pos := [-0.43301272, 0.7499998];
        angle := 0.0
    })
}


This is a perfect hexagon.
ImageImage
TC42 wrote:Dare, you are creepy.

Official Algobox Admin! Please PM me if you have any issues regarding Algobox.
User avatar
Dare
 
Posts: 833
Joined: Sat Nov 21, 2009 4:27 pm
Location: Sydney, Australia

Re: NEED HELP (honeycomb rims)

Postby Someone Else » Thu Feb 24, 2011 3:32 pm

Did you look at the picture? He wants a pentagon, and non-perfect hexagons.
Matthias Wandel is epic, in my humble opinion.
I love my brain...
TC42 wrote:Also, your sig is too big, please change it.

ARE YA HAPPY NOW?????

Thymechanic/Phundamentalist

Recently, I discovered something a lot of you probably already knew: Minecraft is awesome.
Due to this, I may not be as active as usual for a while.
User avatar
Someone Else
 
Posts: 1147
Joined: Sun Nov 21, 2010 10:53 pm
Location: The Milky Way Galaxy

Re: NEED HELP (honeycomb rims)

Postby windtalkers » Wed May 11, 2011 1:56 pm

Dare wrote: surfaces := [[[-0.14433765, 0.24999988], [-0.16495728, 0.21428567], [-0.18557692, 0.1785714], [-0.20619655, 0.14285707], [-0.22681618, 0.10714287], [-0.24743581, 0.0714286], [-0.26805544, 0.03571433], [-0.28867507, 1.1920929e-007], [-0.26805544, -0.03571415], [-0.24743587, -0.07142842], [-0.22681618, -0.10714275], [-0.2061966, -0.14285702], [-0.18557698, -0.17857128], [-0.1649574, -0.21428555], [-0.14433777, -0.24999982], [-0.10309845, -0.24999982], [-0.06185913, -0.24999985], [-0.02061975, -0.24999988], [0.020619571, -0.24999991], [0.061858892, -0.24999994], [0.10309821, -0.24999994], [0.14433753, -0.24999997], [0.16495717, -0.21428567], [0.18557684, -0.1785714], [0.2061965, -0.14285713], [0.22681615, -0.10714287], [0.24743581, -0.0714286], [0.26805544, -0.03571427], [0.2886751, 0.0], [0.26805544, 0.03571433], [0.24743578, 0.0714286], [0.22681615, 0.10714287], [0.20619647, 0.14285713], [0.18557681, 0.1785714], [0.16495717, 0.21428567], [0.1443375, 0.24999994], [0.10309821, 0.24999994], [0.061858892, 0.24999994], [0.020619571, 0.24999994], [-0.02061972, 0.24999994], [-0.06185901, 0.24999988], [-0.10309833, 0.24999994]]];


Hi, :) , I want to know why so many points needed to spawn hexagon, can someone give me a little explain?
:wtf:
Last edited by windtalkers on Thu May 12, 2011 2:08 pm, edited 3 times in total.
windtalkers
 
Posts: 13
Joined: Thu May 05, 2011 7:03 am

Re: NEED HELP (honeycomb rims)

Postby simey j dude » Thu May 12, 2011 3:59 am

thats a pentagon with hexagon that fits around it (like in the pic)
Code: Select all
Scene.addPolygon {
    surfaces := [[[-0.914221, -1.2853875], [-0.76413304, -1.2853875], [-0.6140449, -1.2853875], [-0.46395698, -1.2853875], [-0.31386903, -1.2853875], [-0.16378133, -1.2853875], [-0.013693335, -1.2853875], [0.1363945, -1.2853875], [0.2864826, -1.2853875], [0.43657058, -1.2853875], [0.5866581, -1.2853875], [0.73674613, -1.2853875], [0.88683414, -1.2853875], [0.88776135, -1.2858205], [1.0218742, -1.0987978], [1.1559883, -0.9117756], [1.2901014, -0.7247534], [1.4242148, -0.5377312], [1.5583287, -0.35070896], [1.6924419, -0.16368628], [1.8265555, 0.023335934], [1.6967219, 0.20439005], [1.5668876, 0.38544464], [1.4370542, 0.56649876], [1.3072203, 0.74755263], [1.1773871, 0.92860675], [1.0475533, 1.1096611], [0.9177197, 1.2907152], [0.9139802, 1.2855008], [0.76382923, 1.2855008], [0.61367804, 1.2855008], [0.46352708, 1.2855005], [0.31337577, 1.2855003], [0.16322444, 1.2855003], [0.013073357, 1.2855003], [-0.13707788, 1.2855003], [-0.28722876, 1.2855003], [-0.43737996, 1.2855003], [-0.58753127, 1.2855003], [-0.7376826, 1.2855], [-0.8878337, 1.2855], [-1.0211937, 1.0995293], [-1.1545529, 0.9135587], [-1.2879125, 0.72758794], [-1.4212718, 0.5416174], [-1.5546314, 0.3556466], [-1.6879905, 0.16967583], [-1.8213497, -0.016294956], [-1.8267972, -0.0232234], [-1.6969637, -0.20427752], [-1.56713, -0.38533163], [-1.437296, -0.56638575], [-1.3074625, -0.74743986], [-1.1776282, -0.928494], [-1.0477942, -1.1095481], [-0.9179604, -1.2906022]]];

};
Scene.addPolygon {
    surfaces := [[[1.1755704, 0.38196623], [1.028624, 0.48872894], [0.88167775, 0.59549165], [0.73473144, 0.70225435], [0.5877851, 0.80901706], [0.4408388, 0.91577977], [0.2938925, 1.0225425], [0.14694619, 1.1293052], [-1.1920929e-007, 1.2360679], [-0.14694642, 1.1293052], [-0.2938927, 1.0225425], [-0.440839, 0.9157797], [-0.5877853, 0.80901706], [-0.7347316, 0.7022543], [-0.88167787, 0.59549165], [-1.0286242, 0.48872888], [-1.1755705, 0.38196617], [-1.119442, 0.20922041], [-1.0633135, 0.036474645], [-1.007185, -0.13627115], [-0.9510565, -0.3090169], [-0.894928, -0.48176268], [-0.8387995, -0.6545085], [-0.782671, -0.82725424], [-0.7265425, -1.0], [-0.54490685, -1.0], [-0.36327118, -1.0], [-0.18163553, -1.0], [1.1920929e-007, -1.0], [0.18163577, -1.0], [0.36327142, -1.0], [0.5449071, -1.0], [0.7265427, -1.0], [0.7826712, -0.82725424], [0.8387996, -0.6545085], [0.8949281, -0.48176265], [0.95105654, -0.30901688], [1.007185, -0.1362711], [1.0633135, 0.036474675], [1.1194419, 0.20922047]]];

}
User avatar
simey j dude
 
Posts: 61
Joined: Sat Sep 05, 2009 3:11 am
Location: under your bed!

Re: NEED HELP (honeycomb rims)

Postby windtalkers » Thu May 12, 2011 2:09 pm

Hi, if I want to spawn my own hexagon, how can I set the surfaces:=[[[ ],[ ],[ ],[ ],...,[ ]]]? :?: I feel very confused about these numbers, :shock: so what is the basis of them? :)
windtalkers
 
Posts: 13
Joined: Thu May 05, 2011 7:03 am

Re: NEED HELP (honeycomb rims)

Postby Someone Else » Mon May 16, 2011 6:29 pm

The numbers are the vertices of the polygon.

If you put in surfaces := [[[0, -1], [1, 0], [0, 1], [-1, 0]]], you should get a square, rotated 45 degrees, and scaled so it is two meters high.

For some reason, it appears that even for a so-called "simple polygon", Algodoo will create about thirty vertices at each apparent vertex. Methinks this could be optimized.

I think that the surfaces array has each coordinate enclosed in three sets of brackets because a polygon can have holes in it.

[[Outer Polygon Coordinates], [Hole Coordinates]]
[[[x, y], [x, y], [x, y]], [[x, y], [x, y], [x, y]]]
Matthias Wandel is epic, in my humble opinion.
I love my brain...
TC42 wrote:Also, your sig is too big, please change it.

ARE YA HAPPY NOW?????

Thymechanic/Phundamentalist

Recently, I discovered something a lot of you probably already knew: Minecraft is awesome.
Due to this, I may not be as active as usual for a while.
User avatar
Someone Else
 
Posts: 1147
Joined: Sun Nov 21, 2010 10:53 pm
Location: The Milky Way Galaxy

Re: NEED HELP (honeycomb rims)

Postby windtalkers » Tue May 17, 2011 4:35 am

Someone Else wrote:The numbers are the vertices of the polygon.

If you put in surfaces := [[[0, -1], [1, 0], [0, 1], [-1, 0]]], you should get a square, rotated 45 degrees, and scaled so it is two meters high.

For some reason, it appears that even for a so-called "simple polygon", Algodoo will create about thirty vertices at each apparent vertex. Methinks this could be optimized.

I think that the surfaces array has each coordinate enclosed in three sets of brackets because a polygon can have holes in it.

[[Outer Polygon Coordinates], [Hole Coordinates]]
[[[x, y], [x, y], [x, y]], [[x, y], [x, y], [x, y]]]



Thank a lot! :thumbup: :clap:
windtalkers
 
Posts: 13
Joined: Thu May 05, 2011 7:03 am


Return to Tutorials

Who is online

Users browsing this forum: No registered users and 6 guests