-
Notifications
You must be signed in to change notification settings - Fork 0
/
s3d_test.pov
3673 lines (3068 loc) · 154 KB
/
s3d_test.pov
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
// ---------------------------------------------------------------------------
// Space3D
// Free POV-Ray script for space scenes rendering
// Copyright (C) 2005-2009 Pyramid
// Contact: [email protected]
// Internet: http://space3d.no.sapo.pt/
//
// This script is distributed with ABSOLUTELY NO WARRANTY;
// See the GNU General Public License for more details,
// which can be found in doc/SPACE3D_LICENSE.txt
//
// Persistence of Vision Ray Tracer Scene Description File
// File : space3d_test.pov
// Description: Space3D scenes test suite
// Version : 0.48
// Date : 2012-12-21
// Author : Pyramid
// Scale : 1 POV Unit = 1km
// ---------------------------------------------------------------------------
// ---------------------------------------------------------------------------
// Global Settings
// ---------------------------------------------------------------------------
#version 3.6;
// ---------------------------------------------------------------------------
// Prerequisites
// ---------------------------------------------------------------------------
#declare SHOW_LABELS = true;
#declare SCENE_NUMBER = frame_number;
// Quality Settings for test & sample or final rendering
#declare render_quality = 1; // 1=full; 0=fast (mostly unused)
#declare show_debug = false;
#declare create_logfile = false;
// ---------------------------------------------------------------------------
// Include Files
// ---------------------------------------------------------------------------
#include "space3d.inc"
// ---------------------------------------------------------------------------
// Test Cases
// ---------------------------------------------------------------------------
// gas giant showcase
#if (SCENE_NUMBER = 96)
// syntax: Sun(vPosition, fIntensity)
Sun(<2000, 0, -100000>, 1)
// syntax: Camera(vPosition, vLookDirection, fCameraAngle)
Camera(<0,0,-3000>, <0,200,0>, 45)
//Camera1(1000)
//gas giant 2
#declare show = 1; #if (show)
#declare cSurfaceColor = rgb <0.22,0.33,0.66>;
#declare bMonoColor = 0;
#declare fColorDev = 20;
//object { QuickPlanet(1000) translate <4000,-1000,10000> }
object { GasGiant2(1000, cSurfaceColor, fColorDev, bMonoColor, seed(2345)) translate <4000,-1000,10000> }
#end
//gas giant 1
#declare show = 1; #if (show)
#declare cSurfaceColor = rgb <0.22,0.33,0.22>;
#declare bMonoColor = 0;
#declare fColorDev = 20;
//object { QuickPlanet(1000) translate <1000,1000,1000> }
object { GasGiant1(1000, cSurfaceColor, fColorDev, bMonoColor, seed(2345)) translate <1000,1000,1000> }
#end
//gas giant 3
#declare show = 1; #if (show)
#declare cSurfaceColor = rgb <0.11,0.33,0.33>;
#declare bMonoColor = 0;
#declare fColorDev = 20;
//object { QuickPlanet(1000) translate <-1000,-400,100> }
object { GasGiant3(1000, cSurfaceColor, fColorDev, bMonoColor, seed(2345)) translate <-1000,-400,100> }
#end
#end //SCENE
// faction color sprites for VegaMapAnd
#if (SCENE_NUMBER = 95)
#declare fSunRadius = 1e6; //4e6;
#declare cam_pos = <0, 0, -2.2*fSunRadius>;
#declare cam_dir = <0.00*fSunRadius, 0.00*fSunRadius, 1>;
#declare cam_ang = 45;
camera { location cam_pos right <image_width,0,0> up <0,image_height,0> look_at cam_dir angle cam_ang }
#declare sFactionNames = array[47] {
"Aera", "Aeran Merchant Marine", "Bzbr", "Rlaan", "Enforcers",
"Rlaan Briin", "Rlaan Hunters", "Rlaan Merchants", "Lmpl", "Nuhln",
"Saahasayaay", "Humanity&Confed", "Andolian", "Spaceborn", "Klk'k",
"Purth", "Highborn", "Homeland Security", "IntelSec", "Confed Navy",
"Exploratory Service", "Hunter", "GalMisBBS", "LIHW", "Mechanist",
"Merchant Guild", "Purist", "Shaper", "Dgn", "Unadorned",
"Mishtali", "CCCAW", "CPPTC", "Forsaken", "Shmrn",
"Uln", "Luddites", "Pirates", "ISO", "Unknown",
"Lightbearer", "SuCets", "SuSims", "Ancients A", "Ancients B",
"TWHON", "Hoffman's Blobs"};
#declare cFactionColors = array[52] {
<0.072, 0.294, 0.065>, <0.392, 0.527, 0.075>, <0.320, 0.965, 0.396>, <0.400, 0.000, 0.600>, <0.200, 0.000, 1.000>,
<0.588, 0.137, 0.453>, <0.600, 0.200, 1.000>, <0.800, 0.000, 1.000>, <1.000, 0.078, 0.576>, <0.545, 0.039, 0.314>, //10
<0.850, 0.150, 0.350>, <0.000, 0.000, 1.000>, <0.000, 0.119, 0.723>, <0.172, 0.352, 0.937>, <0.200, 0.300, 0.800>,
<0.100, 0.200, 0.700>, <0.000, 0.200, 1.000>, <0.000, 0.200, 0.400>, <0.000, 0.400, 1.000>, <0.000, 0.600, 1.000>, //20
<0.154, 0.931, 0.987>, <0.000, 0.209, 0.242>, <0.000, 0.449, 0.442>, <0.150, 0.250, 0.450>, <0.100, 0.100, 0.200>,
<0.200, 0.200, 0.550>, <1.000, 0.200, 0.000>, <0.200, 0.000, 0.000>, <0.400, 0.000, 0.000>, <0.164, 0.034, 0.071>, //30
<0.374, 0.137, 0.155>, <0.544, 0.028, 0.103>, <0.754, 0.231, 0.287>, <0.361, 0.200, 0.090>, <0.840, 0.250, 0.090>,
<0.502, 0.502, 0.000>, <1.000, 0.498, 0.000>, <1.000, 0.000, 0.000>, <1.000, 0.100, 0.100>, <0.300, 0.300, 0.300>, //40
<0.520, 0.550, 0.500>, <0.314, 0.446, 0.264>, <0.488, 0.796, 0.350>, <1.000, 0.800, 0.000>, <1.000, 0.800, 0.200>,
<1.000, 1.000, 0.000>, <0.736, 0.467, 0.681>, <128/255, 0, 255/255>, <1.000, 1.000, 1.000>, <0.000, 1.000, 1.000>,
<0.100, 0.100, 0.100>, <0.200, 0.200, 0.200>};
//#declare iColNumber = frame_number-1;
#declare iColNumber = 0;
//Star (Radius); max radius=5e6
#declare cColor = cFactionColors[iColNumber]*2;
object { StarColor(fSunRadius, cColor) }
#end //SCENE
// sun sprite for VegaMapAnd
#if (SCENE_NUMBER = 94)
#declare fSunRadius = 1e6; //4e6;
#declare cam_pos = <0, 0, -2.2*fSunRadius>;
#declare cam_dir = <0.00*fSunRadius, 0.00*fSunRadius, 1>;
#declare cam_ang = 45;
camera { location cam_pos right <image_width,0,0> up <0,image_height,0> look_at cam_dir angle cam_ang }
//Star (Radius); max radius=5e6
object { StarColor(fSunRadius, rgb <0.5,0.5,0.5>) }
#end //SCENE
// sun sprite for VegaMapAnd
#if (SCENE_NUMBER = 93)
#declare fSunRadius = 1e6; //4e6;
#declare cam_pos = <0, 0, -2.2*fSunRadius>;
#declare cam_dir = <0.00*fSunRadius, 0.00*fSunRadius, 1>;
#declare cam_ang = 45;
camera { location cam_pos right <image_width,0,0> up <0,image_height,0> look_at cam_dir angle cam_ang }
//Star (Radius); max radius=5e6
object { Star(fSunRadius) }
#end //SCENE
// sun closeup
#if (SCENE_NUMBER = 92)
#declare fSunRadius = 1e6; //4e6;
#declare cam_pos = <0, 0, -1.1*fSunRadius>;
#declare cam_dir = <0.35*fSunRadius, 0.35*fSunRadius, 1>;
#declare cam_ang = 45;
camera { location cam_pos right <image_width,0,0> up <0,image_height,0> look_at cam_dir angle cam_ang }
//Star (Radius); max radius=5e6
object { Star(fSunRadius) }
sky_sphere { P_StarField(rgb <0.8, 0.9, 1.0>, 1.0) }
#end //SCENE
// ring nebula 5
#if (SCENE_NUMBER = 91)
#declare STARFIELD_NR = frame_number;
#declare rPosition = seed (6741 + STARFIELD_NR);
#declare rColor = seed (1825 + STARFIELD_NR);
#declare rShape = seed (93265 + STARFIELD_NR);
#declare iColors = IRand(10,40,rColor);
#declare NEBULA_COLORS = array[iColors];
#declare I=0; #while (I<iColors)
#declare NEBULA_COLORS[I] = color rgb <RRand(0.0,1.0,rColor), RRand(0.0,1.0,rColor), RRand(0.0,1.0,rColor)>;
#declare I=I+1; #end
#declare NEBULA_COLORS[0] = color rgb <1.0, 0.0, 0.0>; //red
#declare NEBULA_COLORS[1] = color rgb <1.0, 0.5, 0.0>; //orange
#declare NEBULA_COLORS[2] = color rgb <1.0, 1.0, 0.0>; //yellow
#declare NEBULA_COLORS[3] = color rgb <1.0, 1.0, 0.5>; //yellow light
#declare NEBULA_COLORS[4] = color rgb <1.0, 1.0, 0.5>; //white
//#include "starfield.inc"
#declare V_Rotation = <RRand(-180,180,rPosition),RRand(-180,180,rPosition),RRand(-180,180,rPosition)>;
//NebulaSelect(iType,iNumber, fSize, cColors, fEmission, rShapeSeed, rColorSeed)
object { NebulaSelect(1,8,1,NEBULA_COLORS,0,rShape,rColor) rotate V_Rotation translate <0, 0, 4e4> }
//#include "starfield.inc"
sky_sphere { P_StarField(rgb <0.8, 0.9, 1.0>, 1.0) }
#end //SCENE
// experimental background star field "ready to go"
#if (SCENE_NUMBER = 90)
#declare STARFIELD_NR = 6; //frame_number; //mod(frame_number-1,6)+1; //range [1-6]
#declare rShape = seed (49825 + STARFIELD_NR);
#declare cStar = rgb <0.9, 0.9, 0.9>;
#declare cAura = rgb <0.6, 0.75, 1.0>;
#declare STAR_COLORS[0] = cStar; #declare STAR_COLORS[1] = cAura;
//StarConcentration(iType, fSizeMin, fSizeMax, iAmount, cColors, fIntensity, fThicknessPercent, rSeed)
object { StarConcentration(1, 5,10,2000,STAR_COLORS,1.0,0.2,rShape) rotate <0,0,30> }
//label
Camera1(1)
#if (SHOW_LABELS)
TitleText("O_StarConcentration01 (experimental)", 6, <0.9,0.9,0.0>)
#end
#end
// pigment star field
#if (SCENE_NUMBER = 89)
#declare STARFIELD_NR = 6; //frame_number; //mod(frame_number-1,6)+1; //range [1-6]
#declare rShape = seed (49825 + STARFIELD_NR);
sky_sphere { P_StarField(rgb<1,1,1>, 1.0) }
//label
Camera1(1)
#if (SHOW_LABELS)
TitleText("P_StarField", 6, <0.9,0.9,0.0>)
#end
#end
// Random explosion could nebula mCloudNebula08 from outside
#if (SCENE_NUMBER = 88)
#declare STARFIELD_NR = 6; //frame_number; //mod(frame_number-1,6)+1; //range [1-6]
#declare rShape = seed (1825 + STARFIELD_NR);
#declare rColor = seed (88225 + STARFIELD_NR);
#declare rPosition = seed (8741 + STARFIELD_NR);
#declare iColors = IRand(4,20,rColor);
#declare NEBULA_COLORS = array[iColors];
#declare I=0; #while (I<iColors)
#declare NEBULA_COLORS[I] = color rgb <RRand(0.3,0.5,rColor), RRand(0.3,0.5,rColor), RRand(0.9,1.0,rColor)>;
#declare I=I+1; #end
#declare show = 1; #if (show)
#declare V_Rotation = <RRand(-180,180,rPosition),RRand(-180,180,rPosition),RRand(-180,180,rPosition)>;
//NebulaSelect(iType,iNumber, fSize, cColors, fEmission, rShapeSeed, rColorSeed)
object { NebulaSelect(1,8,1,NEBULA_COLORS,0,rShape,rColor) rotate V_Rotation translate <0, 0, 4e4> }
#end
sky_sphere { P_StarField(rgb<1,1,1>, 1.0) }
//label
Camera1(1)
#if (SHOW_LABELS)
TitleText("Nebula translated to far distance", 6, <0.9,0.9,0.0>)
#end
#end
// triangle star test
#if (SCENE_NUMBER = 87)
#declare rStar = seed (561913);
#declare cStar = rgb <1.0, 1.0, 1.0>;
#declare cAura = rgb <0.7, 0.7, 1.0>;
#declare STAR_COLORS[0] = cStar; #declare STAR_COLORS[1] = cAura;
#declare show = 1; #if (show)
//mStarTriangle(fSizeMin, fSizeMax, aStarColors, fIntensity, rSeed)
object { mStarTriangle(1,1, STAR_COLORS, 1.0, rStar) scale 1 translate 50*z }
#end
//label
Camera1(1)
#if (SHOW_LABELS)
TitleText("Single Star closeup", 6, <0.9,0.9,0.0>)
#end
#end
//milkyway background - skysphere with mapped texture
#if (SCENE_NUMBER = 86)
// starmap from: http://maps.jpl.nasa.gov/stars.html
// From the Tycho star catalog, >1 million stars.
// Courtesy NASA/JPL-Caltech.
//camera { location <0,0,0> right <image_width,0,0> up <0,image_height,0> look_at <0,0,1> angle 90 rotate <0,0,0>}
//sky_sphere { pigment { image_map { tiff "maps/tycho8s.tif" map_type 1 interpolate 2 } } }
sky_sphere { pigment { image_map { jpeg "maps/milky_way.jpg" map_type 1 interpolate 2 } } }
//label
Camera1(1)
#if (SHOW_LABELS)
TitleText("Tycho Star Map", 6, <0.9,0.9,0.0>)
#end
#end
// spiral galaxy
#if (SCENE_NUMBER = 85)
#declare rShape = seed (5619);
#declare iArms = IRand(0,5,rShape)*2;
#declare vTurb = VRand(rShape)*100;
#declare fSpiral = rand(rShape)*2;
#declare fGlow = rand(rShape);
#declare fTurb = rand(rShape)*0.7;
#declare fColDev = rand(rShape);
//SpiralGalaxy(arms, Rand, spiralness, glowiness, turb, colShift)
object { SpiralGalaxy(iArms, vTurb, fSpiral, fGlow, fTurb, fColDev) rotate <40,-30,0> translate <0,0,2> }
sky_sphere { P_StarField(rgb<1,1,1>, 1.0) }
//label
Camera1(1)
#if (SHOW_LABELS)
TitleText("SpiralGalaxy", 6, <0.9,0.9,0.0>)
#end
#end //SCENE
// random background scene
#if (SCENE_NUMBER = 84) //ex.30
Camera1(1)
#declare STARFIELD_NR = 22; //frame_number;
#declare rPosition = seed (6741 + STARFIELD_NR);
#declare rColor = seed (34825 + STARFIELD_NR);
#declare rShape = seed (93265 + STARFIELD_NR);
#declare rStarfield = seed (1000 + STARFIELD_NR);
#declare NEBULA_COLORS = array[2];
#declare NEBULA_COLORS[0] = color rgb <RRand(0.8,1.0,rColor), RRand(0.0,0.3,rColor), RRand(0.0,0.1,rColor)>;
#declare NEBULA_COLORS[1] = color rgb <RRand(0.7,1.0,rColor), RRand(0.1,0.2,rColor), RRand(0.0,0.1,rColor)>;
#declare iBackgrounds = 1; //IRand(1,2,rStarfield);
#declare I=1; #while (I<=iBackgrounds)
#declare V_Rotation = <0,0,0>; //<RRand(-180,180,rPosition),RRand(-180,180,rPosition),RRand(-180,180,rPosition)>;
#declare iType = IRand(1,3,rStarfield);
#declare iBackground = IRand(1,8,rStarfield);
//NebulaSelect(iType,iNumber, fSize, cColors, fEmission, rShapeSeed, rColorSeed)
object { NebulaSelect(iType,iBackground,1,NEBULA_COLORS,0.05/iBackgrounds,rShape,rColor) rotate V_Rotation translate <-0.01, 0, 0> }
#declare I=I+1; #end
#declare show = 1; #if (show)
sky_sphere { P_StarField(rgb<1,1,1>, 1.0) }
#end
//label
#if (SHOW_LABELS)
TitleText("random NebulaSelect", 6, <0.9,0.9,0.0>)
#end
#end //SCENE
// background nebula 2
#if (SCENE_NUMBER = 83)
#declare STARFIELD_NR = frame_number;
#declare rPosition = seed (6741 + STARFIELD_NR);
#declare rColor = seed (34825 + STARFIELD_NR);
#declare rShape = seed (93265 + STARFIELD_NR);
#declare NEBULA_COLORS = array[2];
#declare NEBULA_COLORS[0] = color rgb <RRand(0.0,0.1,rColor), RRand(0.0,0.2,rColor), RRand(0.2,0.5,rColor)>;
#declare NEBULA_COLORS[1] = color rgb <RRand(0.2,0.3,rColor), RRand(0.2,0.3,rColor), RRand(0.1,0.3,rColor)>;
#declare V_Rotation = <RRand(-180,180,rPosition),RRand(-180,180,rPosition),RRand(-180,180,rPosition)>;
//NebulaSelect(iType,iNumber, fSize, cColors, fEmission, rShapeSeed, rColorSeed)
object { NebulaSelect(3,2,1,NEBULA_COLORS,0.04,rShape,rColor) rotate V_Rotation translate <0, 0, 0> }
sky_sphere { P_StarField(rgb<1,1,1>, 1.0) }
//label
Camera1(1)
#if (SHOW_LABELS)
TitleText("NebulaSelect type=3 nr=2 (mBackgroundNebula02)", 6, <0.9,0.9,0.0>)
#end
#end //SCENE
// background nebula 1
#if (SCENE_NUMBER = 82) //ex.28
#declare STARFIELD_NR = 1; //frame_number;
#declare rPosition = seed (6741 + STARFIELD_NR);
#declare rColor = seed (34825 + STARFIELD_NR);
#declare rShape = seed (93265 + STARFIELD_NR);
#declare NEBULA_COLORS = array[2];
#declare NEBULA_COLORS[0] = color rgb <RRand(0.5,0.8,rColor), RRand(0.0,0.8,rColor), RRand(0.0,0.1,rColor)>;
#declare NEBULA_COLORS[1] = color rgb <RRand(0.0,0.1,rColor), RRand(0.0,0.3,rColor), RRand(0.5,0.7,rColor)>;
#declare V_Rotation = <-40,0,30>;
//NebulaSelect(iType,iNumber, fSize, cColors, fEmission, rShapeSeed, rColorSeed)
object { NebulaSelect(3,1,1,NEBULA_COLORS,0.0,rShape,rColor) rotate V_Rotation translate <0, 0, 0> }
sky_sphere { P_StarField(rgb<1,1,1>, 1.0) }
//label
Camera1(1)
#if (SHOW_LABELS)
TitleText("NebulaSelect type=3 nr=1 (mBackgroundNebula01)", 6, <0.9,0.9,0.0>)
#end
#end //SCENE
// ring nebula 1
#if (SCENE_NUMBER = 81) //ex.27
#declare STARFIELD_NR = 1; //frame_number;
#declare rPosition = seed (6741 + STARFIELD_NR);
#declare rColor = seed (34825 + STARFIELD_NR);
#declare rShape = seed (93265 + STARFIELD_NR);
#declare NEBULA_COLORS = array[2];
#declare NEBULA_COLORS[0] = color rgb <RRand(0.5,0.8,rColor), RRand(0.0,0.3,rColor), RRand(0.0,0.1,rColor)>;
#declare NEBULA_COLORS[1] = color rgb <RRand(0.0,0.1,rColor), RRand(0.0,0.3,rColor), RRand(0.5,0.7,rColor)>;
#declare V_Rotation = <RRand(-180,180,rPosition),RRand(-180,180,rPosition),RRand(-180,180,rPosition)>;
//NebulaSelect(iType,iNumber, fSize, cColors, fEmission, rShapeSeed, rColorSeed)
object { NebulaSelect(2,1,1,NEBULA_COLORS,0,rShape,rColor) rotate V_Rotation translate <0, 0, 5> }
sky_sphere { P_StarField(rgb<1,1,1>, 1.0) }
//label
Camera1(1)
#if (SHOW_LABELS)
TitleText("NebulaSelect type=2 nr=1 (mRingNebula01)", 6, <0.9,0.9,0.0>)
#end
#end //SCENE
// cloud nebula 8
#if (SCENE_NUMBER = 80)
Camera1(1)
#declare STARFIELD_NR = frame_number;
#declare rPosition = seed (6741 + STARFIELD_NR);
#declare rColor = seed (34825 + STARFIELD_NR);
#declare rShape = seed (93265 + STARFIELD_NR);
#declare NEBULA_COLORS = array[2];
#declare NEBULA_COLORS[0] = color rgb <RRand(0.0,0.1,rColor), RRand(0.8,1.0,rColor), RRand(0.0,0.1,rColor)>;
#declare NEBULA_COLORS[1] = color rgb <RRand(0.0,0.1,rColor), RRand(0.1,0.3,rColor), RRand(0.5,0.9,rColor)>;
#declare V_Rotation = <RRand(-180,180,rPosition),RRand(-180,180,rPosition),RRand(-180,180,rPosition)>;
//NebulaSelect(iType,iNumber, fSize, cColors, fEmission, rShapeSeed, rColorSeed)
object { NebulaSelect(1,8,1,NEBULA_COLORS,1,rShape,rColor) rotate V_Rotation translate <0, 0, 0> }
sky_sphere { P_StarField(rgb<1,1,1>, 1.0) }
//label
#if (SHOW_LABELS)
TitleText("NebulaSelect type=1 nr=8 (mCloudNebula08)", 6, <0.9,0.9,0.0>)
#end
#end //SCENE
// cloud nebula 7
#if (SCENE_NUMBER = 79) //ex.26
Camera1(1)
#declare STARFIELD_NR = 4; //frame_number;
#declare rPosition = seed (6741 + STARFIELD_NR);
#declare rColor = seed (34825 + STARFIELD_NR);
#declare rShape = seed (93265 + STARFIELD_NR);
#declare NEBULA_COLORS = array[2];
#declare NEBULA_COLORS[0] = ColorHSL(200,70,80);
#declare NEBULA_COLORS[1] = ColorHSL(200,70,80);
#declare V_Rotation = <RRand(-180,180,rPosition),RRand(-180,180,rPosition),RRand(-180,180,rPosition)>;
//NebulaSelect(iType,iNumber, fSize, cColors, fEmission, rShapeSeed, rColorSeed)
object { NebulaSelect(1,7,1500,NEBULA_COLORS,0.1,rShape,rColor) rotate V_Rotation translate <0, 0, 0> }
sky_sphere { P_StarField(rgb<1,1,1>, 1.0) }
//label
#if (SHOW_LABELS)
TitleText("NebulaSelect type=1 nr=7 (mCloudNebula07)", 6, <0.9,0.9,0.0>)
#end
#end //SCENE
// cloud nebula 6
#if (SCENE_NUMBER = 78) //ex.25
#declare STARFIELD_NR = frame_number;
#declare rPosition = seed (6741 + STARFIELD_NR);
#declare rColor = seed (34825 + STARFIELD_NR);
#declare rShape = seed (93265 + STARFIELD_NR);
#declare NEBULA_COLORS = array[2];
#declare NEBULA_COLORS[0] = color rgb <RRand(0.9,1.0,rColor), RRand(0.0,0.3,rColor), RRand(0.0,0.1,rColor)>;
#declare NEBULA_COLORS[1] = color rgb <RRand(0.9,1.0,rColor), RRand(0.0,0.3,rColor), RRand(0.0,0.1,rColor)>;
//#declare USE_OBJECT_NUMBER = 46;
#declare V_Rotation = <RRand(-180,180,rPosition),RRand(-180,180,rPosition),RRand(-180,180,rPosition)>;
//NebulaSelect(iType,iNumber, fSize, cColors, fEmission, rShapeSeed, rColorSeed)
object { NebulaSelect(1,6,1,NEBULA_COLORS,0.1,rShape,rColor) rotate V_Rotation translate <0, 0, 0> }
sky_sphere { P_StarField(rgb<1,1,1>, 1.0) }
//label
Camera1(1)
#if (SHOW_LABELS)
TitleText("NebulaSelect type=1 nr=6 (mCloudNebula06)", 6, <0.9,0.9,0.0>)
#end
#end //SCENE
// ring nebula 5
#if (SCENE_NUMBER = 77) //ex.24
#declare STARFIELD_NR = 30; //frame_number;
#declare rPosition = seed (6741 + STARFIELD_NR);
#declare rColor = seed (1825 + STARFIELD_NR);
#declare rShape = seed (93265 + STARFIELD_NR);
#declare NEBULA_COLORS = array[2];
#declare NEBULA_COLORS[0] = color rgb <RRand(0.9,1.0,rColor), RRand(0.0,0.3,rColor), RRand(0.0,0.1,rColor)>;
#declare NEBULA_COLORS[1] = color rgb <RRand(0.9,1.0,rColor), RRand(0.0,0.3,rColor), RRand(0.0,0.1,rColor)>;
#declare V_Rotation = <RRand(-180,180,rPosition),RRand(-180,180,rPosition),RRand(-180,180,rPosition)>;
//NebulaSelect(iType,iNumber, fSize, cColors, fEmission, rShapeSeed, rColorSeed)
object { NebulaSelect(1,5,1,NEBULA_COLORS,0.1,rShape,rColor) rotate V_Rotation translate <0, 0, 0> }
sky_sphere { P_StarField(rgb<1,1,1>, 1.0) }
//label
Camera1(1)
#if (SHOW_LABELS)
TitleText("NebulaSelect type=1 nr=5 (mCloudNebula05)", 6, <0.9,0.9,0.0>)
#end
#end //SCENE
// dense cloud nebula 4
#if (SCENE_NUMBER = 76) //ex.22
#declare STARFIELD_NR = frame_number;
#declare rPosition = seed (6741 + STARFIELD_NR);
#declare rColor = seed (1825 + STARFIELD_NR);
#declare rShape = seed (5619 + STARFIELD_NR);
#declare NEBULA_COLORS = array[2];
#declare NEBULA_COLORS[0] = color rgb <RRand(0.5,1.0,rColor), RRand(0.0,0.5,rColor), RRand(0.0,0.5,rColor)>;
#declare NEBULA_COLORS[1] = color rgb <RRand(0.5,1.0,rColor), RRand(0.0,0.5,rColor), RRand(0.0,0.1,rColor)>;
#declare V_Rotation = <RRand(-180,180,rPosition),RRand(-180,180,rPosition),RRand(-180,180,rPosition)>;
//NebulaSelect(iType,iNumber, fSize, cColors, fEmission, rShapeSeed, rColorSeed)
object { NebulaSelect(1,4,1,NEBULA_COLORS,0.1,rShape,rColor) rotate V_Rotation translate <0, 0, 0> }
sky_sphere { P_StarField(rgb<1,1,1>, 1.0) }
//label
Camera1(1)
#if (SHOW_LABELS)
TitleText("NebulaSelect type=1 nr=4 (mCloudNebula04)", 6, <0.9,0.9,0.0>)
#end
#end //SCENE
// dense cloud nebula 3
#if (SCENE_NUMBER = 75)
Camera1(1)
#declare STARFIELD_NR = frame_number;
#declare rPosition = seed (6741 + STARFIELD_NR);
#declare rColor = seed (1825 + STARFIELD_NR);
#declare rShape = seed (5218 + STARFIELD_NR);
#declare NEBULA_COLORS = array[2];
#declare NEBULA_COLORS[0] = color rgb <RRand(0.5,1.0,rColor), RRand(0.0,0.5,rColor), RRand(0.0,0.5,rColor)>;
#declare NEBULA_COLORS[1] = color rgb <RRand(0.5,1.0,rColor), RRand(0.5,1.0,rColor), RRand(0.0,0.1,rColor)>;
#declare V_Rotation = <RRand(-180,180,rPosition),RRand(-180,180,rPosition),RRand(-180,180,rPosition)>;
//NebulaSelect(iType,iNumber, fSize, cColors, fEmission, rShapeSeed, rColorSeed)
object { NebulaSelect(1,3,1,NEBULA_COLORS,0.1,rShape,rColor) rotate V_Rotation translate <0, 0, 0> }
sky_sphere { P_StarField(rgb<1,1,1>, 1.0) }
//label
#if (SHOW_LABELS)
TitleText("NebulaSelect type=1 nr=3 (mCloudNebula03)", 6, <0.9,0.9,0.0>)
#end
#end //SCENE
// dense cloud nebula 2
#if (SCENE_NUMBER = 74)
Camera1(1)
#declare STARFIELD_NR = frame_number;
#declare rPosition = seed (6741 + STARFIELD_NR);
#declare rColor = seed (2325 + STARFIELD_NR);
#declare rShape = seed (5218 + STARFIELD_NR);
//fixed colors
#declare NEBULA_COLORS = array[2];
#declare NEBULA_COLORS[0] = color rgb <RRand(0.5,1.0,rColor), RRand(0.0,0.5,rColor), RRand(0.0,0.5,rColor)>;
#declare NEBULA_COLORS[1] = color rgb <RRand(0.5,1.0,rColor), RRand(0.5,1.0,rColor), RRand(0.0,0.1,rColor)>;
//random colors
#declare iColors = IRand(4,10,rColor);
#declare cBaseColor = color rgb <RRand(0.3,0.5,rColor), RRand(0.0,0.5,rColor), RRand(0.0,0.5,rColor)>;
#declare NEBULA_COLORS = array[iColors];
#declare I=0; #while (I<iColors)
#declare NEBULA_COLORS[I] = color rgb <RRand(0.0,0.4,rColor), RRand(0.0,0.4,rColor), RRand(0.0,0.4,rColor)>;
#declare I=I+1; #end
#declare V_Rotation = <RRand(-180,180,rPosition),RRand(-180,180,rPosition),RRand(-180,180,rPosition)>;
//NebulaSelect(iType,iNumber, fSize, cColors, fEmission, rShapeSeed, rColorSeed)
object { NebulaSelect(1,2,1,NEBULA_COLORS,0.1,rShape,rColor) rotate V_Rotation translate <0, 0, 0> }
sky_sphere { P_StarField(rgb<1,1,1>, 1.0) }
//label
#if (SHOW_LABELS)
TitleText("NebulaSelect type=1 nr=2 (mCloudNebula02)", 6, <0.9,0.9,0.0>)
#end
#end //SCENE
// dense cloud nebula 1
#if (SCENE_NUMBER = 73)
Camera1(1)
#declare STARFIELD_NR = frame_number;
#declare rPosition = seed (6741 + STARFIELD_NR);
#declare rColor = seed (1825 + STARFIELD_NR);
#declare rShape = seed (5218 + STARFIELD_NR);
//random colors
#declare iColors = IRand(10,20,rColor);
#declare NEBULA_COLORS = array[iColors];
#declare I=0; #while (I<iColors)
#declare NEBULA_COLORS[I] = color rgb <RRand(0.0,0.4,rColor), RRand(0.0,0.4,rColor), RRand(0.0,0.4,rColor)>;
#declare I=I+1; #end
#declare V_Rotation = <RRand(-180,180,rPosition),RRand(-180,180,rPosition),RRand(-180,180,rPosition)>;
//NebulaSelect(iType,iNumber, fSize, cColors, fEmission, rShapeSeed, rColorSeed)
object { NebulaSelect(1,1,1,NEBULA_COLORS,0.1,rShape,rColor) rotate V_Rotation translate <0, 0, 0> }
sky_sphere { P_StarField(rgb<1,1,1>, 1.0) }
//label
#if (SHOW_LABELS)
TitleText("NebulaSelect type=1 nr=1 (mCloudNebula01)", 6, <0.9,0.9,0.0>)
#end
#end //SCENE
// galaxy cluster with random colors
#if (SCENE_NUMBER = 72)
Camera1(1)
#declare SeedS = seed(3456+frame_number);
//common parameters
#declare fDistrAngle = 2; //star cluster size
//globular galaxy core
#declare vExcentricity = <1, 1, 1>;
#declare vOrientation = <0, 0, 0>; //star cluster orientation
#declare STARFIELD = 1; #while (STARFIELD <= 5)
#declare cStar = rgb <RRand(0.3,0.7,SeedS), RRand(0.3,0.7,SeedS), 1>; //RandomColor(IRand(1,8,SeedS),SeedS, 30)
#declare STAR_COLORS[0] = cStar; #declare STAR_COLORS[1] = cStar;
#declare fIntensity = 3*RRand(2.8,3.5,SeedS);
#declare iAmount = 500*fDistrAngle; //pow(STARFIELD,1.5);
#declare fSizeMin = RRand(2,5,SeedS);
#declare fSizeMax = fSizeMin*2;
//O_StarCluster(fSizeMin, fSizeMax, iAmount, aColors, fIntensity, fDistrAngle, vOrientation, vExcentricity, rSeed)
object { StarCluster(fSizeMin, fSizeMax, iAmount, STAR_COLORS, fIntensity, fDistrAngle, vOrientation, vExcentricity, SeedS) }
#declare STARFIELD=STARFIELD+1; #end
//tubular galaxy rims
#declare vExcentricity = <5, 0.1, 5>; //<5, 0.01, 5>;
#declare vOrientation = <-10, 0, 20>; //star cluster orientation
#declare STARFIELD = 1; #while (STARFIELD <= 10) //50
#declare cStar = RandomColor(IRand(1,14,SeedS),SeedS, 50)
#declare STAR_COLORS[0] = cStar; #declare STAR_COLORS[1] = cStar;
#declare fIntensity = 2*RRand(2.8,3.5,SeedS);
#declare iAmount = 100*fDistrAngle; //pow(STARFIELD,2);
#declare fSizeMin = RRand(2,5,SeedS); //10*STARFIELD/2.5;
#declare fSizeMax = fSizeMin*2;
//O_StarCluster(fSizeMin, fSizeMax, iAmount, aColors, fIntensity, fDistrAngle, vOrientation, vExcentricity, rSeed)
object { StarCluster(fSizeMin, fSizeMax, iAmount, STAR_COLORS, fIntensity, fDistrAngle, vOrientation, vExcentricity, SeedS) }
#declare STARFIELD=STARFIELD+1; #end
//label
#if (SHOW_LABELS)
TitleText("StarCluster x10 galaxy", 10, <0.9,0.9,0.0>)
#end
#end
// galaxy cluster
#if (SCENE_NUMBER = 71)
Camera1(1)
#declare SeedS = seed(345+frame_number);
//common parameters
#declare cStar = rgb <0.7,0.7,1.0>;
#declare cAura = rgb <0.7,0.7,1.0>;
#declare STAR_COLORS[0] = cStar; #declare STAR_COLORS[1] = cAura;
#declare fDistrAngle = 2; //star cluster size
//globular galaxy core
#declare vExcentricity = <1, 1, 1>;
#declare vOrientation = <0, 0, 0>; //star cluster orientation
#declare STARFIELD = 1; #while (STARFIELD <= 5)
#declare fIntensity = RRand(1.3,2.0,SeedS);
#declare iAmount = 400*fDistrAngle/pow(STARFIELD,2);
#declare fSizeMin = 5*STARFIELD/2.5;
#declare fSizeMax = fSizeMin*2;
//O_StarCluster(fSizeMin, fSizeMax, iAmount, aColors, fIntensity, fDistrAngle, vOrientation, vExcentricity, rSeed)
object { StarCluster(fSizeMin, fSizeMax, iAmount, STAR_COLORS, fIntensity, fDistrAngle, vOrientation, vExcentricity, SeedS) }
#declare STARFIELD=STARFIELD+1; #end
//tubular galaxy rims
#declare vExcentricity = <5, 0.1, 0.1>;
#declare vOrientation = <0, 0, -60>; //star cluster orientation
#declare STARFIELD = 1; #while (STARFIELD <= 5)
#declare fIntensity = RRand(1.3,2.0,SeedS);
#declare iAmount = 400*fDistrAngle/pow(STARFIELD,2);
#declare fSizeMin = 10*STARFIELD/3.5;
#declare fSizeMax = fSizeMin*2;
//O_StarCluster(fSizeMin, fSizeMax, iAmount, aColors, fIntensity, fDistrAngle, vOrientation, vExcentricity, rSeed)
object { StarCluster(fSizeMin, fSizeMax, iAmount, STAR_COLORS, fIntensity, fDistrAngle, vOrientation, vExcentricity, SeedS) }
#declare STARFIELD=STARFIELD+1; #end
//label
#if (SHOW_LABELS)
TitleText("StarCluster x10 galaxy", 10, <0.9,0.9,0.0>)
#end
#end
// cloud nebula
#if (SCENE_NUMBER = 70)
Camera1(1)
#declare SeedS = seed(345+frame_number);
#declare oStarField = sky_sphere {
P_StarField(rgb<1,1,1>, 1.0)
#declare I=0; #while (I<5)
#declare cStar = rgb <0.0, 0.0, RRand(0.0,1.0,SeedS)>*RRand(0.5,1.5,SeedS);
#declare cAura = rgb <0.0, RRand(0.0,1.0,SeedS), RRand(0.0,1.0,SeedS)>*RRand(1.0,2.0,SeedS);
#declare STAR_COLORS[0] = cStar; #declare STAR_COLORS[1] = cAura;
#declare fStarIntensity = RRand(1.0,2.0,SeedS);
#declare fTurbulence = RRand(1.8,2.2,SeedS);
#declare vPosition = <180,0,0>*RRand(0.95,1.05,SeedS);
pigment { P_CloudNebula(2, STAR_COLORS,fStarIntensity,fTurbulence,<0,0,0>,SeedS) rotate vPosition }
#declare I=I+1; #end
}
sky_sphere { oStarField }
//label
#if (SHOW_LABELS)
TitleText("P_CloudNebula x5 turbulence=1.9", 10, <0.9,0.9,0.0>)
#end
#end
// cloud nebula
#if (SCENE_NUMBER = 69)
Camera1(1)
#declare SeedS = seed(345+frame_number);
#declare oStarField = sky_sphere {
P_StarField(rgb<1,1,1>, 1.0)
#declare I=0; #while (I<1)
#declare cStar = rgb <1.0, RRand(0.0,0.9,SeedS), 0>*0.5; //*RRand(0.2,1.0,SeedS); //<0.9, 0.9, 0.9>;
#declare cAura = rgb <1.0, RRand(0.0,0.9,SeedS), 0.0>*0.5; //*RRand(1.0,3.0,SeedS);
#declare STAR_COLORS[0] = cStar; #declare STAR_COLORS[1] = cAura;
#declare fStarIntensity = 1.0;
#declare fTurbulence = 1.9; //RRand(1.8,2.2,SeedS);
#declare vPosition = <180,0,0>*RRand(0.95,1.05,SeedS);
pigment { P_CloudNebula(4, STAR_COLORS,fStarIntensity,fTurbulence,<0,0,0>,SeedS) rotate vPosition }
#declare I=I+1; #end
}
sky_sphere { oStarField }
//label
#if (SHOW_LABELS)
TitleText("P_CloudNebula type=4 turbulence=1.9", 10, <0.9,0.9,0.0>)
#end
#end
// star nebula
#if (SCENE_NUMBER = 68)
Camera1(1)
#declare SeedS = seed(345+frame_number);
#declare oStarField = sky_sphere {
P_StarField(rgb<1,1,1>, 1.0)
#declare I=0; #while (I<5)
#declare cStar = rgb <1.0, RRand(0.0,0.9,SeedS), 0>*RRand(0.2,1.0,SeedS); //<0.9, 0.9, 0.9>;
#declare cAura = rgb <1.0, RRand(0.0,0.9,SeedS), 0.0>*RRand(1.0,3.0,SeedS);
#declare STAR_COLORS[0] = cStar; #declare STAR_COLORS[1] = cAura;
#declare fStarIntensity = 2.0;
#declare fTurbulence = 2.0; //RRand(1.8,2.2,SeedS);
#declare vPosition = <180,0,0>*RRand(0.95,1.05,SeedS);
pigment { P_StarNebula(STAR_COLORS,fStarIntensity,fTurbulence,<0,0,0>,SeedS) rotate vPosition }
#declare I=I+1; #end
}
sky_sphere { oStarField }
//label
#if (SHOW_LABELS)
TitleText("P_StarNebula x5 turbulence=2.5", 10, <0.9,0.9,0.0>)
#end
#end
// star nebula
#if (SCENE_NUMBER = 67)
Camera1(1)
#declare cStar = rgb <1.0, 0.9, 0>*0.5;
#declare cAura = rgb <1.0, 0.0, 0.0>*1.5;
#declare STAR_COLORS[0] = cStar; #declare STAR_COLORS[1] = cAura;
#declare fStarIntensity = 2.0;
#declare SeedS = seed(345+frame_number);
#declare vPosition = <180,0,0>;
#declare oStarField = sky_sphere {
P_StarField(rgb<1,1,1>, 1.0) rotate vPosition
pigment { P_StarNebula(STAR_COLORS,fStarIntensity,1.0,<0,0,0>,SeedS) rotate vPosition }
}
sky_sphere { oStarField }
//label
#if (SHOW_LABELS)
TitleText("P_StarNebula turbulence=1.0", 10, <0.9,0.9,0.0>)
#end
#end
// random star clusters
#if (SCENE_NUMBER = 66)
Camera1(1)
#declare STARFIELD_NR = 4; //frame_number;
#declare SeedS = seed(123+STARFIELD_NR);
#declare STARFIELDS_NO = 6; //IRand(2,4,SeedS);
//common parameters
#declare cStar = rgb <0.9, 0.9, 0.9>;
#declare cAura = rgb <0.6, 0.75, 1.0>;
#declare STAR_COLORS[0] = cStar; #declare STAR_COLORS[1] = cAura;
#declare fViewAngle = 30; //star cluster size
#declare vExcentricity = <1, 1, 1>;
#declare vOrientation = <0, 0, 0>;
#declare I=1; #while (I<STARFIELDS_NO)
//common parameters
#declare STAR_COLORS[0] = rgb <0.9, 0.9, 0.9>;
#declare STAR_COLORS[1] = rgb <RRand(0.7,0.8,SeedS), RRand(0.8,0.9,SeedS), RRand(0.9,1.0,SeedS)>;
#declare fViewAngle = RRand(3,50,SeedS); //star cluster size
#declare vExcentricity = <RRand(2.0,10.0,SeedS), 1, 1>;
#declare vOrientation = <0, 0, RRand(-90,90,SeedS)>;
// big stars
//#declare iAmount = 2000;
#if (I=1) #declare iAmount = 1000; #else #declare iAmount = IRand(2000,5000,SeedS); #end
#declare fSizeMin = RRand(2,5,SeedS);
#declare fSizeMax = RRand(6,12,SeedS);
//O_StarCluster(fSizeMin, fSizeMax, iAmount, aColors, fIntensity, fDistrAngle, vOrientation, vExcentricity, rSeed)
object { StarCluster(fSizeMin, fSizeMax, iAmount, STAR_COLORS, 2.0, fViewAngle, vOrientation, vExcentricity, SeedS) }
#declare I=I+1; #end
//label
#if (SHOW_LABELS)
TitleText("Random StarClusters", 10, <0.9,0.9,0.0>)
#end
#end
// star cluster triple mix
#if (SCENE_NUMBER = 65)
Camera1(1)
#declare STARFIELD_NR = frame_number;
#declare SeedS = seed(12345+STARFIELD_NR);
//common parameters
#declare cStar = rgb <0.9, 0.9, 0.9>;
#declare cAura = rgb <0.6, 0.75, 1.0>;
#declare STAR_COLORS[0] = cStar; #declare STAR_COLORS[1] = cAura;
#declare fViewAngle = 30; //star cluster size
#declare vExcentricity = <1, 1, 1>;
#declare vOrientation = <0, 0, 0>;
// big stars
#declare iAmount = 2000;
#declare fSizeMin = 5;
#declare fSizeMax = 12;
//O_StarCluster(fSizeMin, fSizeMax, iAmount, aColors, fIntensity, fDistrAngle, vOrientation, vExcentricity, rSeed)
object { StarCluster(fSizeMin, fSizeMax, iAmount, STAR_COLORS, 2.0, fViewAngle, vOrientation, vExcentricity, SeedS) }
// small stars
#declare iAmount = 10000; //10000;
#declare fSizeMin = 2;
#declare fSizeMax = 5;
//O_StarCluster(fSizeMin, fSizeMax, iStarAmount, aStarColors, fIntensity, fDistrAngle, vOrientation, vExcentricity, rSeed)
object { StarCluster(fSizeMin, fSizeMax, iAmount, STAR_COLORS, 1.5, fViewAngle, vOrientation, vExcentricity, SeedS) }
// tiny starsd
#declare iAmount = 20000; //20000;
#declare fSizeMin = 1;
#declare fSizeMax = 3;
//O_StarCluster(fSizeMin, fSizeMax, iAmount, aColors, fIntensity, fDistrAngle, vOrientation, vExcentricity, rSeed)
object { StarCluster(fSizeMin, fSizeMax, iAmount, STAR_COLORS, 1.0, fViewAngle, vOrientation, vExcentricity, SeedS) }
//label
#if (SHOW_LABELS)
TitleText("StarCluster x3 mix", 10, <0.9,0.9,0.0>)
#end
#end
// mix: excentric star cluster with small and large background stars
#if (SCENE_NUMBER = 64)
Camera1(1)
#declare STARFIELD_NR = frame_number;
#declare SeedS = seed(1234567+STARFIELD_NR);
// a red streak
#declare cStar = rgb <0.9, 0.9, 0.9>*1.5;
#declare cAura = rgb <1.0, 0.75, 0.6>;
#declare STAR_COLORS[0] = cStar; #declare STAR_COLORS[1] = cAura;
#declare iAmount = 2000;
#declare fSizeMin = 2;
#declare fSizeMax = 10;
#declare fViewAngle = 5; //star cluster size
#declare vExcentricity = <6, 0.5, 0.5>;
#declare vOrientation = <0, 0, -45>; //star cluster position
//O_StarCluster(fSizeMin, fSizeMax, iAmount, aColors, fIntensity, fDistrAngle, vOrientation, vExcentricity, rSeed)
object { StarCluster(fSizeMin, fSizeMax, iAmount, STAR_COLORS, 3.0, fViewAngle, vOrientation, vExcentricity, SeedS) }
//globular cluster
#declare cStar = rgb <0.9, 0.9, 0.9>;
#declare cAura = rgb <0.6, 0.75, 1.0>;
#declare STAR_COLORS[0] = cStar; #declare STAR_COLORS[1] = cAura;
#declare iAmount = 10000;
#declare fSizeMin = 2;
#declare fSizeMax = 10;
#declare fViewAngle = 30; //star cluster size
#declare vExcentricity = <1, 1, 1>;
#declare vOrientation = <0, 0, 0>; //star cluster position
//O_StarCluster(fSizeMin, fSizeMax, iStarAmount, aStarColors, fIntensity, fDistrAngle, vOrientation, vExcentricity, rSeed)
object { StarCluster(fSizeMin, fSizeMax, iAmount, STAR_COLORS, 3.0, fViewAngle, vOrientation, vExcentricity, SeedS) }
//some larger stars
#declare cStar = rgb <1, 1, 1>;
#declare cAura = rgb <0.8, 0.85, 1.0>;
#declare STAR_COLORS[0] = cStar; #declare STAR_COLORS[1] = cAura;
#declare iAmount = 1000;
#declare fSizeMin = 2;
#declare fSizeMax = 12;
#declare fViewAngle = 30; //star cluster size
#declare vExcentricity = <1, 1, 1>;
#declare vOrientation = <0, 0, 0>; //star cluster position
//O_StarCluster(fSizeMin, fSizeMax, iAmount, aColors, fIntensity, fDistrAngle, vOrientation, vExcentricity, rSeed)
object { StarCluster(fSizeMin, fSizeMax, iAmount, STAR_COLORS, 3.0, fViewAngle, vOrientation, vExcentricity, SeedS) }
#if (SHOW_LABELS)
TitleText("StarCluster x3", 10, <0.9,0.9,0.0>)
#end
#end
// example of a quick implementation of a star cluster
#if (SCENE_NUMBER = 63)
Camera1(1)
//#declare CAMERA = 1;
#declare STARFIELD_NR = frame_number;
#declare SeedS = seed(1234567+STARFIELD_NR);
#declare fSizeMin = 2; //*1500/sqrt(image_width*image_height);
#declare fSizeMax = 10; //*1500/sqrt(image_width*image_height);
#declare iAmount = 1000;
#declare STAR_COLORS[0] = color rgb <1,1,0.9>; #declare STAR_COLORS[1] = color rgb <0.9,0.5,0.0>;
//O_StarCluster(fSizeMin, fSizeMax, iAmount, aColors, fIntensity, fDistrAngle, vOrientation, vExcentricity, rSeed)
object { StarCluster(fSizeMin, fSizeMax, iAmount, STAR_COLORS, 3.0, 25, <0,0,0>, <1,1,1>, SeedS) }
//label
#if (SHOW_LABELS)
TitleText("StarCluster", 10, <0.9,0.9,0.0>)
#end
#end