Cov txheej txheem:

LED Cube Simulation Software: 5 Kauj Ruam
LED Cube Simulation Software: 5 Kauj Ruam
Anonim
LED Cube Simulation Software
LED Cube Simulation Software

Kuv yuav luag ua tiav kuv lub 8x8x8 LED lub voos xwmfab thiab nrog nws tuaj cov software no rau PC! Nws pab koj tsim cov duab thiab sim lawv ntawm lub vijtsam 2D ua ntej lawv rub mus rau 3D. Tsis muaj kev txhawb nqa (tseem) rau kev sib txuas lus los ntawm COM chaw nres nkoj ntawm PC mus rau arduino, txawm li cas los xij nws tuaj yeem tsim cov peev txheej uas tau nyuaj-coded rau hauv microcontroller tswj lub voos xwmfab, nrog nias lub pob. Yog tias koj tsis tau nyeem ntau dua hla qhov kev qhia no thiab rub tawm software ncaj qha. Cov kauj ruam tom ntej tsuas yog piav qhia seb yuav siv nws li cas. Qhov tseem ceeb! GeckoCube Animator 1.0 [BETA] yog beta version, kev ua haujlwm tau zoo tuaj yeem ploj thiab qhov haujlwm yuav poob yam tsis tau xav txog. Java yuav tsum tau khiav cov ntaub ntawv.jar.

Rub tawm

Kev Tso Tawm Tshiab - Quadrum (nrog rau kev txhawb nqa txuas):

Tso Tawm Qub:

Kauj Ruam 1: Tsim Koj Thawj Animation

Tsim Koj Thawj Animation
Tsim Koj Thawj Animation

Ua ntej koj tuaj yeem pib ua yeeb yaj kiab tam sim koj yuav tsum tsim cov yeeb yaj kiab tshiab hauv File> New Animation thiab xaiv sab kev daws teeb meem ntawm koj lub voos xwmfab, uas yog nws yog 8x8x8, 3x3x3 lossis txhua yam ntawm 2 thiab 16 rau qhov teeb meem ntawd. Yog hais tias lub voos xwmfab tsuas yog muaj peev xwm los tso ib qho xim tom qab ntawd kom ntseeg tau tias lub npov 'Unicolor' tau xaiv. Ntaus tsim thiab cov phiaj xwm ua yeeb yaj kiab yuav raug tsim.

Kauj Ruam 2: Cov Cuab Yeej Animation

Cov cuab yeej Animation
Cov cuab yeej Animation

Ntawm sab laug ntawm koj lub vijtsam koj tuaj yeem pom cov cuab yeej sib txawv muaj rau ua qhov ua kom pom tseeb. Pib los ntawm sab saum toj, qhov no yog qhov chaws tsim lub tshuab saib ua ntej ntu (thiab tsis yog, kuv tsis tuaj yeem sau lub npe luv rau qhov ntawd), qhov no yog qhov uas koj tuaj yeem tsim cov cai rau cov tsiaj ntawv zoo li lub npe qhia. Yog cov yeeb yaj kiab ntev dua 3 thav ntawv koj yuav tsum tau siv qhov 'Export Source Code' ua haujlwm hauv File> Export Source Code uas yuav tsim cov ntawv.txt nrog cov cai hloov. palette txoj cai hauv qab qhov chaw… xijpeem… ntu. Xaiv cov xim uas xav tau thiab pib pleev xim lub pixels rau sab xis, tau teeb tsa hauv cov txheej txheej txiav los ntawm lub voos xwmfab.

Yog tias kev cai xim yog qhov koj nyiam koj tuaj yeem nkag nws hauv hom hex (piv txwv li: 'FFAA00' lub ntsiab lus txiv kab ntxwv) hauv kab lus kev cai xim thiab nias sau. Qhov no yuav hloov ib qho ntawm cov xim kev cai khawm rau sab xis ntawm kab ntawv, xaiv nws thiab pib tha xim. Txhawm rau siv lwm txoj cai xim khawm koj xaiv nws ua ntej nkag mus rau hex.

