Login
Username:

Password:

Remember me



Lost Password?

Register now!
Main Menu
Who's Online
18 user(s) are online (13 user(s) are browsing Gallery)

Members: 0
Guests: 18

more...
Top Posters

Gallery



Album list :: Last uploads :: Last comments :: Most viewed :: Top rated :: Search

Return to the thumbnail page Display/hide picture information Slideshow PICTURE 6/20 e-cards are disabled See next picture See previous picture
Click to view full size image
Field of dice
Been playing a bit with Kim's dice.
Started wondering how many (physical) alignments (limited to right angles) a die can have.
From an RL view it's simple. There are six sides that can be up, and for each of these there are four sides that can be on front. So, 24 combinations.
From a VR viewpoint, though, there are three axes that can have four rotations. So, 64 combinations.
Obviously the second set (seen above) contains some visual duplicates. Shouldn't take too long to find them. The question is what to do with them.

Technical stuff: The scene was compiled with ISL from a source file generated by a Basic program. After adjusting the camera position I added a standard lightball and decided not to bother with a floor.
If you wonder about the positioning, ground zero is in the middle of the field, and each cube's X and Y rotation is proportional to its distance from the base line. The Z rotation determines which quadrant each die is in.
It's probably easier to just show you the program code. This is inside three nested loops. (x = 0 to 3 and so on)

xm=1:ym=1
if z>1 then ym=-1
if z=0 or z=2 then xm=-1

px=(x*150+75)*xm:py=(y*150+75)*ym
ax=x*90:ay=y*90:az=z*90


Probably some more elegant way to do the if Z bits, but it worked...

(For the record, die is singular, dice is plural. Dices is a whole lot of'em.






Picture information
Filename:dicefield_1.jpg
Album name:Miscellaneous
Submitted by:Won-Tolla  
Keywords:dice test isl lightball
File Size:85 KB
Dimensions:1024 x 768 pixels
Displayed:255 times
Sent as ecard:0 times
The comments are owned by the poster. We aren't responsible for their content.


[ xcGallery 1RC1 powerd by myXoopsForge ]

Search
Powered by XOOPS © 2001-2009 The XOOPS Project