Jump to content

  • Log In with Google      Sign In   
  • Create Account


The_Neverending_Loop

Member Since 02 Jul 2006
Offline Last Active Jul 08 2014 03:17 PM
-----

#4828689 Ray-Sphere intersection. Please help ?

Posted by The_Neverending_Loop on 28 June 2011 - 09:09 AM

Concepts required are. Linear Algebra.

Basically in laymans terms what the Ray-Sphere intersection does is it projects a ray which stretches out to infinity!. (Think of the ray as a lazer, that just keeps going and going and going)

and because of the properties of a sphere, we can easily tell whether the ray intersects with the sphere or not, if the ray passes by the center of sphere a distance less then or equal to the Radius of the sphere, then the Ray has made contact with the sphere, now that we know it makes contact, we calculate the point of contact.

using the formulas given in that web page, you can calculate t (time) when the Ray will collide with the sphere,

Being that a ray enters and exits the sphere you will have 2 collision points

t0, and t1,

and then plugging t0 or t1 back into the equation for the sphere, you will get the collision points of the Sphere with the Ray, I hope that helped you visualize the problem a little better.


#4828404 Unjust Eduction

Posted by The_Neverending_Loop on 27 June 2011 - 02:59 PM

Regardless of how just or unjust the situation is, the truth of the matter is that you'r best bet is to just do what he listed. Being that he is in a position of power, unless you absolutely have proof positive that everything is on his side of things and not yours, it would probably hurt you more then it helps you to go against it.

Sometimes we have to do things that we might not agree with for whatever reasons, but in this case I would suggest just do it & get it over with, fighting it and having it dwell over your head will probably just cause more grievance then its worth.

Best of luck to you, I think we can all relate to having a professor that's "not as nice as we would like" and have to deal with, but most of the time its just better to deal with him/her and move on, then stress it.


#4828101 Just ban me for the night. Oh and COMET!

Posted by The_Neverending_Loop on 26 June 2011 - 09:33 PM

......
This was about the comet that is going to pass 12.000 miles from earth today. Discuss.



Posted Image

So what iam basically trying to say is.... that that's a little closer than I would care for....





#4828068 A question to the martial artists out there

Posted by The_Neverending_Loop on 26 June 2011 - 07:37 PM

I agree with endurance speed and power, flexibility... not that much. I've been doing Muay Thai for a while now, and flexibility isn't really an issue as its basically punching and kicking nothing to fancy that requires me being ultra flexible.

As for the foundation of martial arts, in strictly the combatant sense, I would say its practice and muscle memory actually, which are not on that list. You need to train your muscle to react and act in the proper way which you can only achieve with repeat practicing.

For example when I first started boxing with other people in the class I was really sloppy wasn't getting as good of a Landing Hits:Dodging hits as I would of liked to say the least Lol, but fast foward a few months and I feel pretty confident with my boxing abilities as now its kinda getting to the point slowly but surely where I would dodge or counter a punch or kick kind of instinctly.

In a way its kind of like learning an instrument, you suck at first, you cant play anything right, but over time your hand muscles get used to the shapes and things come out alot more fluently and cleaner then when you first started, same thing with recognizing music your mind "muscles" get used to the kind of sounds certain notes produce and you can replicate it much easier. Its not so much that your thinking quicker, because if anything you'r actually thinking LESS, and its not so much that your finger speed or power increased, cause though it has, the major contributor to that is the muscle memory you developed over years of practice.


And thats my two cents, The Foundation for Martial Arts, and hoenstly any art in that mater is muscle and mind memory.


#4827280 [java] Drawing an Image to JFrame

Posted by The_Neverending_Loop on 24 June 2011 - 09:56 AM

The paint method can be a little annoying to play with, Try resizing your window and see if you see the object, resizing the window forces the paint method to be called, If you still dont see anything more then likely there are some issues with your image being loaded to begin with.

The reason I say its a little tricky is that from my own experience its a little hard to actually control the paint method, as you cant really call it at will, What I do is I create a buffer stratedgy and then just update teh buffer,
This forces the "Paint" Method to be recalled at my will

-- EDIT
I HIGHLY recommend you use buffer stratedgy
public void init()

{

GraphicsEnvironment ge = GraphicsEnvironment.getLocalGraphicsEnvironment();

GraphicsDevice gs = ge.getDefaultScreenDevice();

GraphicsConfiguration gc = gs.getDefaultConfiguration();

this.createBufferStrategy(2);

}

@Override public void paint(Graphics g)

{


// draw stuff here

}



public void updateContainer()

{

BufferStrategy strat = this.getStrategy();

Graphics2D g2 = (Graphics2D)strat.getDrawGraphics();


// draw stuff here

strat.show();

}



You'll need somethign liek that which I wrote above and then once you implement those three functions into your Canvas or JFrame in this case (I would go with canvas as Iam not sure if JFrame supports double buffering)

You can update tthe content of your paint method by simply calling updateContainer();

</SPAN></SPAN>


#4827094 Has anyone here ever launched their own product?