Hauv qab cov xim palette peb muaj lub khoos phis tawj combo lub thawv. Yog tias koj lub voos xwmfab loj txaus qhov no yuav yog li cas koj xaiv cov khaubncaws sab nraud povtseg uas tshwm rau sab xis ntawm cov cuab yeej ua yeeb yaj kiab. Thaum kawg, muaj tus thawj coj thav duab. Qhov 'ntxiv' khawm tsim lub thav duab tshiab hauv qab qhov xaiv tam sim no. Lub pob 'tshem tawm' tshem tawm cov thav duab uas tau xaiv tam sim no. 'Luam' theej cov thav duab uas tau xaiv tam sim no thiab 'Muab tshuaj txhuam' muab nws tso rau daim duab uas tau xaiv tam sim no. Txhawm rau xaiv tus ncej koj nyem rau nws hauv daim ntawv teev npe. Saum toj no daim ntawv teev npe koj tuaj yeem nkag mus rau lub sijhawm ntawm cov thav duab uas tau xaiv tam sim no hauv vib nas this. Thiab nco ntsoov nias nkag mus! Lub thawv "Loop" yuav nyob ib puag ncig cov cai tsim tawm hauv 'thaum (muaj tseeb) {}'. Tam sim no koj tau nruab nrog qhov kev paub los pib ua yeeb yaj kiab, thiab peb tau npaj txhij txav mus rau kauj ruam 2, lossis tos nws yog 3? …

Kauj Ruam 3: Txuag thiab Qhib Txoj Haujlwm

Txuag thiab Qhib Txoj Haujlwm
Txuag thiab Qhib Txoj Haujlwm

Txhawm rau txuag cov tsiaj ntawv mus rau Cov Ntaub Ntawv >> Txuag thiab xaiv qhov chaw khaws tseg zoo li lub npe lub phiaj xwm. Qhov no yuav tsim ib daim ntawv.geca sawv rau GeckoCube Animation, vim tias … GECKOS! Thaum koj tom qab kaw qhov program thiab xav rov pib ua haujlwm ntawm cov animation mus rau File >> Qhib thiab xaiv txoj haujlwm xaus nrog '.geca'.

Kauj ruam 4: Ua si Animation

Ua si Animation
Ua si Animation

Thaum koj ua tiav nrog cov animation koj tuaj yeem sim nws hauv software. Mus rau Simulator >> Play Animation los ua nws. Txhawm rau rov qab kho dua mus rau Simulator >> Stop Animation.

Kauj ruam 5: Source Code Generator Settings

Source Code Generator Chaw
Source Code Generator Chaw

Nyob rau hauv Nqis >> Source Code Generator koj tuaj yeem xaiv yuav ua li cas lub tshuab hluav taws xob yuav tsum tsim cov cai. Qhov kev xav yog tias koj siv lub luag haujlwm zoo li 'setPixel' hauv cov cai ntawm lub voos xwmfab uas siv hauv pixel tswj thiab xim hauv RGB raws li kev nkag los teeb lub pixel ntawd rau xim dhau, Siv qee yam xws li 'hloov tshiab' tom qab txhua tus thav duab los ua lub voos xwmfab tso saib cov kho kom raug pixels. Cov syntax hauv qab no yog dab tsi uas siv los ntawm lub tshuab hluav taws xob: Rau ntau xim thiab unicolor: @x - Hloov nrog x sib koom ua ke ntawm pixel.@Y - Hloov nrog y ua haujlwm ntawm pixel. @r - Hloov nrog tus nqi xim liab.@g - Hloov nrog tus nqi xim ntsuab.@b - Hloov nrog tus nqi xim xiav. pixel yuav tsum tau kaw. Rau ncua tsuas yog: @s - Hloov nrog ncua hauv vib nas this.@ms - Hloov nrog ncua hauv ncua sij hawm milliseconds.@peb - Hloov nrog ncua hauv microseconds. Saib qhov pib teeb tsa ua piv txwv. Xaiv qhov 'Kab Tshiab 'khij lub npov yog tias koj xav kom lub tshuab hluav taws xob tsim kab tshiab tom qab txhua lub pixel hu (setPixel). Kho Raws li Unicolor ua rau lub tshuab hluav taws xob tsis quav ntsej qhov tseeb txoj haujlwm tau teeb tsa rau ntau xim thiab tsim cov lej zoo li nws yog xim ib leeg.

Pom zoo: