Skocz do zawartości
View in the app

A better way to browse. Learn more.

Max3D.pl

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

Featured Replies

Napisano

Witam, mam taki o to skrypcik:

black_color = color 0 0 0 255
p=convertToPoly (plane lengthsegs:30 widthsegs:30)
p.showVertexColors = on
nVerts = p.numverts
polyop.setNumMaps p 3
polyOp.setVertColor  p 0 #{1..nVerts} black_color

animate on
(
   for i=0 to 100 by 10 do 
       (
           at time i
       (            
           liczba = random 151 900
           kolorek = color (random 0 255) (random 0 255) (random 0 255) 255
           polyOp.setVertColor  p 0 #{1,5,6,7,7,12..10,150..liczba} kolorek            
       )
   )
)
p.forceSubdivision ()

Niestety, nie działa on tak jakbym chciał. Zamiast efektu który chce osiągnąć, czyli że w klatkach kluczowych kolory vertexów będą się różnić, nakłada kolejne warstwy i przez wszystkie klatki jest np coś takiego:

 

 

http://imageshack.us/photo/my-images/191/93550645.jpg/

 

 

może komuś się przyda. problem można rozwiązać następująco:

white_color = color 255 255 255
black_color = color 0 0 0 255
p=convertToPoly (plane lengthsegs:30 widthsegs:30)
p.showVertexColors = on
nVerts = p.numverts
polyop.setNumMaps p 0

fn updatecolor = 
   (
       now = currentTime.frame as integer + 1
       if now                  polyOp.setVertColor  p 0 #{1..nVerts} black_color  --zamaluj wszystkie vertexy na czarno               
                polyOp.setVertColor  p 0 now white_color               -- zamaluj vertex o numerze klatki na bialo
                p.forceSubdivision ()
       )    
   )
registerTimeCallback updatecolor

Edytowane przez piotrq

  • Wyświetleń 1,4k
  • Created
  • Ostatniej odpowiedzi

Jeśli chcesz dodać odpowiedź, zaloguj się lub zarejestruj nowe konto

Powiadomienie o plikach cookie

Wykorzystujemy cookies. Przeczytaj więcej Polityka prywatności

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.