Posted by The_Neverending_Loop on 23 June 2011 - 08:18 PM

Iam in a similair stage with my own product (Its not game related tho), What Iam planning on doing is publicly announcing it to first a group of friends who are interested in that kind of stuff (Music) and then working in any existing connections I have with internet buddies to try to help me spread the word out.

Also you might want to look into SEO to get your stuff near the top of search engines. But honestly I wouldnt be the most knowledgeable one these kinds of subjects.


#4826832 Craigslist scammers (and others)

Posted by The_Neverending_Loop on 23 June 2011 - 09:18 AM

Ok so how it happened in both their cases was, that there was suppose to be some kind of transacation to begin with

So the scammer would be like

"I wanna buy the coach from you, Iam going to wire you the money and send someone to pick it up"

It was via some western union type money order or something in the case of my friend who got her 3k back...

Anyhow they "Accidently" send to much money, and ask the person oh can you please send back the difference my secretary wrote the wrong amount

so the person being a good Samaritan actually sends a money order back with that amount, but like 5 to 7 days later (because of the way the bank works) the 4k they deposited in the bank from the check they got from that person bounces, and even though initially the 4k went through they now have a balance of -3k, because they took out the 3K to send back to the person because they thought they mistakenly sent to much money.

In my friends case the guy they were able to trace back because he ended up sending something with some kind of letterhead from where he works, and they traced it back to his job and the employment place helped the police track him down.


On a side note, People like that really piss me off, They are to lazy to try to actually work for their money, so they decide to spend someone elses, My friend in this case was living in housing and defintly could not afford a -3K on her bank account, and she was actually kind of enough to send back the "difference" while some other people might of just tried to get away scott free with the lump sum, luckily she got her money back but she could of potentially been in a really bad spot for doing the right thing.


#4825997 Minecraft

Posted by The_Neverending_Loop on 21 June 2011 - 08:33 AM

I get salty talking to him in real life, and even more when I have chatted with him a few times via a messanging program. Honestly the developer is full of himself because his version of the game took off.


Now what I'm curious about is WHY the game took off. The concepts of it are similar to various other games that never really were successful, after all. This is interesting, though, I suppose Minecraft isn't as original as I thought it was.

It's interesting how the noise maps work, never knew it was quite so easy to generate terrains like that. I'll have to try to implement my own sometime. xD

As to Manic Digger... I do understand the fact that everyone's a little annoyed at it being a "clone" to minecraft, but the guy should at least get some credit for it. After all its great that he's actually making the game in C++.

And I will look into servercraft, it might actually be most convenient for me.


Its actually the other way around, minecraft is the "clone" to manic digger, and as far as who came first is concerned. In my opinion is not as much of who came first, but who ran with it the best, For all anyone knows, some guy might of came up with the photoelectric effect but never published it, While Eistein won the noble prize for it, There are no real "original ideas" anymore, everything is a derivitive of another.

Edit - @Mayple - From what I've seen Notch seems to be a cool person


#4824509 [web] Verlet Water in HTML5

Posted by The_Neverending_Loop on 17 June 2011 - 10:53 AM

Cool stuff, Iam excited myself with all these cool new things I see in HTML 5


#4824459 [java] Is Java the best program for me?

Posted by The_Neverending_Loop on 17 June 2011 - 08:12 AM

It Depends on your needs, there are no absolute right or wrong languages.

If by "put on your website" you mean embed it on the page itself (like let the users play the game on your actual webpage) then yes I would say java is a good choice, I dont know to much about flash but you can also embed games on your page with flash, or even Microsoft SilverLight (relatively new)

I've also seen people make cool stuff with JavaScript, and ActionScript

Now if you want to just put a game you built as a downloadable on your page, then you have many more options to choose from, You could stick to C++ and make a game on it, why try to learn something new so early when you can try to master or get a good foundation in C++ first? some good libraries you might want to Look into if you choose to stick with C++ is SDL, OpenGL from my personnel preferences.


#4824333 Who dares?

Posted by The_Neverending_Loop on 16 June 2011 - 09:47 PM

Posted ImagePosted ImagePosted ImagePosted ImagePosted ImagePosted ImagePosted ImagePosted ImagePosted ImagePosted Image
Posted ImagePosted ImagePosted ImagePosted ImagePosted ImagePosted ImagePosted ImagePosted ImagePosted ImagePosted Image
Posted ImagePosted ImagePosted ImagePosted ImagePosted ImagePosted ImagePosted ImagePosted ImagePosted ImagePosted Image
Posted ImagePosted ImagePosted ImagePosted ImagePosted ImagePosted ImagePosted ImagePosted ImagePosted ImagePosted Image
Posted ImagePosted ImagePosted ImagePosted ImagePosted ImagePosted ImagePosted ImagePosted ImagePosted ImagePosted Image
Posted ImagePosted ImagePosted ImagePosted ImagePosted ImagePosted ImagePosted ImagePosted ImagePosted ImagePosted Image
Posted ImagePosted ImagePosted ImagePosted ImagePosted ImagePosted ImagePosted ImagePosted ImagePosted ImagePosted Image
Posted ImagePosted ImagePosted ImagePosted ImagePosted ImagePosted ImagePosted ImagePosted ImagePosted ImagePosted Image
Posted ImagePosted ImagePosted ImagePosted ImagePosted ImagePosted ImagePosted ImagePosted ImagePosted ImagePosted Image
Posted ImagePosted ImagePosted ImagePosted ImagePosted ImagePosted ImagePosted ImagePosted ImagePosted ImagePosted Image


