Sorry your browser is not supported!

You are using an outdated browser that does not support modern web technologies, in order to use this site please update to a new browser.

Browsers supported include Chrome, FireFox, Safari, Opera, Internet Explorer 10+ or Microsoft Edge.

Code Snippets / [ DBC? / DBP ] 3D Hexagon tile

Author
Message
Dr Schnitzengruber
17
Years of Service
User Offline
Joined: 19th Jul 2007
Location: C:/Projects/failed/ schnitzengruber
Posted: 29th Aug 2007 22:10 Edited at: 8th Dec 2007 00:43
This code will make one 3d hexagon tile. The tile has a easily scalable 1*1*1 size and can be textured one limb at a time:

limb 0=Top Base
limb 1=Bottom Base
limb 2=Perimeter

createhex(object number)





Note: This hexagon isn't a perfect one. I designed the shape
to be like a hexagon and have a 1*1*1 size.

Attachments

Login to view attachments
Dr Schnitzengruber
17
Years of Service
User Offline
Joined: 19th Jul 2007
Location: C:/Projects/failed/ schnitzengruber
Posted: 29th Aug 2007 22:55 Edited at: 29th Aug 2007 22:56
I just finished making the second version. This version allows you to change some ratios on the hexagon to make it more perfect or easy to use.

You can adjust two values(le/he). Look at the picture to see what these mean.



createhex(object number,le or he,he or le)



Note: this version wouldn't work on DBC

If everything was back to normal, it would happen again.

Attachments

Login to view attachments
calcyman
17
Years of Service
User Offline
Joined: 31st Aug 2007
Location: The Uncertainty Principle
Posted: 5th Nov 2007 17:57
If it's 1*1*1 size, then the hexagon can't be regular.

Your signature has been erased by a hyper-intelligent pan-dimensional being (a mod)
aluseus GOD
17
Years of Service
User Offline
Joined: 19th Mar 2007
Location: I\'m here. Now I\'m there. I keep moving
Posted: 17th Nov 2007 21:54
a regular hexagon has sides all the same length.

alus.portbb.com go there.
[quote]A book. I hate books. book is stupid. I know that I need codes but I dont know the codes.[/quote} -zenicanin14 the stupidest user in the world.
BMacZero
18
Years of Service
User Offline
Joined: 30th Dec 2005
Location: E:/ NA / USA
Posted: 1st Dec 2007 15:38
Still, this is quite useful nonetheless. I had a project where I was making a hexagon-based board game, but I put it on the back burner because I was having trouble texturing the hexagonal tile I imported. This looks like it should do the trick

Cheers


[i"I don't have a Christmas tree, I have a Chemis-tree."[/i]
kaedroho
17
Years of Service
User Offline
Joined: 21st Aug 2007
Location: Oxford,UK
Posted: 2nd Dec 2007 18:09
not bad, it only took 32 ms to load a hexagon

Codger
21
Years of Service
User Offline
Joined: 23rd Nov 2002
Location:
Posted: 10th Mar 2008 03:31 Edited at: 10th Mar 2008 03:33
edit Sorry wrong forum

System
PIV 2.8 MZ 512 Mem
FX 5600 256 mem

Login to post a reply

Server time is: 2024-11-22 13:09:56
Your offset time is: 2024-11-22 13:09:56