Gamestudio Links
Zorro Links
Newest Posts
webGL
by Ice2642. 11/17/25 21:27
Camera always moves upwards?
by NeoDumont. 11/17/25 09:56
Future of ZorroHFT
by TipmyPip. 11/16/25 13:52
COT Download with Quandl does not work
by Petra. 11/15/25 09:35
Training with the R bridge does not work
by Petra. 11/15/25 09:31
Zorro 2.70
by jcl. 11/15/25 08:43
brokerCommand PLOT_HLINE parameters
by M_D. 11/13/25 10:42
ZorroGPT
by TipmyPip. 11/10/25 11:04
AUM Magazine
Latest Screens
Rocker`s Revenge
Stug 3 Stormartillery
Iljuschin 2
Galactic Strike X
Who's Online Now
4 registered members (JeyKey II, SkinnyApe, TipmyPip, Quad), 7,531 guests, and 3 spiders.
Key: Admin, Global Mod, Mod
Newest Members
SkinnyApe, tritom, sheliepaley, Blueguy, blobplayintennis
19179 Registered Users
Previous Thread
Next Thread
Print Thread
Rate Thread
HELP: Creating Pixel points #204811
05/01/08 20:00
05/01/08 20:00
Joined: Jul 2004
Posts: 1,710
MMike Offline OP
Serious User
MMike  Offline OP
Serious User

Joined: Jul 2004
Posts: 1,710
Hello
I want to create a star field map.
My idea, is creating randomly in the beggining of the level, tiny white (with desviations) pixels.. is that possible, i mean, what are the ways?
Creating a skycube would produce blur pixel dots, i want sharp white points dome.

Re: HELP: Creating Pixel points [Re: MMike] #204812
05/01/08 20:11
05/01/08 20:11
Joined: Jan 2007
Posts: 1,619
Germany
Scorpion Offline
Serious User
Scorpion  Offline
Serious User

Joined: Jan 2007
Posts: 1,619
Germany
try ent_create with a white bmap

Re: HELP: Creating Pixel points [Re: Scorpion] #204820
05/01/08 20:59
05/01/08 20:59
Joined: Jun 2007
Posts: 63
Italy
Sonic220 Offline
Junior Member
Sonic220  Offline
Junior Member

Joined: Jun 2007
Posts: 63
Italy
 Code:
starter particle_generator
{
	var particle_start[3];
	wait (3); // wait until the level is loaded
	camera.pan = 0; // now set the new camera position and angles
	camera.tilt = -90;
	camera.roll = 0;
	camera.x = 330;
	camera.y = 0;
	camera.z = 1000;
	while(1) 
	{
		particle_start.x = 1000;
		particle_start.y = 1000 - random(2000);
		particle_start.z = -500 + random(200);
		effect (particle_init, 1, particle_start, normal); 
		wait (1);
	}
}

function particle_init() 
{ 
	temp.x = -(2 + random (15)) * starfield_speed; 
	temp.y = 0; 
	temp.z = 0;
	vec_add (my.vel_x, temp); 
	my.bmap = star_tga; 
	my.alpha = 40 + random(60); // play with this value 
	my.size = 5 + random(5);
	my.bright = on; 
	my.move = on; 
	my.lifespan = 500;
	my.function = size_particles;
} 

function size_particles()
{
	my.size += 0.01 * time;
}

found it on a aum, planet survivor

Last edited by Sonic220; 05/01/08 21:00.

~Vision Divine~
Re: HELP: Creating Pixel points [Re: Sonic220] #204830
05/01/08 22:23
05/01/08 22:23
Joined: Jul 2004
Posts: 1,710
MMike Offline OP
Serious User
MMike  Offline OP
Serious User

Joined: Jul 2004
Posts: 1,710
but, stars cannot move while i move my ship, i mean that's not real, since they are very very far. we cannot see them move. So i need they to create and just blink a little, or, follow the player, but wihout doing trail..


Gamestudio download | Zorro platform | shop | Data Protection Policy

oP group Germany GmbH | Birkenstr. 25-27 | 63549 Ronneburg / Germany | info (at) opgroup.de

Powered by UBB.threads™ PHP Forum Software 7.7.1