g8 - f6

No problem lol, Iam pretty sure whoever wakes up in the morning is probably going to continue this game for us anyhow


#4824326 Who dares?

Posted by The_Neverending_Loop on 16 June 2011 - 09:28 PM

Posted ImagePosted ImagePosted ImagePosted ImagePosted ImagePosted ImagePosted ImagePosted ImagePosted ImagePosted Image
Posted ImagePosted ImagePosted ImagePosted ImagePosted ImagePosted ImagePosted ImagePosted ImagePosted ImagePosted Image
Posted ImagePosted ImagePosted ImagePosted ImagePosted ImagePosted ImagePosted ImagePosted ImagePosted ImagePosted Image
Posted ImagePosted ImagePosted ImagePosted ImagePosted ImagePosted ImagePosted ImagePosted ImagePosted ImagePosted Image
Posted ImagePosted ImagePosted ImagePosted ImagePosted ImagePosted ImagePosted ImagePosted ImagePosted ImagePosted Image
Posted ImagePosted ImagePosted ImagePosted ImagePosted ImagePosted ImagePosted ImagePosted ImagePosted ImagePosted Image
Posted ImagePosted ImagePosted ImagePosted ImagePosted ImagePosted ImagePosted ImagePosted ImagePosted ImagePosted Image
Posted ImagePosted ImagePosted ImagePosted ImagePosted ImagePosted ImagePosted ImagePosted ImagePosted ImagePosted Image
Posted ImagePosted ImagePosted ImagePosted ImagePosted ImagePosted ImagePosted ImagePosted ImagePosted ImagePosted Image
Posted ImagePosted ImagePosted ImagePosted ImagePosted ImagePosted ImagePosted ImagePosted ImagePosted ImagePosted Image


b7 - b6


#4823190 Milking the Cash Cow

Posted by The_Neverending_Loop on 14 June 2011 - 06:39 AM

The HTML and JS thing is actually one feature Iam excited about and looking foward to trying


(following isn't directed at Sirisian personally...)


Regarding your first point I've heard Microsoft is taking a new direction through HTML which probably means they're slowing their silverlight push even more.


Ah, probably the most misunderstood (and totally blown out of proportion thing) to happen so far; the 'HTML direction' is allowing what they call 'immersive programs' to be coded in HTM5+JS.

Of course due to some miscommunication various (really really really stupid) parts of the developer world have gone 'omg! wtf! MS are going JS only! WTF! I WONT BUY THIS!'; although to be fair if you are stupid enough to believe this is the case then the windows ecosystem is probably better off without you :)


Ah I was going to ask about that; glad to hear its nonsense.




#4822893 Milking the Cash Cow

Posted by The_Neverending_Loop on 13 June 2011 - 01:51 PM

So apparently windows 8 release date is set for Late 2011, early 2012, and I feel like Windows 7 just came out the other day!

Allow me to rant if you will, I'am all for companies putting extra time and effort into a product to make it better, and should be rewarded for their time and efforts. But more and more (Especially with video games) I feel like they are churning out the same product, repackaging it and expecting you to pay full price for the same game you bought just last year (i.e call of duty, sport franchises).

Now my transition from XP to windows 7 was mostly welcomed, as I had XP for a while and I do enjoy some of the new features that windows 7 brought with it, (even though alot of them I actually prefer how they were in XP, like ribbons, I hate ribbons give me my good old menu bar any day of the week)

So iam basically worried about a number of things,

1. Microsoft is known for shoving their new technologies down developers throats will they be doing this for windows 8 by increasing capabilities of their own products, while decreasing that of others, which is of great concern to me because I develop on windows but I use alot of non microsoft technologies.

2. I feel that microsoft has a bad habit of trying to hold peoples hand to much while computing, this is annoying for me because I as an experienced user know what Iam doing, and this "hand held" type environment I feel gets in the way of my productivity alot of times, and is major annoyance most of the time.

3. Will my current applications be directly affected by (1) should I worry about backwards compatibility?

4. How much new stuff will I have to learn in order to be able to accomplish the same task I did before? I believe as a programmer it is my duty to stay ontop of the latest in technology and familiarize myself to some degree or else I would be left in the dust.

Sorry if it sounds like Iam complaining but it is a big concern with me, when I hear news like this, especially when not alot of time has passed since the last OS upgrade. Thoughts and comments?


#4813442 If you could see any movie made into a video game

Posted by The_Neverending_Loop on 20 May 2011 - 06:27 AM

Ghost the movie with patrick swayzee... I would soooo play that




PARTNERS