What I did today

Basically about to smash my head against a wall over this bloody algortihm , but still here is an example of when it works as it should (somewhat)

Rotation doesnt work, sometimes random tiles will be destroyed , sometimes the tiles will slide straight through each other , sometimes for a magical reason tiles wont be rendered and its all been caused by this I dont even…
If anyone would like to help out a poor and stressed lcass please take a gander at his collision detection.


if (check_collision(a, coreship)) {
					Ship attacking = coreship;
					for(int ax =0;ax< a.collision.length;ax++){
						Vertex2d corner = a.collision[ax].whole();
						corner.add2(core.G.revert_coordinates(a.absolute_position.xy()));
						corner.sub(new Vertex2d(32,0,0,0));
						for(int at = 0;at < attacking.collision.length;at++){
							Vertex2d attacker = attacking.collision[at].whole();
							attacker.add2(core.G.revert_coordinates(attacking.absolute_position));
							attacker = com.lcass.util.Util.rotate(attacker, attacking.rotpoint, attacking.rotation);
							attacker = com.lcass.util.Util.rotate(attacker, a.rotpoint, -a.rotation);
							
							if(((attacker.x >= corner.x) && (attacker.x <= corner.u))|| ((attacker.u >= corner.x) && (attacker.u <= corner.u))){
								
								if(((attacker.y >= corner.y) && (attacker.y <= corner.v))|| ((attacker.v >= corner.y) && (attacker.v <= corner.v))){
									a.damage(a.collision[ax].div(32), 100);
									coreship.damage(attacking.collision[at].div(32), 100);
									
								}
							}
						}
					}
				}

Been trying to fix my old iMac Intel iSight the whole day. Yesterday, i shut it down, unplugged it and placed it on the floor because i wanted to clean my desk. After reconnecting it wouldn’t even boot. No chime no fans no lights, nothing. Checked the psu-fine , nothing fried. Blew the dust away and reassembled it. Tried again. Still no boot.

@Icass

Considered using some sort of physics engine like Box2D? If you are making a spaceship based game, it makes life much easier and you can do some pretty impressive stuff with very little code (physics simulated particles ftw).

I like the challenge , plus it is more dynamic , I think.

You know when you have a horrendously annoying bug and it turns out to just be a trivial mistake , in this case I failed to re ad the rotation coordinate to my variables …
IT WORKS! AFTER MANY HOURS OF PAIN IT WORKS!

There is still some random tile deletion but ill handle that later.

This 3:

7gF46pu8dJA

Cheers,

Kev

Fighting suddenly incredibly unstable mysql service - I repaired 3 tables already :cranky:

I have a joch.

Why did the programmer die of exhaustion? He went to have a shower and the shower gel said rinse dry repeat.

Rewrote my texture streaming to accommodate a few new things based on my findings in this thread: http://www.java-gaming.org/topics/files-on-your-harddrive-can-be-mapped-and-passed-directly-into-textures-buffers/35504/msg/336278/view.html#msg336278. I ended up not using mapped files, but I did rewrite it to use FileChannels instead of InputStreams, which should give a decent performance boost anyway. The biggest change lies in how textures can be sourced now. Before the streamer simply looked in a directory you specified, which got awfully messy once you had 50 textures or so. Now it’s possible to put the textures multiple folders and also to pack together textures into a single massive file, and feed the streamer a TextureSource object for that folder/file, and tadaa, the streamer can magically find them!

Started on a new one. Didn’t have much time; Only about an hour due to school and work but it’s a start. Programming related, I started really working in a new game development job with Egghead Games. It’s a great experience!

http://puu.sh/fIwQ3/a884646338.JPG

I’ve been setting up LeJOS to trial at school tomorrow but I don’t know the first thing about it…

This is what the SD card should look like???

https://dl.dropbox.com/s/jstfdp3m4p2jq6b/lejos.png?dl=0

Also, by the looks of it… I just put it into the EV3, download the LeJOS development thingy, install eclipse with the LeJOS plugin??? I don’t have an EV3 at home and I’m setting this up for a mac… so it makes it kinda hard…

(I thought this would just be a small question, so I didn’t put it into it’s own thread)

A start? I spend 2 hours on a drawing, and it has almost no detail!
Also, I’d move the mouth slightly to the left, so the proportions are slightly more correct, but other than that, it’s effing amazing!

I’ve been polishing my OBJ loader to have support for texture definitions in the .mtl file. I also have support for varying materials in the OBJ file by having each face that is defined after a usemtl call will be packed into it’s own VBO. So each material has a VBO, and each VBO is made up of the vertices parsed from the OBJ file. This fixes both my multiple material file problem and my ‘unique’ vertices problem.

Lots of practice :slight_smile: I’ve taught myself like I taught myself programming, just lots of internet searches and time. I’m not really even good yet sadly; Drawing is a difficult thing. But thanks for the suggestion, I’ll do that!

Got WebGL and OBJ loading working on my website. Nothing to demo yet - I just got some googled code working.

Wrote a bit more on industry insight.

Cas :slight_smile:

Working on a PSO mini-lib for my utilities.

Sample:

Optimize the following function within the 2D unit rectangle:
[icode]Function<Vector, Double> costFunction = v -> Math.cos(v.get(0) * 2 * Math.PI) + Math.cos(v.get(1) * 2 * Math.PI);
Hyperrectangle searchSpace = Hyperrectangle.UNIT(2); // 2D interval [0, 1]^2[/icode]

(via http://www.math.uri.edu/~bkaskosz/flashmo/tools/graph3d/)

Lowest point on cos(2πx) + cos(2πy) in the search space is at (0.5, 0.5) so we should get at least pretty close to that.

Vector solution = PSO.optimize(costFunction, searchSpace).until(5, TimeUnit.MILLISECONDS);
System.out.println("Best: " + solution);

[quote]Best: (0.49999064, 0.49999303)
[/quote]
The optimize function returns a builder with options including search params (meta-optimizable!), number of particles, threads, seed, a Consumer observer for ‘new best solution’ events, and the until method specifies an end condition, either time, iterations, or a cost floor predicate function.

E.g.
[icode]PSO.optimize(costFunction, searchSpace).with(8, PSO.THREADS).reportingTo(System.out::println).until(1, TimeUnit.SECONDS);[/icode]

Runs on 8 threads, pretty-prints progress to stdout ‘live,’ and returns after 1 second.
The cool part is that is can optimize arbitrary functions in an arbitrary number of dimensions!

Pretty good day so far.

Ran 100m in 12.28 seconds, amongst other athletics events.

Am now too exhausted to program.

Got 2 new routers today to extend the signal around the house… We’re pushing 60 mbp/s. Wowee…
Edit: I also just solved Rubik’s Cube!

Level up!